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 visualmicro not working after first install - fixed by clean vs restart (Read 6509 times)
alkalin
Newbies
*
Offline


Posts: 3
Location: Horsens,DK
Joined: Apr 30th, 2012
visualmicro not working after first install - fixed by clean vs restart
Apr 30th, 2012 at 2:04pm
Print Post  
first congrats for this awesome extension, it is really useful. But it doesn't work for me.
VS 2010 (PRO), and everything I do turns into an error. For example, creating a new arduino project called w and built without editing says : "w.pde - no such file or directory"
It has this error when I open an old project as well.
Plus it deosn't recognize any arduino functions, like delay, milis ... not declared.
I exited and restarted VS several times, i also repaired visual micro, and different things appeared on the taskbar and menus. Sometimes I couldn't choose the board, sometimes Project>open new arduino didn't appear... Cheesy  now this is stabilized, i get the same things, but the error persists.

Any help?
Thanks
« Last Edit: May 28th, 2012 at 11:53pm by Tim@Visual Micro »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: visualmicro not working from the beggining
Reply #1 - Apr 30th, 2012 at 4:43pm
Print Post  
Hi,

Thanks. It sounds like it is having startup problems. Generally it is a very simple system so there can not be that much to go wrong. Normally Smiley Questions..

1)
One thing to do it to switch on the Trace in the vm options. This will create a txt trace file in your Visual Micro program folder. Pls submit the contents of the trace after re-starting visual studio

2)
If you selected File>New>Arduino Project and enter "TestSketch" as a name, add a void setup() then select a board and press F5 what error to you get or what text in which output window is displayed?

3)
Can you confirm that you see what looks to be all libraries on "Project>Add Arduino Library>User" and "Project>Add Arduino Library>Core"

4)
Please confirm what happens when you try to compile sketch "w" using the arduino ide

5)
When you say that you also opened an old project. I assume you mean an old .pde? If so was the current visual studio solution empty or closed at the time? and if so did Visual Studio ask if you wanted to create a project for the sketch?

6)

if you open visual studio empty and then use "File>Open File" to open your w.pde file does it prompt to open the "w" project? Does the w.pde exist in the w project folder? If it doesn't exist this also points to some startup problems.

7)

Do you have C++, C# and VB.NET languages installed in Visual Studio?

8)

Are you using Visual Studio SP1

9)

What other addins and extensions do you have loaded?

10)

Does the current user have registry permissions? Can you start VS with admin rights to see if there is a difference.
  
Back to top
IP Logged
 
alkalin
Newbies
*
Offline


Posts: 3
Location: Horsens,DK
Joined: Apr 30th, 2012
Re: visualmicro not working from the beggining
Reply #2 - May 1st, 2012 at 11:53am
Print Post  
thanks for the prompt response
Guess what: today it compiled, the first time. And I changed nothing...
Weird, I hope it says like this...
1)trace seems ok now, do you still need it just in case?
2) setup created automatically...now it compiles ok
3)ok, it was ok before
4) now it's ok
5) ok
6) check
7)yes
8) how can i find out?
help sais version 10.0.30319.1
9)none
10) the same

BUT
While writing this, I tried opening an existing arduino sketch. It opened ok and linked all the files, and it compiled (first time ever). But now when I exit VS and reopen the project, again I have compile issues...
The Arduino sketch I am using is this:
http://code.google.com/p/arducopter/downloads/detail?name=ArduCopter-2.5.4.zip&c...
and instructions are here:
http://code.google.com/p/arducopter/wiki/Code
  
Back to top
 
IP Logged
 
alkalin
Newbies
*
Offline


Posts: 3
Location: Horsens,DK
Joined: Apr 30th, 2012
Re: visualmicro not working from the beggining
Reply #3 - May 1st, 2012 at 11:57am
Print Post  
ok i solved that too.
They have a relax version of arduino IDE, because they say their code is too big. When I use this with VIsualMicro, i gives the compile errors. But the normal Arduino does it.
Of course, they hacked the program so it is prone to having problems...

Well, like I said , i hope it stays like this, working...
Thank you very much again, and great job.

I'll be back if anything

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


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: visualmicro not working from the beggining
Reply #4 - May 1st, 2012 at 3:49pm
Print Post  
Great. the relax patch is supported so let me know if any problems. 

One problem i know about with relax is that they forgot to alter the version.txt in the arduino ide/libraries folder. The file needs to contain 100 or greater if working with arduino 1.0 or you will get compile errors.
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: visualmicro not working from the beggining
Reply #5 - May 1st, 2012 at 3:51pm
Print Post  
Good to hear it is all working. For other users who might read this was the reason for the problem...

One other thing to note is that after your reset, the Visual Studio devenv.exe process was probbaly hanging around. 

You would see it in task manager > processes. It would need to be closed to ensure a clean Visual Studio start which is probably what happened  today hence things are now working.

Re-booting your machine is the other way to see a clean start. 

Once you are up and running it should not be a problem anymore.
« Last Edit: May 20th, 2012 at 10:32pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint