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
Hot Topic (More than 8 Replies) System.Exception: Invalid or missing source path during compiler cache (Read 8599 times)
nevereven
Junior Member
**
Offline


Posts: 59
Joined: Dec 5th, 2014
System.Exception: Invalid or missing source path during compiler cache
May 8th, 2015 at 2:20pm
Print Post  
Version 1.1505.04
When I try to upload sketch I get:

Code
Select All
C:\Arduino\arduino-1.0.6\hardware\tools\avr\bin\avr-g++ -c -g -Os -fno-exceptions -ffunction-sections -fdata-sections -Wall -mmcu=atmega2560 -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=106 -I"C:\Arduino\arduino-1.0.6\hardware\arduino\cores\arduino" -I"C:\Arduino\arduino-1.0.6\hardware\arduino\variants\mega" -I"D:\Development\Arduino\libraries\Arduino\src" -I"D:\Development\Arduino\libraries\FSM" -I"D:\Development\Arduino\libraries\LiquidCrystal" -I"D:\Development\Arduino\libraries\Logger_SD" -I"D:\Development\Arduino\libraries\music" -I"D:\Development\Arduino\libraries\RTClib" -I"D:\Development\Arduino\libraries\SdFat" -I"C:\Arduino\arduino-1.0.6\libraries\SPI" -I"C:\Arduino\arduino-1.0.6\libraries\Wire" -I"C:\Arduino\arduino-1.0.6\libraries" -I"C:\Arduino\arduino-1.0.6\hardware\arduino\libraries" -I"C:\Program Files (x86)\Visual Micro\Visual Micro for Arduino\Micro Platforms\default\debuggers" -I"D:\Development\Arduino\libraries" -o ee.cpp.o"  ee.cpp"
System.Exception: Invalid or missing source path during compiler cache
D:\Development\Arduino\libraries\Arduino\src
   at processing.app.SketchCompiler.CreateFileTimeListXml(String fileType, DirectoryInfo folder, String outputPath)
   at processing.app.SketchCompilerArduino.compileLibraries(List`1 includePaths)
   at processing.app.SketchCompilerArduino.compile(SketchBuilder lsketch, String primaryClassName, Boolean verbose, Boolean isDebug)
   at Visual.Micro.Visual.Studio.Arduino.AddInApp.CompileDo(Project oProject, Boolean IsDebugStartCommand)
   at Visual.Micro.Visual.Studio.Arduino.AddInApp.Compile(Project oProject, Boolean IsDebugStartCommand) 

  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: System.Exception: Invalid or missing source path during compiler cache
Reply #1 - May 8th, 2015 at 2:31pm
Print Post  
Maybe the upgrade didn't go on properly. Please run install, click uninstall then install. Thanks
  
Back to top
IP Logged
 
nevereven
Junior Member
**
Offline


Posts: 59
Joined: Dec 5th, 2014
Re: System.Exception: Invalid or missing source path during compiler cache
Reply #2 - May 8th, 2015 at 2:31pm
Print Post  
When I try to load the release version, And do a repair, I get an error message:
The specified account already exists.

I un-installed and have tried re-installing both the stable and release candidate. Both have the same problem. Oddly they both report the same 1.1505.04 version in Options->Visual Micro->Version
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: System.Exception: Invalid or missing source path during compiler cache
Reply #3 - May 8th, 2015 at 2:36pm
Print Post  
Please use control panel to uninstall via add or remove
  
Back to top
IP Logged
 
nevereven
Junior Member
**
Offline


Posts: 59
Joined: Dec 5th, 2014
Re: System.Exception: Invalid or missing source path during compiler cache
Reply #4 - May 8th, 2015 at 2:36pm
Print Post  
I was able to find an old version (1.1503.18) in the trash and it's working again. It would be nice if the installer displayed the version number before installing.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: System.Exception: Invalid or missing source path during compiler cache
Reply #5 - May 8th, 2015 at 5:27pm
Print Post  
Old version can always be made available however you shouldn't need them.

The issue was fixed in 1505.03 so it must be that the upgrade didn't go on properly.
  
Back to top
IP Logged
 
nevereven
Junior Member
**
Offline


Posts: 59
Joined: Dec 5th, 2014
Re: System.Exception: Invalid or missing source path during compiler cache
Reply #6 - May 8th, 2015 at 9:52pm
Print Post  
I uninstalled everything through control panel then re-installed current  release candidate. Still get error:

Code
Select All
C:\Arduino\arduino-1.0.6\hardware\tools\avr\bin\avr-g++ -c -g -Os -fno-exceptions -ffunction-sections -fdata-sections -Wall -mmcu=atmega2560 -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=106 -I"C:\Arduino\arduino-1.0.6\hardware\arduino\cores\arduino" -I"C:\Arduino\arduino-1.0.6\hardware\arduino\variants\mega" -I"D:\Development\Arduino\libraries\Arduino\src" -I"D:\Development\Arduino\libraries\FSM" -I"D:\Development\Arduino\libraries\LiquidCrystal" -I"D:\Development\Arduino\libraries\Logger_SD" -I"D:\Development\Arduino\libraries\music" -I"D:\Development\Arduino\libraries\RTClib" -I"D:\Development\Arduino\libraries\SdFat" -I"C:\Arduino\arduino-1.0.6\libraries\SPI" -I"C:\Arduino\arduino-1.0.6\libraries\Wire" -I"C:\Arduino\arduino-1.0.6\libraries" -I"C:\Arduino\arduino-1.0.6\hardware\arduino\libraries" -I"C:\Program Files (x86)\Visual Micro\Visual Micro for Arduino\Micro Platforms\default\debuggers" -I"D:\Development\Arduino\libraries" -o ee.cpp.o"  ee.cpp"
System.Exception: Invalid or missing source path during compiler cache
D:\Development\Arduino\libraries\Arduino\src
   at processing.app.SketchCompiler.CreateFileTimeListXml(String fileType, DirectoryInfo folder, String outputPath)
   at processing.app.SketchCompilerArduino.compileLibraries(List`1 includePaths)
   at processing.app.SketchCompilerArduino.compile(SketchBuilder lsketch, String primaryClassName, Boolean verbose, Boolean isDebug)
   at Visual.Micro.Visual.Studio.Arduino.AddInApp.CompileDo(Project oProject, Boolean IsDebugStartCommand)
   at Visual.Micro.Visual.Studio.Arduino.AddInApp.Compile(Project oProject, Boolean IsDebugStartCommand) 



I have no src directory in D:\Development\Arduino\libraries\Arduino. Note that D:\Development\Arduino\libraries is the location of my user-libraries.
Could it be my Arduino installation is corrupt? The folders with the executables etc. I keep in C:\Arduino\Arduino-1.0.6\

Unfortunately I'm stuck with the old version of the arduino software due to a bug in avr-libc which affects anything newer.
https://github.com/arduino/Arduino/issues/2752
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: System.Exception: Invalid or missing source path during compiler cache
Reply #7 - May 8th, 2015 at 10:17pm
Print Post  
I didn't see you were using 1.0.x. Should not be a problem though.

No its not a corrupted install. It looks like a bug in visual micro but first I need to establish if you have a library called arduino here D:\Development\Arduino\libraries\Arduino?

If so please zip and email to info [at] visualmicro.com

Thanks

edit: also let me know what #includes you have in your sketch
« Last Edit: May 8th, 2015 at 10:19pm by Tim@Visual Micro »  
Back to top
IP Logged
 
nevereven
Junior Member
**
Offline


Posts: 59
Joined: Dec 5th, 2014
Re: System.Exception: Invalid or missing source path during compiler cache
Reply #8 - May 9th, 2015 at 2:09am
Print Post  
My includes are:

Some of my own libraries,

#include <FiniteStateMachine.h>
#include <SdFat.h>
#include <LiquidCrystal_I2C.h>

#include <SPI.h>
#include <avr/EEPROM.h>
#include <RTClib.h>
#include <Wire.h> 
#include <Arduino.h> 
#include <stdarg.h> 

I have emailed you my D:\Development\Arduino\libraries\Arduino directory. I recognize some of the contents MPU6050, DS1307, etc. This is odd, because these are mostly in D:\Development\Arduino\libraries. It will come from ryan at planktos instruments...
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: System.Exception: Invalid or missing source path during compiler cache
Reply #9 - May 9th, 2015 at 2:16am
Print Post  
Thanks, I have worked out what the problem is and a fix will be available tomorrow.

The new library resolver wasn't checking if a lib existed which caused an issue with any .h that was wan't a library or sketch source file. 

The #include <arduino.h> in your code is the one ".h file" that is neither of the above, so visual micro is trying to find and cache a library folder called sketchbook/libraries/arduino

You might want the #include arduino.h where it is for a reason but if not remove it and the compile will work.

Thanks for the testing

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