question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I can make Visual Studio disappear by using "Other flags" in the properties window

See original GitHub issue

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

  • Create a new solution + project in VS 2022
  • Go to Project Properties and set “Other flags” to --version
  • Switch back to the main source (i.e., <kbd>Ctrl+Tab</kbd> or by clicking)
  • Boom! The big disappearing act is complete: it crashes without any warning.

Second repro:

  • Assume the above fsproj change is saved
  • Try to open the solution of project in VS 2022
  • Bring focus to any source file in that project
  • Boom! VS disappears again: it crashes without any warning.

See video capture (sorry for the delay, I hit Ctrl-S to save, as that is often another way of crashing):

img

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.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
abelbraaksmacommented, Aug 31, 2022

Just (finally) tested it locally with latest from main. Works. Thanks so much!

1reaction
psfinakicommented, Aug 16, 2022

Yep, it should be there, it just shouldn’t crash VS, similar to how --help doesn’t crash it. The fix is coming

Read more comments on GitHub >

github_iconTop Results From Across the Web

Suppress compiler warnings - Visual Studio
Use the Build properties to suppress specific warnings for C# and F# projects. In Solution Explorer, choose the project in which you want...
Read more >
Fix for Missing Properties Windows in Visual Studio - YouTube
Like, Share, And Subscribe | Professor Saad Yousuf Watch Our All Videos On This : http://www.youtube.com/ProfessorSaad Subscribe Our Channel ...
Read more >
Visual studio 2012 - locals have disappeared
I had mistakenly closed the locals window and could not find it as it was not with other windows under the VIEW menu....
Read more >
C/C++ extension FAQ
Frequently asked questions about the C/C++ extension in Visual Studio Code. ... How do I get the new IntelliSense to work with the...
Read more >
Visual Basic.Net - Page 68 - Google Books Result
3.2.6 The Icon Property You can set the desired icon as the control - menu - icon of the form by using this...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found