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) Intellisense does not seem to be working as expected (Read 17506 times)
Mark
Newbies
*
Offline


Posts: 7
Location: Seattle, WA
Joined: Jan 13th, 2012
Intellisense does not seem to be working as expected
Jan 13th, 2012 at 6:41pm
Print Post  
I'm having trouble getting visual micro going and would like to post on your forum.

In case you've got a quick answer, my basic issue is that intellisense does not appear to be fully working.  For instance, the following are not recognized:

- Serial.begin(SERIAL_COM_SPEED);  (serial is not undefined)
- initOutput(); (this is a method in another sketch which is part of the same project.  Dbl clicking on it actually finds it)
- int16_t  (says it's undefined)

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Intellisense does not seem to be working as expected
Reply #1 - Jan 13th, 2012 at 9:19pm
Print Post  
thanks for adding the forum message. let's move from email to this thread. your email response is below.

questions...
which version of arduino have you installed?
does the sketch compile in arduino? if so please email your sketch to info at visualmicro.com. Thanks




Quote:
With 'Uno' selected, a cntrl J does not include Serial - or any library methods as far as I can tell.  It does include parsed variables and methods from the current sketch.

To answer your question, f5 does start a compile.  The output follows:

'Compiling 'ROV_IMU' for 'Arduino Uno'
ROV_IMU.pde : expected unqualified-id before 'else'

udpserver.pde : 'UDP_TX_PACKET_MAX_SIZE' was not declared in this scope
 
ROV_IMU.pde : In function 'void initRC()'

: The Udp class has been renamed EthernetUdp.

ROV_IMU.pde : In function 'void computeRC()'

: The Udp class has been renamed EthernetUdp.
 
udpserver.pde : 'packetBuffer' was not declared in this scope

udpserver.pde : 'UDP_TX_PACKET_MAX_SIZE' was not declared in this scope

Error compiling'
  
Back to top
IP Logged
 
Mark
Newbies
*
Offline


Posts: 7
Location: Seattle, WA
Joined: Jan 13th, 2012
Re: Intellisense does not seem to be working as expected
Reply #2 - Jan 13th, 2012 at 11:11pm
Print Post  
I am using arduino verison 1.0.  Yes, the sketch does compile as expected using the arduino ide.

Am emailing a sample sketch now.  Please note however, that this behavior is not limited to one sketch.  It appears to happen on all.

Thanks!

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Intellisense does not seem to be working as expected
Reply #3 - Jan 14th, 2012 at 12:03am
Print Post  
can you see a list of boards in a drop down on the tool bar?
  
Back to top
IP Logged
 
Mark
Newbies
*
Offline


Posts: 7
Location: Seattle, WA
Joined: Jan 13th, 2012
Re: Intellisense does not seem to be working as expected
Reply #4 - Jan 14th, 2012 at 4:07pm
Print Post  
Yes, both drop downs appear to be fully populated.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Intellisense does not seem to be working as expected
Reply #5 - Jan 14th, 2012 at 6:30pm
Print Post  
vs 2008 or 2010?
  
Back to top
IP Logged
 
Mark
Newbies
*
Offline


Posts: 7
Location: Seattle, WA
Joined: Jan 13th, 2012
Re: Intellisense does not seem to be working as expected
Reply #6 - Jan 16th, 2012 at 5:33pm
Print Post  
VS 2010 Pro
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Intellisense does not seem to be working as expected
Reply #7 - Jan 17th, 2012 at 1:52pm
Print Post  
Strange, i do my main testing in vs 2010 sp1 and always get the board sepecific intellisense.
  
Back to top
IP Logged
 
Mark
Newbies
*
Offline


Posts: 7
Location: Seattle, WA
Joined: Jan 13th, 2012
Re: Intellisense does not seem to be working as expected
Reply #8 - Jan 18th, 2012 at 3:19pm
Print Post  
Understood - does this mean you don't have any suggestions for me where to look?  For what it's worth, it's strange to me as well.

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Intellisense does not seem to be working as expected
Reply #9 - Jan 19th, 2012 at 11:49am
Print Post  
No we will find the answer I was just letting you know that it is working for myself and others so not to give up. 

The answer might be in the vsarduino.h but I haven't had a chance to look at yours yet. Will do asap

I guess you are saying you get the same problem if you open the blink example?
  
Back to top
IP Logged
 
Mark
Newbies
*
Offline


Posts: 7
Location: Seattle, WA
Joined: Jan 13th, 2012
Re: Intellisense does not seem to be working as expected
Reply #10 - Jan 19th, 2012 at 4:29pm
Print Post  
Correct, "blink" does not work either.  In this case, pinMode, digitalWrite, and delay are not found.

Not sure if it's relevant or not, but I'm also still getting the pop-up error every VS startup stating that VisualMicro has failed to create command bar items. (parameter is incorrect)

To reiterate though, I have both tool bar options and they both appear to be operating correctly.  Also, intellisense does contain info (only) from the file open in the editor.

This "feels" to me like a setup and/or prereq issue.  Are there VS requirements that I may not have installed?

Cheers!

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Intellisense does not seem to be working as expected
Reply #11 - Jan 20th, 2012 at 1:03pm
Print Post  
yes the intelliense won't work with that error. I've looked in your zip but it's just a bit of source, I should have asked for a zip of a project folder after opening in vs. such as blink.

I am guessing from your startup error that the arduino files are not being automatically mapped into the vsarduino.h file that is automatically added by vm to your visual studio arduino projects. That will prevent intellisense from knowing about your boards and a lot of other stuff.

The startup error is probably some svn or other non arduino files/folders below one or more of yours library folders. These types of source control files/folders cause problems for vm in the current version but will be fixed in the next version. You can just remove them.

If you are unsure then please switch on the "Trace" in the visual micro options. Startup vs and then send the trace text file that appears where you installed the vm dlls. Send me the trace and we can see where it fails.

If you don't know where you installed vm (default program files/visual micro..) then look in Visual Studio options Macro Security. You will see the install path in the macro/addins search paths list.
« Last Edit: Jan 20th, 2012 at 1:06pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Mark
Newbies
*
Offline


Posts: 7
Location: Seattle, WA
Joined: Jan 13th, 2012
Re: Intellisense does not seem to be working as expected
Reply #12 - Jan 20th, 2012 at 3:23pm
Print Post  
Solved!

Thanks, it did indeed turn out to be svn files in my library path.  I removed those, and things appear to be working as designed.

Nice product by the way - impressive.  (and good support too)

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Intellisense does not seem to be working as expected
Reply #13 - Jan 20th, 2012 at 5:17pm
Print Post  
Great. Thanks for the note and thanks again to niki for spotting the problem in the first place Smiley
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint