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 VS2017 beta library function, intellisense (Read 5206 times)
herman
Junior Member
**
Offline


Posts: 47
Joined: Jan 11th, 2017
VS2017 beta library function, intellisense
Jan 16th, 2017 at 10:13pm
Print Post  
Hi,

Installed latest (sp2) version on VS2017.
Using ESP8266 toolchain Arduino 1.8.1

When using the "create project when adding libraries".

The projects are created and being compiled when updated.

But the intellisense is not working for the library code.

1)
Not 100% sure yet but looks like the "core classes" are not included.
I have "red lines" under most of the include files.

2)
I have two libraries, one of that includes the other.
This is also not recognized by intellisense.

PS/Offtopic : Can I also include the "core" as shared project ?
« Last Edit: Jan 16th, 2017 at 10:22pm by herman »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12208
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VS2017 beta library function, intellisense
Reply #1 - Jan 16th, 2017 at 10:40pm
Print Post  
Thanks. The new features are a small test to see how it is received and how well it can work.

The intellisense should inherit from the startup project (shown in bold in the solution explorer)

I have noticed a few vs bugs around shared projects. It's possible it will sort itself out if you restart the ide but I will do more testing with 2017. So far most of my tests have been with 2015 because the installer works better for multiple tests.

As concerns core, yes you are right. It's going to be useful and is planned but held back until libraries are stable and some more docs are available.

Initial doc here http://www.visualmicro.com/post/2017/01/16/Arduino-Cross-Platform-Library-Develo...

« Last Edit: Jan 16th, 2017 at 11:03pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12208
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VS2017 beta library function, intellisense
Reply #2 - Jan 16th, 2017 at 10:42pm
Print Post  
Question. Did you add a reference to the library as per the instruction in the output window after adding the library?

« Last Edit: Jan 16th, 2017 at 11:02pm by Tim@Visual Micro »  
Back to top
IP Logged
 
herman
Junior Member
**
Offline


Posts: 47
Joined: Jan 11th, 2017
Re: VS2017 beta library function, intellisense
Reply #3 - Jan 17th, 2017 at 11:04am
Print Post  
Hi,

Sorry, missed indeed the statement on referencing the shared project.
Need to read more accurate when I start using new features enthusiastic (this was one of the one for which I started looking into VS/VSMicro).
Yes, great feature !

I hope I am not have a RTFM again but in both library code as also main .ino file I see intellisense issues with some defines. (I am into low level libraries/code).

The pgm_read_byte is coming from cores/esp8266/pgmspace.h
  

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


Posts: 12208
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VS2017 beta library function, intellisense
Reply #4 - Jan 17th, 2017 at 12:45pm
Print Post  
Hi

Some hardware needs extra intellisense support in Visual studio that Visual Micro can provide.

This is not related to shared projects or editing libraries. It will always have been an unreported issued.

Please create a new thread for this discussion so that is can be investigated

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