-
Notifications
You must be signed in to change notification settings - Fork 785
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
I can make Visual Studio disappear by using "Other flags" in the properties window #13549
Comments
Yeah this is not a good experience. |
Can reproduce, jumping on that. |
Okay so this is happening because of #10099. I am currently figuring out the original reasoning and thinking if we can remove just remove some mess here instead of adding more conditions to the code. Either way hope to have some kind of fix in upcoming days :) |
@psfinaki, sounds like |
It should be there:
It just likely does something weird like explicit exit, which crashes VS and/or msbuild process. |
Yep, it should be there, it just shouldn't crash VS, similar to how |
@abelbraaksma see the attached PR - I even added a video clip to match your video clip! :) |
Just (finally) tested it locally with latest from |
If you write
--version
in the "Other flags" (motivation: I wanted to see the FSC version on each compile), and if you then switch to any source file, the whole of Visual Studio disappears.Repro steps
Minimal repro zip file: CrashVisualStudio.zip
--version
Second repro:
fsproj
change is savedSee video capture (sorry for the delay, I hit Ctrl-S to save, as that is often another way of crashing):
Expected behavior
Not sure if
--version
is valid here, but valid or not, Visual Studio (version 2022) should not disappear.Actual behavior
Visual Studio crashes without a crash report. Sometimes there's an auto-restart which will hang, most of the times this restart does not happen. Sometimes child processes are killed, sometimes they remain around (like
MSBuild.exe
).Known workarounds
Don't use "additional compiler options" aka "other flags".
Related information
I only tested this on a Windows 10 machine, I could check a Windows 11 machine for good measure. Didn't test with VS Code, only VS 2022 Community Edition.
The text was updated successfully, but these errors were encountered: