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 VM suddently can't link with IDE (Read 3054 times)
karlwang
Newbies
*
Offline


Posts: 4
Joined: Jan 15th, 2019
VM suddently can't link with IDE
Jan 15th, 2019 at 8:43am
Print Post  
I use VS community 2017 with VM arduino, and it worked fine for many months. 
And suddenly, VM cannot link to IDE and can't find board info, can't start a arduino project, etc. 
The location for IDE is recognized as an Arduino folder. But when i choose that configuration on the toolbar, it gives me the following message.
"Visual Micro: Status- Unable the select the current application System.NullReferenceException....."
The two things i did before i notice the change is that I edited the preference.txt file for IDE, and pull a project from git. Not sure if they are related. 
I have reinstalled both arduino IDE and VS community 2017, doesn't help.
Please can someone help me?
« Last Edit: Jan 15th, 2019 at 8:46am by karlwang »  
Back to top
 
IP Logged
 
karlwang
Newbies
*
Offline


Posts: 4
Joined: Jan 15th, 2019
Re: VM suddently can't link with IDE
Reply #1 - Jan 15th, 2019 at 10:10am
Print Post  
Well, after I tried setting the IDE as v1.5 (actually v1.8.8), no change. But after I changed it back to 1.6/1.8, it started working again. If anyone else have the same problem, you can try this.   Cool
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VM suddently can't link with IDE
Reply #2 - Jan 15th, 2019 at 1:31pm
Print Post  
When the ide path is loaded we also load installed board manager hardware. It is possible that a board manager hardware install causes some incorrect path info for visual micro.

It is also possible that a mistake in preferences.txt causes this issue and that running the arduino ide rcreated the preferences.txt resolving the issue.

The location of the board manager hardware is below the folder containing preferences.txt. If the problem happens again, rename the arduino15 folder then open visual micro to see if that solves the issue. If it does then let me know and we can looked at the renamed folder so see the issue.
  
Back to top
IP Logged
 
karlwang
Newbies
*
Offline


Posts: 4
Joined: Jan 15th, 2019
Re: VM suddently can't link with IDE
Reply #3 - Jan 16th, 2019 at 2:50am
Print Post  
Yes, the problem happened again. I renamed the folder as you said. And IDE generated new preferences.txt and VM generated some files, too. But still have problems. VM can find the board names, but gives me some error when I try to build.

Here are the error messages:

Compiling 'demo' for 'Arduino/Genuino Mega w/ ATmega2560 (Mega 2560)'
 
IRremote.cpp.o (symbol from plugin)*: In function MATCH(int, int)
(.text+0x0)*: multiple definition of __vector_47

Error linking for board Arduino/Genuino Mega w/ ATmega2560 (Mega 2560)
Servo.cpp.o (symbol from plugin)*: (.text+0x0): first defined here
Build failed for project 'demo'
ld.exe: Disabling relaxation: it will not work with multiple definitions
 
collect2.exe*: error: ld returned 1 exit status

I think it's still caused by the same issue
  
Back to top
 
IP Logged
 
karlwang
Newbies
*
Offline


Posts: 4
Joined: Jan 15th, 2019
Re: VM suddently can't link with IDE
Reply #4 - Jan 17th, 2019 at 2:42am
Print Post  
After messing with the Arduino location window a little bit with no change. Restarted the computer, and it started working again. And Today, I started the computer and it still works. I don't know what happened, but thanks for the reply again.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VM suddently can't link with IDE
Reply #5 - Jan 17th, 2019 at 1:26pm
Print Post  
If this happens after changing or installing updated hardware definitions then click Build>Rebuild or Build>Clean. The Clean simply clears the temp build folder.

Visual Micro should auto detect hardware/core updates so pls report if you make some changes that are not auto detected.

It's also possible through a combination of source file renames the build folder might be incorrect so again a Build>Clean would solve this.

Normally you should not see this linker error but this information will help if you see one in the future.

Thanks for the update.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint