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) Can't select a board and Error message in Visual Micro Explorer (Read 6601 times)
Nux
Newbies
*
Offline


Posts: 7
Joined: Apr 8th, 2018
Can't select a board and Error message in Visual Micro Explorer
Apr 8th, 2018 at 4:16pm
Print Post  
Hello,

I am wishing to try Visual Micro with Visual Studio community 2017 but I can't select a board

https://imgur.com/oeIlJ4a

While Visual micro Explorer Manage bords seem to be able to find them

https://imgur.com/IAxohaD

I also get this error message when when i rescan

https://imgur.com/m5jzN5i


Operating System: Windows 10 Professional
Microsoft Visual Studio Community 2017 Version 15.6.5
Arduino IDE for Visual Studio Version 1803.26.0
Arduino GDB for Visual Micro 2017 Version 15.170821.1
Arduino version 1.8.5


I am starting programming so I hope this is not a to much stupid question ^^'
« Last Edit: Apr 8th, 2018 at 4:16pm by Nux »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12144
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Can't select a board and Error message in Visual Micro Explorer
Reply #1 - Apr 8th, 2018 at 4:45pm
Print Post  
What path have you entered for the arduino ide location?

  

Please Register or Login to the Forum to see File Attachments
Back to top
IP Logged
 
Nux
Newbies
*
Offline


Posts: 7
Joined: Apr 8th, 2018
Re: Can't select a board and Error message in Visual Micro Explorer
Reply #2 - Apr 8th, 2018 at 5:28pm
Print Post  
The path is D:\Utilitaire\Arduino

https://imgur.com/RvWednr
« Last Edit: Apr 8th, 2018 at 5:34pm by Nux »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12144
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Can't select a board and Error message in Visual Micro Explorer
Reply #3 - Apr 8th, 2018 at 5:33pm
Print Post  
Thanks for the info

1)
Please leave the 2nd path in your screen shot empty (Optional sketch book)

2)
Does the arduino.exe exist in D:\Utilitaire\Arduino?




  
Back to top
IP Logged
 
Nux
Newbies
*
Offline


Posts: 7
Joined: Apr 8th, 2018
Re: Can't select a board and Error message in Visual Micro Explorer
Reply #4 - Apr 8th, 2018 at 5:34pm
Print Post  
if i let the sketchbook empty i can't use a board and i can't open arduino project without getting a message "Please configure the location of arduino your sketchbook folder by running arduino.exe once"

Once i run "arduino.exe"

i get 

"Error during processing of the command. Please review or post the stack trace in the www.visualmicro.com forumThe path is not of a legal form. (Visual.Micro.Visual.Studio.Arduino.Helper.SolutionOpenArduinoSketch)
System.ArgumentException: The path is not of a legal form.
   at System.IO.Path.LegacyNormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)
   at System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)
   at System.IO.Path.GetFullPathInternal(String path)
   at System.IO.DirectoryInfo.Init(String path, Boolean checkHost)
   at System.IO.DirectoryInfo..ctor(String path)
   at Visual.Micro.MiroAppAPI.MCUApplication.getSketchbookFolder()
   at Visual.Micro.MiroAppAPI.SketchUtils.OpenSketchFilePicker(MCUApplication mcuApp)
   at Visual.Micro.Visual.Studio.Arduino.AddInApp.ExecCmd(String commandName)
"

I am starting to guess this is the mistake i can't save arduino with my other software ?

2/ yes arduino.exe is in the folder i have add it in my previous message (edit: https://imgur.com/RvWednr)

(the first post remove was save by mistake ^^')
« Last Edit: Apr 8th, 2018 at 5:36pm by Nux »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12144
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Can't select a board and Error message in Visual Micro Explorer
Reply #5 - Apr 8th, 2018 at 5:41pm
Print Post  
In the arduino ide file>preferences

What path is shown for the sketchbook folder?
  
Back to top
IP Logged
 
Nux
Newbies
*
Offline


Posts: 7
Joined: Apr 8th, 2018
Re: Can't select a board and Error message in Visual Micro Explorer
Reply #6 - Apr 8th, 2018 at 5:46pm
Print Post  
It is: "D:\Utilitaire\Arduino Libraries"

Screenshoot of my preference: https://imgur.com/z47FPVz
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12144
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Can't select a board and Error message in Visual Micro Explorer
Reply #7 - Apr 8th, 2018 at 5:56pm
Print Post  
Okay it's sounding like a permissions problem

Please close visual studio and right click the short cut to "Start as administrator"

Does this make a difference?

Please also ensure there is not hidden space after the sketch book path in arduino ide. Maybe visual micro isn't trimming it.
« Last Edit: Apr 8th, 2018 at 5:58pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Nux
Newbies
*
Offline


Posts: 7
Joined: Apr 8th, 2018
Re: Can't select a board and Error message in Visual Micro Explorer
Reply #8 - Apr 8th, 2018 at 6:05pm
Print Post  
I don't see any difference i can still not select a board and when I try to open an arduino project i get the same message

Also when i open Visual Micro explorer i get this (but this like this since the sketchbook path is remove ) 
https://imgur.com/g3GweoF

Edit: with administrator and Antivirus software disable, I get the same result


I give the message Error in output in case i am missing something but it seem to be the same.

"Error during processing of the command. Please review or post the stack trace in the www.visualmicro.com forumThe path is not of a legal form. (Visual.Micro.Visual.Studio.Arduino.Helper.SolutionOpenArduinoSketch)
System.ArgumentException: The path is not of a legal form.
   at System.IO.Path.LegacyNormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)
   at System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)
   at System.IO.Path.GetFullPathInternal(String path)
   at System.IO.DirectoryInfo.Init(String path, Boolean checkHost)
   at System.IO.DirectoryInfo..ctor(String path)
   at Visual.Micro.MiroAppAPI.MCUApplication.getSketchbookFolder()
   at Visual.Micro.MiroAppAPI.SketchUtils.OpenSketchFilePicker(MCUApplication mcuApp)
   at Visual.Micro.Visual.Studio.Arduino.AddInApp.ExecCmd(String commandName)
"
« Last Edit: Apr 8th, 2018 at 7:41pm by Nux »  
Back to top
 
IP Logged
 
Nux
Newbies
*
Offline


Posts: 7
Joined: Apr 8th, 2018
Re: Can't select a board and Error message in Visual Micro Explorer
Reply #9 - Apr 8th, 2018 at 9:56pm
Print Post  
I don't know if this is helpfull but like I use a SSD (So with low space) i have install visual studio on D:\

But the IDE seem to still install some stuff on C:\

My Os is also on C:\
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12144
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Can't select a board and Error message in Visual Micro Explorer
Reply #10 - Apr 8th, 2018 at 10:40pm
Print Post  
I've never heard of this problem before.

Please try to take the space out of "arduino libraries" and see if that helps

Rename the folder using windows explorer and change arduino ide file>prefs then restart visual micro

A space is normally okay but something strange is happening.

  
Back to top
IP Logged
 
Nux
Newbies
*
Offline


Posts: 7
Joined: Apr 8th, 2018
Re: Can't select a board and Error message in Visual Micro Explorer
Reply #11 - Apr 9th, 2018 at 8:55am
Print Post  
Still the same result.

note: I alway try with adminstrator with antivirus disable now.

I have try without and with giving the optional sketchbook location to visual micro.

Without the optional sketchbook location i have see than i get an error message in visual micro explorer when i selecte the ide

https://imgur.com/a/B3Wa2

ps: The new library path is "D:\Utilitaire\ArduinoLibraries"
« Last Edit: Apr 9th, 2018 at 9:02am by Nux »  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint