Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29145 Discussions

MSVSC 2022 crashes when an existing project is modified

avinashs
New Contributor I
495 Views

Each time a Fortran project in MSVSC 2022 is modified (file removed), MSVSC crashes. Sometimes, it reopens with the deleted files still in the project, whereas other times they are deleted. There are no issues with adding files to the project. I have seen similar threads on this topic before and believe it was resolved but am able to reproduce it on multiple computers. A solution would be appreciated since it is an inconvenience.

0 Kudos
3 Replies
Devorah_H_Intel
Moderator
474 Views

What is the version of the VS? Version of the Fortran compiler integrated?

I just tested modifying a Fortran project - removing a file on VS Version 17.9.2 and ifx 2025 - I can't reproduce the crash. Maybe you can provide the complete zipped up solution we can test on our side.

0 Kudos
avinashs
New Contributor I
456 Views

Thanks for your prompt response, @Devorah_H_Intel . Attached is a minimum reproducible error project. There is one main program (main.f90) and three supporting programs (test1.f90, test2.f90, test3.f90) all included in the project folder. Program compiles and runs without error. When test3.f90 is removed from the project, MSVSC 2022 hangs and eventually crashes. A .png of the project window before the crash is also included. The MSVSC info is as below. Please note that this problem has been happening for a while on all my computers even with earlier builds of MSVSC for approximately 6 months or more.

 

Microsoft Visual Studio Community 2022
Version 17.11.5
VisualStudio.17.Release/17.11.5+35327.3
Microsoft .NET Framework
Version 4.8.09037

Installed Version: Community

Visual C++ 2022 00482-90000-00000-AA422
Microsoft Visual C++ 2022

ASP.NET and Web Tools 17.11.231.19466
ASP.NET and Web Tools

Azure App Service Tools v3.0.0 17.11.231.19466
Azure App Service Tools v3.0.0

C# Tools 4.11.0-3.24460.3+5649376e0e5f5db3743a94a62b073f2cce4be5d9
C# components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

GitHub Copilot 0.2.1657.32929
GitHub Copilot is an AI pair programmer that helps you write code faster and with less work.

Intel® Fortran Compiler 2024.0
Intel® Fortran Compiler 2024.0, Copyright © 2002-2023 Intel Corporation. All rights reserved.

Microsoft JVM Debugger 1.0
Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines

NuGet Package Manager 6.11.1
NuGet Package Manager in Visual Studio. For more information about NuGet, visit https://docs.nuget.org/

Test Adapter for Boost.Test 1.0
Enables Visual Studio's testing tools with unit tests written for Boost.Test. The use terms and Third Party Notices are available in the extension installation directory.

Test Adapter for Google Test 1.0
Enables Visual Studio's testing tools with unit tests written for Google Test. The use terms and Third Party Notices are available in the extension installation directory.

TypeScript Tools 17.0.30715.2002
TypeScript Tools for Microsoft Visual Studio

Visual Basic Tools 4.11.0-3.24460.3+5649376e0e5f5db3743a94a62b073f2cce4be5d9
Visual Basic components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

Visual F# Tools 17.11.0-beta.24421.7+af2f522de602281d4ef5a7b71507c428e814c5c1
Microsoft Visual F# Tools

Visual Studio IntelliCode 2.2
AI-assisted development for Visual Studio.

0 Kudos
Devorah_H_Intel
Moderator
421 Views

Modifying your solution with IFX 2025 integrated with VS 17.9.2 does not cause issues. Thank you for providing the test. 

I suggest that you check https://www.intel.com/content/www/us/en/developer/articles/reference-implementation/intel-compilers-compatibility-with-microsoft-visual-studio-and-xcode.html and make sure that the installed VS version is validated for the version of the compiler you are using. 

0 Kudos
Reply