-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
FileNotFoundError: [Errno 2] No such file or directory: '/home/me/test01/meson-private/coredata.dat' #9584
Comments
FYI: Bisected to commit: abaa980 |
I can confirm this is still an issue on Meson 0.61.1 (running on Mac). However, passing |
It's not a workaround. As the original report notes, the bug here is that this is supposed to error out, with an informative error message rather than a traceback. That informative error message literally tells you to specify a builddir. |
In commit 9280789 a good error message about the directory not being a valid build directory, was replaced by a worse message. In commit abaa980 the error message was replaced by a traceback when trying to load the coredata before checking if it was a build directory. Revert back to using the helper function with the good error message. Reorganize code so that we check basic things first, and do less work before detecting errors. Fixes mesonbuild#9584
To compile outside the build directory maybe you should just use ninja, |
In commit 9280789 a good error message about the directory not being a valid build directory, was replaced by a worse message. In commit abaa980 the error message was replaced by a traceback when trying to load the coredata before checking if it was a build directory. Revert back to using the helper function with the good error message. Reorganize code so that we check basic things first, and do less work before detecting errors. Fixes #9584
In commit 9280789 a good error message about the directory not being a valid build directory, was replaced by a worse message. In commit abaa980 the error message was replaced by a traceback when trying to load the coredata before checking if it was a build directory. Revert back to using the helper function with the good error message. Reorganize code so that we check basic things first, and do less work before detecting errors. Fixes #9584
Describe the bug
Calling
meson compile
outside of a build directory (or without-C builddir
) shows a traceback since 0.60.To Reproduce
Expected behavior
Same error message as in 0.59.
system parameters
meson --version
? 0.59.4/0.60.1ninja --version
if it's a Ninja build? 1.10.2The text was updated successfully, but these errors were encountered: