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] 2  Send TopicPrint
Very Hot Topic (More than 25 Replies) The given path's format is not supported Exception (Read 4350 times)
gman4925
Junior Member
**
Offline


Posts: 16
Joined: Feb 11th, 2014
The given path's format is not supported Exception
Feb 11th, 2014 at 10:35pm
Print Post  
Hi,
I've had VM installed in Atmel Studio for a little while and it's been great. 
So much faster and nicer to use than the Arduino IDE.
I hadn't used it for a week or two and then when I went to use it I could no longer compile.

The problem comes about as soon as I add a library to the sketch so this does not compile:

[code]
#include <SD.h>

void setup()
{

  /* add setup code here */

}

void loop()
{

  /* add main program code here */

}
[/code]

I get two exception errors, one is 
[code]
System.Exception: Visual Micro: Unable to save new program settings file
C:\Program Files (x86)\Arduino\sketchbook\tyest4\Visual Micro\Compile.vmps.xml ---> System.IO.IOException: The requested operation cannot be performed on a file with a user-mapped section open.

   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
   at System.Xml.XmlDocument.Save(String filename)
   at Visual.Micro.ProgramConfiguration.ProgramSettingsReader.Save()
   --- End of inner exception stack trace ---
   at Visual.Micro.ProgramConfiguration.ProgramSettingsReader.Save()
   at Visual.Micro.Visual.Studio.Arduino.AddInApp.CompileDo(Project oProject, Boolean IsDebugStartCommand)
   at Visual.Micro.Visual.Studio.Arduino.AddInApp.Compile(Project oProject, Boolean IsDebugStartCommand)
[/code]

If I clear that and try again, it will sometimes go away, other times I have to close and reopen the project.

If I can get past that exception I get this one
[code]Compiling 'tyest4' for 'Arduino Uno'
Build folder: file:///C:/Users/Greg/AppData/Local/VMicro/Arduino/Builds/tyest4/uno
SketchLibFolders
C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino;C:\Program Files (x86)\Arduino\hardware\arduino\variants\standard;C:\Program Files (x86)\Arduino\libraries\SD;C:\Program Files (x86)\Arduino\libraries\SD\utility;C:\avr;C:\avr\utility;c:\program files (x86)\arduino\hardware\tools\avr\avr\include\;c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\;c:\program files (x86)\arduino\hardware\tools\avr\avr\;c:\program files (x86)\arduino\hardware\tools\avr\lib\gcc\avr\4.3.2\include\;
Summary: Header=1 Prototypes=3 Imports=1
Additional Defines: VISUALMICRO_COMPILER_VER=1;
Architecture Tools: C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\
GCC: 4.3.2
Sketchbook: file:///C:/Program%20Files%20(x86)/Arduino/sketchbook
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-g++ -c -g -Os -fno-exceptions -ffunction-sections -fdata-sections -Wall -mmcu=atmega328p -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=105 -I"C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino" -I"C:\Program Files (x86)\Arduino\hardware\arduino\variants\standard" -I"C:\Program Files (x86)\Arduino\libraries\SD" -I"C:\avr" -o "C:\Users\Greg\AppData\Local\VMicro\Arduino\Builds\tyest4\uno\tyest4.cpp.o"  "C:\Users\Greg\AppData\Local\VMicro\Arduino\Builds\tyest4\uno\tyest4.cpp"  -DVISUALMICRO_COMPILER_VER=1

[/code]
  
Back to top
 
IP Logged
 
gman4925
Junior Member
**
Offline


Posts: 16
Joined: Feb 11th, 2014
Re: The given path's format is not supported Exception
Reply #1 - Feb 11th, 2014 at 10:35pm
Print Post  
Code
Select All

C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-g++ -c -g -Os -fno-exceptions -ffunction-sections -fdata-sections -Wall -mmcu=atmega328p -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=105 -I"C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino" -I"C:\Program Files (x86)\Arduino\hardware\arduino\variants\standard" -I"C:\Program Files (x86)\Arduino\libraries\SD" -I"C:\avr" -I"C:\Program Files (x86)\Arduino\libraries\SD\utility" -o "C:\Users\Greg\AppData\Local\VMicro\Arduino\Builds\tyest4\uno\SD\File.cpp.o"  "C:\Program Files (x86)\Arduino\libraries\SD\File.cpp"  -DVISUALMICRO_COMPILER_VER=1
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-g++ -c -g -Os -fno-exceptions -ffunction-sections -fdata-sections -Wall -mmcu=atmega328p -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=105 -I"C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino" -I"C:\Program Files (x86)\Arduino\hardware\arduino\variants\standard" -I"C:\Program Files (x86)\Arduino\libraries\SD" -I"C:\avr" -I"C:\Program Files (x86)\Arduino\libraries\SD\utility" -o "C:\Users\Greg\AppData\Local\VMicro\Arduino\Builds\tyest4\uno\SD\SD.cpp.o"  "C:\Program Files (x86)\Arduino\libraries\SD\SD.cpp"  -DVISUALMICRO_COMPILER_VER=1
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-g++ -c -g -Os -fno-exceptions -ffunction-sections -fdata-sections -Wall -mmcu=atmega328p -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=105 -I"C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino" -I"C:\Program Files (x86)\Arduino\hardware\arduino\variants\standard" -I"C:\Program Files (x86)\Arduino\libraries\SD" -I"C:\avr" -I"C:\Program Files (x86)\Arduino\libraries\SD\utility" -o .cpp.o"  "C:\Program Files (x86)\Arduino\libraries\SD\utility\Sd2Card.cpp"  -DVISUALMICRO_COMPILER_VER=1
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-g++ -c -g -Os -fno-exceptions -ffunction-sections -fdata-sections -Wall -mmcu=atmega328p -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=105 -I"C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino" -I"C:\Program Files (x86)\Arduino\hardware\arduino\variants\standard" -I"C:\Program Files (x86)\Arduino\libraries\SD" -I"C:\avr" -I"C:\Program Files (x86)\Arduino\libraries\SD\utility" -o cpp.o"  "C:\Program Files (x86)\Arduino\libraries\SD\utility\SdFile.cpp"  -DVISUALMICRO_COMPILER_VER=1
SdFile.cpp:In static member function 'static uint8_t SdFile::make83Name(const char*, uint8_t*)'
SdFile.cpp:259: warning: only initialized variables can be placed into program memory area
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-g++ -c -g -Os -fno-exceptions -ffunction-sections -fdata-sections -Wall -mmcu=atmega328p -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=105 -I"C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino" -I"C:\Program Files (x86)\Arduino\hardware\arduino\variants\standard" -I"C:\Program Files (x86)\Arduino\libraries\SD" -I"C:\avr" -I"C:\Program Files (x86)\Arduino\libraries\SD\utility" -o e.cpp.o"  "C:\Program Files (x86)\Arduino\libraries\SD\utility\SdVolume.cpp"  -DVISUALMICRO_COMPILER_VER=1

 

  
Back to top
 
IP Logged
 
gman4925
Junior Member
**
Offline


Posts: 16
Joined: Feb 11th, 2014
Re: The given path's format is not supported Exception
Reply #2 - Feb 11th, 2014 at 10:35pm
Print Post  
Code
Select All


System.NotSupportedException: The given path's format is not supported.
   at System.Security.Util.StringExpressionSet.CanonicalizePath(String path, Boolean needFullPath)
   at System.Security.Util.StringExpressionSet.CreateListFromExpressions(String[] str, Boolean needFullPath)
   at System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionAccess access, AccessControlActions control, String[] pathListOrig, Boolean checkForDuplicates, Boolean needFullPath, Boolean copyPathList)
   at System.Security.Permissions.FileIOPermission..ctor(FileIOPermissionAccess access, String[] pathList, Boolean checkForDuplicates, Boolean needFullPath)
   at System.IO.FileInfo.Init(String fileName, Boolean checkHost)
   at System.IO.FileInfo..ctor(String fileName)
   at processing.app.SketchCompiler.CreateFileTimeListXml(String fileType, DirectoryInfo folder, String outputPath)
   at processing.app.SketchCompilerArduino.compileLibrary(DirectoryInfo outputPath, DirectoryInfo libraryFolder, List`1 includePaths)
   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 don't know what changed to make it throw these exceptions, I could have installed other software, but I have no idea what it could have been.
   I have reinstalled AS, VM and Arduino, still the same problems.
   
   Atmel Studio Version 6.1.2730 SP2
   VM 1.1401.31 (System->Available Version 1.1401.26)
   Arduino 1.0.5-r2 or 1.5.5-r2
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: The given path's format is not supported Exception
Reply #3 - Feb 11th, 2014 at 10:45pm
Print Post  
Hi,

I think the first report sounds like a problem with a virus checker objecting to us opening and saving the xml file used during the compilation too often.

I have heard of this once before, I forget which virus checker it was but it wasn't a great one. If you switch it off and compile this will prove the point.

If it is the virus checker Kaspersky seems to be one of the most well reviewed and it is free.

EDIT: Remove info because post has been superceeded
« Last Edit: Feb 11th, 2014 at 10:53pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: The given path's format is not supported Exception
Reply #4 - Feb 11th, 2014 at 10:52pm
Print Post  
I take it back, maybe for the very first problem that was virus checker I think

Now you have posted more info I can see the problem is Visual Micro for some reason believes it has to include a path called "C:\avr"

I think your Arduino installation has some invalid stuff which Visual Micro probably should ignore but we won't hit the problem if the Arduino install is correct.

I can see from your build log that you are using Arduino 1.0.5. I suggest you uninstall it then remove the folder called "C:\Program Files (x86)\Arduino". Then install it again.

Hope to hear that fixes it.

  
Back to top
IP Logged
 
gman4925
Junior Member
**
Offline


Posts: 16
Joined: Feb 11th, 2014
Re: The given path's format is not supported Exception
Reply #5 - Feb 11th, 2014 at 11:11pm
Print Post  
I tried with the AV disabled (Trend) didn't get problem 1, but that was intermittent, I will add atmel studio to the exception list.
Didn't affect problem 2. 
Uninstalled arduino and went to delete the directory, some EXEs in the hardware folder were apparently still in use so I have killed them and then deleted them.
Reinstalling Arduino now.
  
Back to top
 
IP Logged
 
gman4925
Junior Member
**
Offline


Posts: 16
Joined: Feb 11th, 2014
Re: The given path's format is not supported Exception
Reply #6 - Feb 11th, 2014 at 11:22pm
Print Post  
Reinstalled, still have the same problem, still have -I"C:\avr" in the build line before it fails, though it is in all the build lines.

Code
Select All
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-g++ -c -g -Os -fno-exceptions -ffunction-sections -fdata-sections -Wall -mmcu=atmega328p -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=105 -I"C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino" -I"C:\Program Files (x86)\Arduino\hardware\arduino\variants\standard" -I"C:\Program Files (x86)\Arduino\libraries\SD" -I"C:\avr" -I"C:\Program Files (x86)\Arduino\libraries\SD\utility" -o .cpp.o"  "C:\Program Files (x86)\Arduino\libraries\SD\utility\SdVolume.cpp"  -DVISUALMICRO_COMPILER_VER=1
System.NotSupportedException: The given path's format is not supported.
   at System.Security.Util.StringExpressionSet.CanonicalizePath(String path, Boolean needFullPath)
   at System.Security.Util.StringExpressionSet.CreateListFromExpressions(String[] str, Boolean needFullPath)
   at System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionAccess access, AccessControlActions control, String[] pathListOrig, Boolean checkForDuplicates, Boolean needFullPath, Boolean copyPathList)
   at System.Security.Permissions.FileIOPermission..ctor(FileIOPermissionAccess access, String[] pathList, Boolean checkForDuplicates, Boolean needFullPath)
   at System.IO.FileInfo.Init(String fileName, Boolean checkHost)
   at System.IO.FileInfo..ctor(String fileName)
   at processing.app.SketchCompiler.CreateFileTimeListXml(String fileType, DirectoryInfo folder, String outputPath)
   at processing.app.SketchCompilerArduino.compileLibrary(DirectoryInfo outputPath, DirectoryInfo libraryFolder, List`1 includePaths)
   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: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: The given path's format is not supported Exception
Reply #7 - Feb 11th, 2014 at 11:34pm
Print Post  
Sorry for the wasted time. 

Would you please zip and email the sketch folder (and also include the visual micro sub folder) to info [at] visualmicro.com

I think you are right. It is something to do with the SD library. Does this happen with other libraries? 

I need to look into it because the invalid path exists between the SD and the SD/Utility includes which are added by Visual Micro at the same time. 

Questions

1) Which version of Visual Micro are you using see "tools>options>visual micro>version"

2) Is the Arduino you installed 1.0.5 or the latest 1.0.5-r2?

3) In "tools>addin manager" do you just see one Visual Micro entry?

4) If you click Build>Clean Solution then build do you get the same error?

Thanks
« Last Edit: Feb 11th, 2014 at 11:39pm by Tim@Visual Micro »  
Back to top
IP Logged
 
gman4925
Junior Member
**
Offline


Posts: 16
Joined: Feb 11th, 2014
Re: The given path's format is not supported Exception
Reply #8 - Feb 12th, 2014 at 12:11am
Print Post  
email sent

Doesn't matter what library I include, this example uses Servo.h and it fails as well.
   Atmel Studio Version 6.1.2730 SP2
   VM 1.1401.31 (System->Available Version 1.1401.26)
   Arduino 1.0.5-r2
One entry in addin manager, command line is not ticked.
Build->Clean Solution doesn't change the errors

I have winavr installed in C:\AVR\WinAVR-20100110, you seemed to say there may have been an issue with c:\avr, so I don't know if that info is useful.
From the cppproj file:
Code
Select All
<avrgcc.compiler.directories.IncludePaths>
          <ListValues>
            <Value>C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino</Value>
            <Value>C:\Program Files (x86)\Arduino\hardware\arduino\variants\standard</Value>
            <Value>C:\Program Files (x86)\Arduino\libraries\Servo</Value>
            <Value>C:\Program Files (x86)\Arduino\libraries\Servo\utility</Value>
            <Value>C:\avr</Value>
            <Value>C:\avr\utility</Value>
            <Value>c:\program files (x86)\arduino\hardware\tools\avr\avr\include\</Value>
            <Value>c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\</Value>
            <Value>c:\program files (x86)\arduino\hardware\tools\avr\avr\</Value>
            <Value>c:\program files (x86)\arduino\hardware\tools\avr\lib\gcc\avr\4.3.2\include\</Value>
          </ListValues>
 



Note that the capitalisation of C:\Program Files changes after the C:\avr\utility entry.
C:\avr\utility does not exist, it might be a problem coming from where VM gets the path, but I don't know where that is or what would affect it.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: The given path's format is not supported Exception
Reply #9 - Feb 12th, 2014 at 12:58am
Print Post  
Hi there,

Thanks for all the good information. 

That was a beta and something rings a bell that there was an empty path issue (which windows attempted to resolve from its working directory) in one of the beta versions. 

In addition to that the latest release which should have been prompted to you a couple of weeks ago for download (i hope?) contains support for some library structure changes in Arduino 1.5.5-r2.

So hopefully upgrading to the current released version will resolve the issue?
  
Back to top
IP Logged
 
gman4925
Junior Member
**
Offline


Posts: 16
Joined: Feb 11th, 2014
Re: The given path's format is not supported Exception
Reply #10 - Feb 12th, 2014 at 2:13am
Print Post  
I don't follow, what was a beta version?
I have (Version->Version 1.1401.31) (System->Available Version 1.1401.26)

I tried with Arduino 1.5.5-r2.
Tried with servo.h, worked.
Tried with SD.h, it said SPI.h not included and error compiling, but not exception.
Added SPI.h and got exception.
Removed SPI.h and it now works with only SD.h in the project.
Remove SD.h and put SPI.h back and it throws the exception again.

SD.h now gives this
Code
Select All
"C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-g++" -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=155 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -I"C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" -I"C:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard" -I"C:\Program Files (x86)\Arduino\libraries\SD\src" "C:\Users\Greg\AppData\Local\VMicro\Arduino\Builds\test9\uno\test9.cpp" -o "C:\Users\Greg\AppData\Local\VMicro\Arduino\Builds\test9\uno\test9.cpp.o" -DVISUALMICRO_COMPILER_VER=1
"C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-gcc" -Os -Wl,--gc-sections -mmcu=atmega328p -o "C:\Users\Greg\AppData\Local\VMicro\Arduino\Builds\test9\uno/test9.elf" "C:\Users\Greg\AppData\Local\VMicro\Arduino\Builds\test9\uno\test9.cpp.o" "C:\Users\Greg\AppData\Local\VMicro\Arduino\Builds\test9\uno\src\File.cpp.o" "C:\Users\Greg\AppData\Local\VMicro\Arduino\Builds\test9\uno\src\SD.cpp.o" .cpp.o" cpp.o" e.cpp.o" "C:\Users\Greg\AppData\Local\VMicro\Arduino\Builds\test9\uno/core.a" "-LC:\Users\Greg\AppData\Local\VMicro\Arduino\Builds\test9\uno" -lm
"C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-objcopy" -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 "C:\Users\Greg\AppData\Local\VMicro\Arduino\Builds\test9\uno/test9.elf" "C:\Users\Greg\AppData\Local\VMicro\Arduino\Builds\test9\uno/test9.eep"
"C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-objcopy" -O ihex -R .eeprom "C:\Users\Greg\AppData\Local\VMicro\Arduino\Builds\test9\uno/test9.elf" "C:\Users\Greg\AppData\Local\VMicro\Arduino\Builds\test9\uno/test9.hex"
Binary sketch size: 5550 bytes (used 17% of a 32256 byte maximum) (0.47 secs)
Minimum Memory Usage: 793 bytes (39% of a 2048 byte maximum) 



SPI.h now gives this
Code
Select All
"C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-g++" -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=155 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -I"C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" -I"C:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard" -I"C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI" -I"C:\avr" "C:\Users\Greg\AppData\Local\VMicro\Arduino\Builds\test9\uno\test9.cpp" -o "C:\Users\Greg\AppData\Local\VMicro\Arduino\Builds\test9\uno\test9.cpp.o" -DVISUALMICRO_COMPILER_VER=1
System.NotSupportedException: The given path's format is not supported. 






Before, when I typed #include <SD.h> Atmel Studio would replace it with something from the autocomplete list, maybe str_def.h?



Now it offers SD.h in the autocomplete list, but not SPI.h. Is this related?

 
  
Back to top
 
IP Logged
 
gman4925
Junior Member
**
Offline


Posts: 16
Joined: Feb 11th, 2014
Re: The given path's format is not supported Exception
Reply #11 - Feb 12th, 2014 at 6:07am
Print Post  
Oh, 1.1401.31 is/was a beta. Not sure how I got it, must have been when the software asked to update.

I downloaded and ran the installer earlier today and it kept installing 31, then I noticed two versions in windows uninstall programs and removed them both and ran the same installer and now it is 1.1401.26.
However, I still have the same problem with SD.h when using Arduino 1.0.5-r2.
If I use Arduino 1.5.5-r2 then it can't find SPI.h and if I add the SPI folder to the libraries folder it throws the exception again.

I have uninstalled and reinstalled Atmel Studio and Arduino and Visual Micro all with the antivirus disabled. Again, problems.

I have now installed VM 1.1309.11 and it now works!
There is definitely still an issue for me with 1.1401.26, though I guess it could be from having 1.1401.31 installed previously.

It still has -I"C:\avr" in the compile line, but 1.1309.11 is fine with it.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: The given path's format is not supported Exception
Reply #12 - Feb 12th, 2014 at 1:18pm
Print Post  
Hi

Thanks for all the info. Hopefully the next time you upgrade life will be easier....

Because this is such as standard system and many people are using the latest release without these problems I suspect you have been right about some points that need further investigation ...

1) Please make sure this property is empty - Tools>Options>Visual Micro>Toolchain Locations. This is where you might possibly have set winAvr as alternate toolchain which isn't supported so easily by the multi-platform recent version of the Arduino Ide and maybe has caused a bug in vm when the property is overriden (just a guess). 

2) You have set your sketchbook folder to be below your Arduino program files folder. Because the windows installer created "program files/arduino" I think this will be the root cause of the permissions problems we encountered previously. Normally the arduino sketchbook folder would default to mydocuments/arduino. I suggest you move it back to the default (clear the sketchbook property) when time allows. Also be aware that custom \hardware and \libraries can be placed below the sketchbook folder so it is best kept well away from the Arduino Ide because this might cause other confusion later on. Another issue with having the sketch book folder below the arduino ide folder is that it makes it difficult to upgrade/clean the arduino ide installation. 

NB: If you have changed the sketchbook folder in Visual Micro instead of in the Arduino Ide then both apps could possibly give different compiler results. If you have switch on the Visual Micro tools>option "Allow parent libs" then this would possibly cause other problems unless the sketchbook folder is well away from the Arduino Ide

3) As a precaution the next time you upgrade Visual Micro I would first select "remove" then install. Atmel Studio never needs to  be re-installed, Visual Micro doesn't use any of it. Lib paths are deduced from the Arduino configuration and not Atmel Studio.

Sorry to just dump this info on you. It is very puzzling that you had this problem. A very different result to everyone else therefore I am throwing everything at you simply to standardize your install. The decisions you have made about locations is not without merit just different  Smiley

If you continue to encounter this problem we can add some trace info to track where the avr folder is coming from.

Thanks for the great reporting
  
Back to top
IP Logged
 
gman4925
Junior Member
**
Offline


Posts: 16
Joined: Feb 11th, 2014
Re: The given path's format is not supported Exception
Reply #13 - Feb 12th, 2014 at 11:53pm
Print Post  
1) Nothing there
2) Moved to default location
3) Removed old version, installed new version, still have the same problems

I think I just have to use the older version and try again with the next update, I'm happy to try anything else you suggest though.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: The given path's format is not supported Exception
Reply #14 - Feb 13th, 2014 at 2:09am
Print Post  
Okay, I will give it some thought. In the meantime would you please zip your sketchbook\libraries folder if it exists and ide\libraries folder then email.

Thanks very much

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


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: The given path's format is not supported Exception
Reply #15 - Feb 13th, 2014 at 2:27am
Print Post  
Oh I think I can see the problem. Don't need to send me any files just yet thanks. the sketch library search paths in your report are showing incorrectly. I will look into why that might happen.
  
Back to top
IP Logged
 
gman4925
Junior Member
**
Offline


Posts: 16
Joined: Feb 11th, 2014
Re: The given path's format is not supported Exception
Reply #16 - Feb 13th, 2014 at 2:34am
Print Post  
It was doing it with a fresh install, with nothing in sketchbook\libraries and ide\libraries from the installer.

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


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: The given path's format is not supported Exception
Reply #17 - Feb 13th, 2014 at 6:58pm
Print Post  
How did you install the Visual Micro releases? After you hit the problem did you. at any time, use the Remove option (or use the Uninstall from control panel or did you use the repair option?

Thanks
  
Back to top
IP Logged
 
gman4925
Junior Member
**
Offline


Posts: 16
Joined: Feb 11th, 2014
Re: The given path's format is not supported Exception
Reply #18 - Feb 13th, 2014 at 10:35pm
Print Post  
I installed VM using atmel gallery.
I somehow got v1.1401.31, I assume through atmel gallery when it told me there was a new version.
When I started having problems I uninstalled and reinstalled and I'm pretty sure repaired, using the installer, though it didn't change it down to v1.1401.26 so I assumed it was meant to install xx.31, this was using the installer from your website which I downloaded that day.
Then I was looking in control panel->uninstall and noticed there were two entries for VM, though I can't recall what two versions they were, but I uninstalled both from the control panel.
I then used the same installer I had been using and it installed xx.26 but the problem remained.
I then uninstalled it using control panel and installed 1309.11 and it went back to compiling without throwing an exception.
Do you think it is the line being passed to avr-g++ or something after that.
Could it be that when avr-g++ returns a warning or error it is trying to load the path there to make a clickable link to it and is having a problem?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: The given path's format is not supported Exception
Reply #19 - Feb 14th, 2014 at 2:01pm
Print Post  
Hi,

Thanks for the good info. Actually I was confused with which version you had installed. I thought it was an old beta but it was the latest beta which is always fine. Sorry!

Some good reasoning in what you have said but this is easier than that. I have looked into the SketchLib Folder list and it is correct. The verbose log shows the list used by intellisense which is different from what is passed to the compiler.

The problem is confusing because when we see the c:\avr folder we also see c:\avr\utility. Visual Micro only includes a "utility" folder for libraries and discovers all lib paths at runtime. So this can not be read from a config file.

The question I have yet to answer is why visual micro things it is valid to look in c:\avr for libraries. Visual Micro normally only looks in a few places for libs:-
ide/libraries
ide/hardware/arduino/platform/libraries
sketchbook/libraries

We also know that thousands of people are now using the last version without this issue.

It's such a strange problem that I think more trace information is required from Visual Micro. The next time you install Vm please switch on "tools>options>visual micro>compiler>show build properties" along with "verbose". This might show the problem, if not we will need to add more trace info.

Thanks
  
Back to top
IP Logged
 
Page Index Toggle Pages: [1] 2 
Send TopicPrint