-
-
Notifications
You must be signed in to change notification settings - Fork 238
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
Build fail on Windows: file cannot create directory #2479
Comments
FWIW, downgrading to Sentry 8.10.0 fixes the issue. |
thanks for the issue we'll have a look, this is the related PR |
cc @vaind |
yeah... flutter/flutter#154977 -> flutter/flutter#143589
I haven't had this happen to me before but it looks like the file/directory was locked🤔 Have you tried a clean build, i.e. |
Yes, this is after flutter clean. Sorry I didn't mention it in the OP. The project isn't open source but if you agree, I'm happy to give you access to it (it's a private repo on GitHub). |
As long as it's the dev setup is reasonable, that would probably be the fastest way to get this fixed. |
Great! I just sent you an invite. You just need Git LFS installed, otherwise all should be straightforward. |
Interestingly, it doesn't even try to create the Relevant
Maybe you could try nuking any changes in your current directory (be sure to commit+push first :) ): |
Also, maybe it has something to do with a cmake version, mine is |
For us its compiles for release but crash as soon as we open it. Downgrading to 8.10.1 fix the issue. |
That sounds like a separate issue. Could you file a GH issue with more details? e.g. if there are any logs, any issues reported in Sentry, if the same happens in debug builds, etc. |
Same exact error as OP. Dug into it in Visual Studio, found the same Steps I followed to confirm:
My project is open source, here: https://github.com/wispborne/TriOS/tree/19f38d0abad300758d7a1ec3262f6aef77491007 |
@wispborne thanks for the feedback. What MSVC and cmake version are you using? |
@vaind
Not positive what cmake version is used. The version on my PATH is Here's my log file. Let me know if there's somewhere else I should look. |
This is reproducible with VisualStudio 2019 (reproduced in GHActions on #2511). Before a fix is in place, you can try updating to the latest VisualStudio 2022 |
Just opening vcxproj won't work, you need to rebuild with |
Just released v8.11.2 disabled the native crash reporting by default, you can reenable it by setting an env var: (the following code is for powershell, assuming that's what you use on Windows) $env:SENTRY_NATIVE_BACKEND = 'crashpad'
flutter build windows You could read about various backends in https://docs.sentry.io/platforms/native/advanced-usage/backend-tradeoffs/ but TLDR is that I'm keeping the issue open - we'll need to decide how to proceed with older MSVC support before v9 when we reenable |
Platform
Flutter Desktop Windows
Obfuscation
Disabled
Debug Info
Disabled
Doctor
Version
8.11.0
Steps to Reproduce
flutter build windows
(I assume there is probably some confounding factor but I'd rather file an incomplete bug than just abandon the filing altogether.)
Expected Result
App builds.
Actual Result
After upgrading from
sentry
8.9.0 to version 8.11.0, my windows build fails with the following cryptic error:After some digging, I realize the real error is hidden by the
INSTALL.vcxproj
machinery. Running the command in question ("C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -DBUILD_TYPE=Release -P cmake_install.cmake
) on the command line produces the following output:The error seems to be coming from
_deps/sentry-native-build/crashpad_build/cmake_install.cmake
. Line 41 of that file says:Are you willing to submit a PR?
No
The text was updated successfully, but these errors were encountered: