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) VM can't find IDE location (Read 3156 times)
XandeUG
Junior Member
**
Offline


Posts: 11
Joined: Aug 2nd, 2019
VM can't find IDE location
Feb 28th, 2020 at 12:52am
Print Post  
Hello,

I've been using VM for the last months with no problems at all, but today something strange happened.
For any apparent reason, VM can't find the IDElocation anymore. I didn't updated or changed anything special for this to happen. The only thing that i have done was installing an Black Theme on Arduino IDE (that requires changing preferences.txt  and the themes folder) and an extension on VS called Color Theme Editor.

Things that i've tried for fixing the problem:
Uninstalling the VS theme extension
Reversed the changes related to the Arduino Black Theme
Uninstalled and reinstalled the VM extension on VS
Downloaded the Arduino zip version and tried to point to it location, instead of the main one.

None of this things helped.

If anyone have a glimpse on how to fix this, i would appreciate.

Need more information to help fixing this problem? let me know which one.

Arduino Version - 1.8.10
VS Version - 2019
VM Version - 1912.28.2
OS Version - Windows 10

Best of regards,
Alexandre.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VM can't find IDE location
Reply #1 - Feb 28th, 2020 at 1:52am
Print Post  
Please give more info or show picture of your ide and the vmicro menu.

In Visual Micro there is an IDE Locations window available on the vMicro>General menu. It's important to say what path is entered into that window for the Arduino 1.6-1.8 menu and also to say where your arduino ide (arduino.exe) is locatated.

If you have an open project then also state what IDE and Board you have selected on the vMicro menu.

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VM can't find IDE location
Reply #2 - Feb 28th, 2020 at 1:52am
Print Post  
Please give more info or show picture of your ide and the vmicro menu.

In Visual Micro there is an IDE Locations window available on the vMicro>General menu. It's important to say what path is entered into that window for the Arduino 1.6-1.8 menu and also to say where your arduino ide (arduino.exe) is locatated.

If you have an open project then also state what IDE and Board you have selected on the vMicro menu.

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


Posts: 11
Joined: Aug 2nd, 2019
Re: VM can't find IDE location
Reply #3 - Feb 28th, 2020 at 8:43pm
Print Post  
Hello,

I forgot to mention, the IDE location in the VM Micro isn't wrong, as you can see in the pictures below:
https://photos.app.goo.gl/bm6jDWhQs8kyzn8C6

When i change the location, i get this message in the window:
https://photos.app.goo.gl/LJCTf8Xsh3fZrLHA8

For some reason, the VM can't find the location, even that i didn't have changed since i've installed it.

Tell me if i can provide you with anything else.

Thanks for your time.
Alexandre
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VM can't find IDE location
Reply #4 - Feb 28th, 2020 at 8:50pm
Print Post  
Thanks, there are not any other reports of this and it would be very serious for visual micro to have an issue in this area.

I can try to guess for a solution:-

1)
Normally windows is not case sensitive but it can be. I notice the "c" is lower case in Visual Micro. Can you please paste the folder name from windows explorer into the IDE Location window just to be sure everything matches?

2)
Do you have some kind of permissions issue preventing Visual Micro from accessing the Arduino IDE. try running VS as admin?

3)
Please post a screen shot of the entire IDE.

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


Posts: 11
Joined: Aug 2nd, 2019
Re: VM can't find IDE location
Reply #5 - Feb 29th, 2020 at 1:59am
Print Post  
Hello!
1) Tried but didn't fixed. As you pointed, the "c" in the directory is in Upper Case, but it doesn't seems to be case sensitive

2) Not that i know. As i had pointed in the fist post, i'am using the VM plugging in the lasts months, and worked just fine. I've tried running VS in Admin mode, but didn't helped.

3) IDE Screenshot: https://photos.app.goo.gl/7goB3AQCH3c16HHy8

I have one question, how can i remove VM completely of the VS? I tried to uninstall, but somehow it managed to store the License and all other configurations when i reinstalled it(is that coming from some type of external API? Maybe based on my Hardware Id).

Thanks, 
Alexandre
« Last Edit: Feb 29th, 2020 at 2:00am by XandeUG »  
Back to top
 
IP Logged
 
XandeUG
Junior Member
**
Offline


Posts: 11
Joined: Aug 2nd, 2019
Re: VM can't find IDE location
Reply #6 - Feb 29th, 2020 at 11:58am
Print Post  
Hello, 

There is any way of using the VM without an external IDE? Is this what the option "Visual Micro (No IDE)" on the VM IDE dropdown does? 
if so, i think found a error that's maybe can help us to figure out the problem.

When i select the option, i get the following message:
https://photos.app.goo.gl/NpJ8FySyUqPa7SfS7

Is this the correct behaviour? Maybe is this that is causing the problem when location the Arduino IDE, but the error just appear when i don't have any IDE.

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VM can't find IDE location
Reply #7 - Feb 29th, 2020 at 2:07pm
Print Post  
Great info thanks. This means that one of the .json index urls for the board manager is causesing a problem that will fix. First let's see which json urls you have used.

In the arduino ide please open file>preferences and list here the entries you have added to the Board Support Urls.

If you have also added urls to the IDE Locations in Visual Micro then list them here too but I don't think you have done that

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


Posts: 11
Joined: Aug 2nd, 2019
Re: VM can't find IDE location
Reply #8 - Feb 29th, 2020 at 2:54pm
Print Post  
Hello, 

The only link in the Arduino IDE is the following:
https://www.adafruit.com/package_adafruit_index.json
(picture: https://photos.app.goo.gl/JyMV3Ajm6xY5CV9Q6)

And, in VM, i have no link inserted in the "Optional additional boards"(Both when "Arduino 1.6/1.8" and "Visual Micro (no IDE)")
(picture: https://photos.app.goo.gl/bm6jDWhQs8kyzn8C6)

Just to point out, i don't have changed those fields, both on Arduino IDE and on VM, recently, so it would be very strange if this is causing the problem.

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VM can't find IDE location
Reply #9 - Feb 29th, 2020 at 3:00pm
Print Post  
Thanks for the info.

I suggest you close arduino and visual studio and then ....

Find the temp arduino storage folder. It is usually c:\users\[your name]\appdata\local\arduino15. Rename the folder to something else, such as Arduino15x. 

Then run the arduino ide one time, close it. Then open visual micro and see if it is working okay. If it is then open board manager and click to install the adafruit platform again.

  
Back to top
IP Logged
 
XandeUG
Junior Member
**
Offline


Posts: 11
Joined: Aug 2nd, 2019
Re: VM can't find IDE location
Reply #10 - Feb 29th, 2020 at 4:19pm
Print Post  
Ohh, that worked  Cheesy!! 

Just changed the name, reopened the Arduino IDE and then the VS. Didn't had to do nothing in the VM. 

I wonder why this problem appeared in the first place... As I already said, the environment was working just fine and i don't had changed anything special. Damn software elves

Thanks for your help. Now i can go back to the VM environment... the Arduino IDE was killing me. 


Best of regards.
Alexandre
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VM can't find IDE location
Reply #11 - Feb 29th, 2020 at 4:24pm
Print Post  
Great, I asked you to rename so that we could capture what you had before. It would be very useful if you could zip the older arduino15 folder that you renamed and post a link somewhere that I could download it from.

I would like to see what was causing the issue if possible. Thanks.
  
Back to top
IP Logged
 
XandeUG
Junior Member
**
Offline


Posts: 11
Joined: Aug 2nd, 2019
Re: VM can't find IDE location
Reply #12 - Feb 29th, 2020 at 9:53pm
Print Post  
Of course, the link to access it is the following:
https://drive.google.com/drive/folders/1REtltxjLVkkmW8p0lbAwrm9oLbbOOKbL?usp=sha...

if you discover the root of the problem or need more info to help, just let me know.

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