-
Notifications
You must be signed in to change notification settings - Fork 555
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
odb: write_odb fails with not so pretty iostream message #6120
Comments
@titan73 If I manually create the dbs directory, the command don't fail. I'm not sure if any of our write commands should create directories. @maliberty any comments? |
@eder-matheus yeah indeed I've just figured out that dbs folder was removed but the error message was not very helpful and I couldn't pinpoint the problem. I don't expect write_db to create the folder but that would propably be good to have a error message complaining about the missing "dbs" folder. |
What was the message? |
I don't think there is any change here so "anymore" seems inaccurate. |
@maliberty This: My guess is that we are not checking if the file was properly created before trying to write to it. |
"failed to open" is pretty clear that it is a file system error but we could make it prettier. |
Updated title. Indeed the message says what's wrong. I got confused with its complicated message (like an assert) and thought there was a bug. |
It actually goes to the logger. |
read_db has a better error message:
You can assigned this issue to me. I'll send a PR. |
Fixed by merged PR #6133. |
Describe the bug
See title.
Expected Behavior
write_db should succeed.
Environment
To Reproduce
openroad test.tcl
write_db.zip
Relevant log output
No response
Screenshots
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: