[Resolved] Reopened project after 6 months and everything is broken (even cmath, std)

Edit: I am not sure if this is the reason or it just fixed itself after a bit of time and reloading a few times, but it is back to normal now. Might have been I still had header search paths for F:/JUCE/ASIO/common instead of D:/JUCE/ASIO/common (drive path change).

I just opened a synth project after 6 months (6 months ago was working fine). Everything is completely broken. Basically every JUCE or std class is not being recognized. I have rudimentary errors in everything like:



juce glitch 3

The only things I changed since 6 months ago were:

  • Updated Visual Studio 2022.
  • Added Visual Studio 2022 Windows 10 SDK in Visual Studio Installer (for OpenCL experiment I wanted to run).
  • Moved hard drives.

My GitHub for this project shows the only changes to the project are that I updated the modulepath from F:\ to D:\ :

        <CONFIGURATION isDebug="0" name="Release"/>
      </CONFIGURATIONS>
      <MODULEPATHS>
        <MODULEPATH id="juce_audio_basics" path="F:\JUCE\app\modules"/>
        <MODULEPATH id="juce_audio_devices" path="F:\JUCE\app\modules"/>
        <MODULEPATH id="juce_audio_formats" path="F:\JUCE\app\modules"/>
        <MODULEPATH id="juce_audio_plugin_client" path="F:\JUCE\app\modules"/>
        <MODULEPATH id="juce_audio_processors" path="F:\JUCE\app\modules"/>
        <MODULEPATH id="juce_audio_utils" path="F:\JUCE\app\modules"/>
        <MODULEPATH id="juce_core" path="F:\JUCE\app\modules"/>
        <MODULEPATH id="juce_cryptography" path="F:\JUCE\app\modules"/>
        <MODULEPATH id="juce_data_structures" path="F:\JUCE\app\modules"/>
        <MODULEPATH id="juce_dsp" path="F:\JUCE\app\modules"/>
        <MODULEPATH id="juce_events" path="F:\JUCE\app\modules"/>
        <MODULEPATH id="juce_graphics" path="F:\JUCE\app\modules"/>
        <MODULEPATH id="juce_gui_basics" path="F:\JUCE\app\modules"/>
        <MODULEPATH id="juce_gui_extra" path="F:\JUCE\app\modules"/>
        <MODULEPATH id="juce_opengl" path="F:\JUCE\app\modules"/>
        <MODULEPATH id="juce_video" path="F:\JUCE\app\modules"/>
        <MODULEPATH id="juce_audio_basics" path="D:\JUCE\app\modules"/>
        <MODULEPATH id="juce_audio_devices" path="D:\JUCE\app\modules"/>
        <MODULEPATH id="juce_audio_formats" path="D:\JUCE\app\modules"/>
        <MODULEPATH id="juce_audio_plugin_client" path="D:\JUCE\app\modules"/>
        <MODULEPATH id="juce_audio_processors" path="D:\JUCE\app\modules"/>
        <MODULEPATH id="juce_audio_utils" path="D:\JUCE\app\modules"/>
        <MODULEPATH id="juce_core" path="D:\JUCE\app\modules"/>
        <MODULEPATH id="juce_cryptography" path="D:\JUCE\app\modules"/>
        <MODULEPATH id="juce_data_structures" path="D:\JUCE\app\modules"/>
        <MODULEPATH id="juce_dsp" path="D:\JUCE\app\modules"/>
        <MODULEPATH id="juce_events" path="D:\JUCE\app\modules"/>
        <MODULEPATH id="juce_graphics" path="D:\JUCE\app\modules"/>
        <MODULEPATH id="juce_gui_basics" path="D:\JUCE\app\modules"/>
        <MODULEPATH id="juce_gui_extra" path="D:\JUCE\app\modules"/>
        <MODULEPATH id="juce_opengl" path="D:\JUCE\app\modules"/>
        <MODULEPATH id="juce_video" path="D:\JUCE\app\modules"/>
      </MODULEPATHS>
    </VS2022>
  </EXPORTFORMATS>

I tried cleaning the project and rebuilding it but I still get the same thousands of errors about anything std or JUCE related.

I opened project same as always by opening in Projucer. I am using 7.0.9 I had on drive from November 2023, which was current as of Jan 2024 when I updated the project to it. Then I am clicking the “Save and Open in IDE” button like usual to open into Visual Studio 2022. And there I am confronted with now thousands of errors.

Does anyone know what this type of massive failure represents or how to fix it? Thanks for any ideas or help.

It’s normally best to only concentrate on the very first error you see, can you reproduce the same issue with any of the bundled example JUCE projects or the DemoRunner?