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 System.IO.FileNotFoundException when compiling solution (Read 1373 times)
darksid3r
Newbies
*
Offline


Posts: 2
Joined: Apr 23rd, 2021
System.IO.FileNotFoundException when compiling solution
Apr 23rd, 2021 at 11:23am
Print Post  
Hi,
I'm using VisualMicro with MS VS Community 2019.
Yesterday I've updated VsMicro to the latest version. Since then, I am not able to compile the projects anymore. I get the following error:
System.Exception: Problem moving GSMclass.hpp to the build folder ---> System.IO.FileNotFoundException: Could not find file xxxxx.hpp'
Note: I've edited out specific path details.
The mentioned folder exists, and contains some of the header and source files from the project. 
On the other hand, xxxxx.hpp does not exist, but it is included in the solution/project. The .ino file can be loaded in the Arduino IDE and complies without issues.
I have tried the following, without success:
1. Create a new VsMicro project: I have the same issue when adding/creating new header files in the project.
2. Uninstalling and reinstalling both MS VS Community and VisualMicro.
I would like to ask for support so solve the issue. 
Thank you
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2174
Joined: Feb 13th, 2019
Re: System.IO.FileNotFoundException when compiling solution
Reply #1 - Apr 23rd, 2021 at 2:45pm
Print Post  
Thanks for the report.

Would it be possible to try the latest forum release (21.01.06.19) from the top of the below board:
https://www.visualmicro.com/forums/YaBB.pl?board=VS_ARDUINO_EXT_RELEASES

If you could also ZIP the solution and email this to us it would be helpful in our ongoing investigations around this issue.
« Last Edit: Apr 23rd, 2021 at 3:59pm by Simon@Visual Micro »  
Back to top
 
IP Logged
 
darksid3r
Newbies
*
Offline


Posts: 2
Joined: Apr 23rd, 2021
Re: System.IO.FileNotFoundException when compiling solution
Reply #2 - Apr 23rd, 2021 at 5:18pm
Print Post  
Thank you for getting back to me so quickly. 
It seems I made some progress in finding the root cause of the problem:
I have the habit of using the extension "hpp" for header files containing class definitions. 
The issue appears when the solution contains files with such extension
The attached sample solution contains "Header.hpp" leading to this issue. If I rename it to "Header.h", it compiles without any issue.
Please note, that solutions containing "hpp" files compiled fine with previous versions of VM.
  

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


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: System.IO.FileNotFoundException when compiling solution
Reply #3 - Apr 24th, 2021 at 1:49pm
Print Post  
Thanks for the useful report. There was a typo preventing copy of local project .hpp files. 

.hpp files in a library worked okay, .h and .hh in a local project worked okay but .hpp failed.

There will be an update released on Monday to resolve the issue. A note will be added to this thread letting you know about it.
  
Back to top
WWW  
IP Logged
 
M@rcel
Junior Member
**
Offline


Posts: 12
Joined: Oct 31st, 2020
Re: System.IO.FileNotFoundException when compiling solution
Reply #4 - Apr 24th, 2021 at 6:24pm
Print Post  
Is this related to an issue I have using v2021.106.18? 
It's a .h file which should be ok if I read the above posts correctly.
Other solutions/projects are ok, but this one fails.
This is the output:
===================
Compiling 'ESP32-PICO-D4_T-MICRO32' for 'ESP32 Pico Kit'
System.Exception: Problem moving Arduino.h to the build folder ---> System.IO.FileNotFoundException: Could not find file 'R:\Temp\VMBuilds\ESP32-PICO-D4_T-MICRO32\esp32_pico32\Release\Arduino.h'.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.File.SetAttributes(String path, FileAttributes fileAttributes)
   at Visual.Micro.MiroAppAPI.SketchBuilder.preprocess(String buildPath, PdePreprocessor preprocessor, Boolean PreProcessOnly)
   --- End of inner exception stack trace ---
   at Visual.Micro.MiroAppAPI.SketchBuilder.preprocess(String buildPath, PdePreprocessor preprocessor, Boolean PreProcessOnly)
   at Visual.Micro.MiroAppAPI.SketchBuilder.preprocess(String buildPath, Boolean PreProcessOnly)
   at Visual.Micro.MiroAppAPI.SketchBuilder._build(String lbuildPath, Boolean verbose, Boolean PreProcessOnly)
   at Visual.Micro.MiroAppAPI.SketchBuilder._build(Boolean verbose)
   at Visual.Micro.MiroAppAPI.SketchBuilder.build(Boolean verbose)
   at Visual.Micro.Visual.Studio.Arduino.AddInApp._CompileDo(Object oProject, Boolean IsDebugStartCommand, Boolean isRebuild, Boolean UseGdbIfAvailable)
   at Visual.Micro.Visual.Studio.Arduino.AddInApp.CompileDo(Object oProject, Boolean IsDebugStartCommand, Boolean isRebuild, Boolean UseGdbIfAvailable)
   at Visual.Micro.Visual.Studio.Arduino.AddInApp.Compile(Object oProject, Boolean IsDebugStartCommand, Boolean IsRebuild, Boolean UseGdbIfAvailable)
============================================

Thanks!
  
Back to top
 
IP Logged
 
M@rcel
Junior Member
**
Offline


Posts: 12
Joined: Oct 31st, 2020
Re: System.IO.FileNotFoundException when compiling solution
Reply #5 - Apr 24th, 2021 at 6:31pm
Print Post  
Never mind. 21.01.06.19 did the trick  Smiley
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint