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 et VisualMicro non fonctionnel (Read 8692 times)
Yvan34725
Newbies
*
Offline


Posts: 7
Joined: Jan 12th, 2017
IntelliSense et VisualMicro non fonctionnel
Jan 12th, 2017 at 3:44pm
Print Post  
- versions installées :
Visual Micro 1703.3.0   
Visual Studio 2017RC 
IDE Arduino 1.8.1

La création d'un nouveau projet (sketch) arduino est OK (vMicro > New Arduino Project).

Ensuite, la vérification 'IntelliSence' remonte des erreurs sur tous les fonctions natives arduino {#include} (c-réf copies d'écran).

Le phénomène est similaire avec Visual Studio 2015.

Tout fonctionnait parfaitement avec la version Visual Micro précédente 1612.24...

Merci pour votre aide...
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: IntelliSense et VisualMicro non fonctionnel
Reply #1 - Jan 12th, 2017 at 4:14pm
Print Post  
Hi,

Thanks for posting the question.

There is a new release of visual micro due over the next few days that fixes some intellisense issues but can you please answer these questions

1) If you click build does intellisense correct itself?

2) If you switch to a different board such as mega and the back to uno. Is intellisense then correct?

3) If you add a library to the code then click save, then remove the library again. Is intellsense then correct?

4) If you add new methods to .ino files then click save. Is intellisense then correct?

5) If you add new source code to the project and build or save, is intellisense then correct?

If you do any one of these things and see good intellisense, then close the project (make sure click OK to save changes) then re-open the project is intellisense still working okay?

Thanks

ps: Posting in this forum in English is helpful for me and for other people. Visual micro is mainly a free product and the forum is also free so it's a lot of time and attention which is difficult if every post has to be translated. Thanks very much for supporting and helping this project.
  
Back to top
IP Logged
 
Yvan34725
Newbies
*
Offline


Posts: 7
Joined: Jan 12th, 2017
Re: IntelliSense et VisualMicro non fonctionnel
Reply #2 - Jan 12th, 2017 at 4:55pm
Print Post  
Hi,

1) If you click build does intellisense correct itself?
No, Build is correct but IntelliSence always with same problem.

2) If you switch to a different board such as mega and the back to uno. Is intellisense then correct?
No, same problem.

3) If you add a library to the code then click save, then remove the library again. Is intellsense then correct?
No same problem. see screen capture with library 'EEPROM'

4) If you add new methods to .ino files then click save. Is intellisense then correct?
5) If you add new source code to the project and build or save, is intellisense then correct?

If i add a personal class who is installed in the same directory that the project, then it's OK for IntelliSence. For all others libraries it's bad.

Many thanks

« Last Edit: Jan 12th, 2017 at 4:59pm by Yvan34725 »  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: IntelliSense et VisualMicro non fonctionnel
Reply #3 - Jan 12th, 2017 at 5:06pm
Print Post  
Thanks for all the info it's useful.

I see you are using arduino 1.5. Which version are you using of Arduino I will retest for the next release in a few days?
  
Back to top
IP Logged
 
Yvan34725
Newbies
*
Offline


Posts: 7
Joined: Jan 12th, 2017
Re: IntelliSense et VisualMicro non fonctionnel
Reply #4 - Jan 12th, 2017 at 5:15pm
Print Post  
My version of IDE Arduino is 1.8.1 (latest) but when I open Visual Micro and I configure IDE location, I configured option arduino 1.5 with correct directory (see screen capture).
« Last Edit: Jan 12th, 2017 at 5:19pm by Yvan34725 »  

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


Posts: 7
Joined: Jan 12th, 2017
Re: IntelliSense et VisualMicro non fonctionnel
Reply #5 - Jan 12th, 2017 at 5:20pm
Print Post  

See also screen capture of 'Manage Boards'
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: IntelliSense et VisualMicro non fonctionnel
Reply #6 - Jan 12th, 2017 at 5:47pm
Print Post  
I see.

The problem is that you have used the older arduino 1.5 option with arduino 1.8

You need to remove the path from arduino 1.5 and add the ide path to the "Arduino" option. This always represents the current version and all versions unless there is a specific entry such as Arduino 1.5 or Arduino 1.0.

Arduino 1.5 or Arduino 1.0 and older version of arduino with major different structure. This will certainly cause complication for intellisense.

Visual Micro will always try to be intelligent with the build process but Visual Studio manages intellisense and it is less flexible. This is why we have the different version options.

Because arduino 1.8 was only released a few weeks ago and because it is compatible with the previous arduino 1.6 we have elected for the simple "Arduino" name. It is easier for users to upgrade arduino versions if the same option is used.

I hope this makes sense?

ps: maybe we should call it "Arduino Latest" instead of just "Arduino". Might be less confusing Smiley
« Last Edit: Jan 12th, 2017 at 5:49pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Yvan34725
Newbies
*
Offline


Posts: 7
Joined: Jan 12th, 2017
Re: IntelliSense et VisualMicro non fonctionnel
Reply #7 - Jan 12th, 2017 at 6:01pm
Print Post  
Hi, i understand.

but, i have modified and selected the option as indicated and i have the same problem!

see screen capture !

Thanks
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: IntelliSense et VisualMicro non fonctionnel
Reply #8 - Jan 12th, 2017 at 6:11pm
Print Post  
Intellisense might not detect the change of app name and rebuild itself.

Please switch to a different board and back again then see if the status bar says "intializing" which means vs is rescanning then intellisense should look better

If it is still a problem then please zip and email the project folder and project__vm folder. email to info[at]visualmicro.com



« Last Edit: Jan 12th, 2017 at 6:11pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Yvan34725
Newbies
*
Offline


Posts: 7
Joined: Jan 12th, 2017
Re: IntelliSense et VisualMicro non fonctionnel
Reply #9 - Jan 12th, 2017 at 6:43pm
Print Post  
Hi,

I think i have found solution.

I have copied my complet project directory on my computer in local disk "D:\Arduino\test\..." and i have open solution with Visual Studio >> then OK - Good.


Normaly, all my projects are installed in a NAS (for example "\\DiskStation\WorkSpace\Arduino\test\...") and if i open directly one project with this path it's KO, IntelliSence cannot open file library ??, why ??.

I have created a disk mapped "Z:" and i have open projet  "Z:\WorkSpace\Arduino\test\..." and it's OK, IntelliSence it"s good.

I think Visual Studio or Visual Micro don't like a directory with "\\...\...\"


Many thanks. Cheesy




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


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: IntelliSense et VisualMicro non fonctionnel
Reply #10 - Jan 12th, 2017 at 6:58pm
Print Post  
This is very interesting thanks.

In the last release visual micro changed most intellisense paths from physical hard coded paths to relative \..\ paths wherever possible. 

The reason for the change is many complaints from team developers using shared source control. In this case the file locations c:\ d:\ etc will change when each user opens the project causing a source control update.

It seems this needs to be an option for users or visual micro needs to do something different. Your NAS worked okay with the hard coded paths in previous versions right?

To see the paths that visual micro feeds to visual studio intellisense you can right click the project > c\c++ > additional include directories. It would be useful to see what they are for you. 

(note: The c\c++ properties only show if at least one .cpp exists somewhere in the project. (Not entirely sure of the Microsoft reasoning behind that.)

« Last Edit: Jan 12th, 2017 at 7:01pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Yvan34725
Newbies
*
Offline


Posts: 7
Joined: Jan 12th, 2017
Re: IntelliSense et VisualMicro non fonctionnel
Reply #11 - Jan 13th, 2017 at 2:29pm
Print Post  
Hi,

Yes, IntelliSence worked OK with path "\\...\" in version 1612.24...

Now with this sort of path is no good.

See my config. 'Visual Micro' with a .cpp file open.

Many thanks.


  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: IntelliSense et VisualMicro non fonctionnel
Reply #12 - Jan 13th, 2017 at 3:29pm
Print Post  
Hi,

Thanks. If you see in the lower picture we have $(ProjectDir)file:\\dstation

That's a visual micro bug with the type of file specification and will cause intellisense to fail.

I think it's already fixed for the next release but I want to replicate with your config as much as possible just to be sure.

Can you please switch on "vMicro>Compiler>Verbose" and "vMicro>Compiler>Show Build Properties"

Then build and email the output as .txt file to info[at]visualmicro.com

This will give me a good oversight of your arduino build config and what paths are used where.

I would not normally expect to see file:\\ in any paths.

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


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: IntelliSense et VisualMicro non fonctionnel
Reply #13 - Jan 19th, 2017 at 2:18am
Print Post  
Hi,

Sorry for the confusion.

\\nas drives and unc paths are supported again.

Another user hit the issue so we got the verbose build properties from the compiler output. 

The output showed the relative paths were being resolved incorrectly, resulting in a  file:// prefix.

Hopefully we are back in good shape now?

Let us know if you hit any other issues

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