Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Visual Studio 2022 Not Compiling "No such file or directory" (Read 1358 times)
jpc
Newbies
*
Offline


Posts: 4
Joined: Jan 29th, 2023
Visual Studio 2022 Not Compiling "No such file or directory"
Feb 13th, 2023 at 3:54am
Print Post  
Hi

I am getting these errors: "0 Protypes Discovered" ... "No such file or directory" but the file(s) and directory exist.  I've turned off intermediate directory and all other such options as found in this forum's posts.

If I delete the solution and project files, use the new arduino project option in vs2022, the code will compile the first time.  Once saved, it reverts back to this error.  Rebuilding solutions/projects/toolchain does nothing to help.

As background, I was using these same files for over a year, under visual micro and studio 2019. but when windows crashed and I rebuilt with VS2022 and upgraded visual micro to the latest version.  I have had these error ever since.

I only use "release" mode, not debug.   

This code compiles fine in the arduino environment, same files, same location.  The file paths look correct.  I have attached the build file.   

Thanks.
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Visual Studio 2022 Not Compiling "No such file or directory"
Reply #1 - Feb 13th, 2023 at 4:11am
Print Post  
If you have set a sketch book folder in ide locations then please clear it. Does that resolve?
  
Back to top
IP Logged
 
jpc
Newbies
*
Offline


Posts: 4
Joined: Jan 29th, 2023
Re: Visual Studio 2022 Not Compiling "No such file or directory"
Reply #2 - Feb 24th, 2023 at 2:27am
Print Post  
To finalise this topic, no there is no "sketchbook" folder in other locations.   

However, in the same way that this error appeared, it has disappeared.  So it is compiling. Everything exactly the same, not even one setting altered since posting.  I have saved a working output file to compare to the failed file if the error reoccurs.   

Like magic!
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint