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) Teensy 4.0 - Intellisense errors (wiggly underlines) (Read 3104 times)
ccdman
Newbies
*
Offline


Posts: 5
Joined: Apr 4th, 2019
Teensy 4.0 - Intellisense errors (wiggly underlines)
Nov 26th, 2019 at 6:24am
Print Post  
This problem occurs only if the board selection is Teensy 4.0. If I switch to Teensy 3.6, the wiggly lines go away and Intellisense works.
The code compiles correctly, though.
The problem occurs even with the barest minimum code:
Hovering the mouse over the wiggle shows a message:  variable "EMIT" is not a type name
I have attached a screen capture.
« Last Edit: Nov 28th, 2019 at 2:00pm by Tim@Visual Micro »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Intellisense error (wiggly underlines) with Teensy 4.0 Arduino project
Reply #1 - Nov 26th, 2019 at 12:16pm
Print Post  
We will test Teensy4.

Can you confirm if the issue is on all synatx or just certain commands?
  
Back to top
WWW  
IP Logged
 
ccdman
Newbies
*
Offline


Posts: 5
Joined: Apr 4th, 2019
Re: Intellisense error (wiggly underlines) with Teensy 4.0 Arduino project
Reply #2 - Nov 26th, 2019 at 9:24pm
Print Post  
Tim@Visual Micro wrote on Nov 26th, 2019 at 12:16pm:
We will test Teensy4.

Can you confirm if the issue is on all synatx or just certain commands?


Well, on most. Wigglers are: const, int, char, bool, etc., even void.  uint32_t on the other hand  does not have a wiggly.
Also, the wiggles may appear on the first few declarations, then not on a few more, then resume later.

Also, Intellisense works partially, typically typing the first few characters does produce some keywords, but not what 'fits' the context; For instance if you type Ser and press CTRL-SPACE, you would expect to see Serial but instead SerialUSB comes up.
Simply changing the board type drop down to Teensy 3.6 fixes everything.
Please let me know if you need any further information.
Thanks
  
Back to top
 
IP Logged
 
LeD
Newbies
*
Offline


Posts: 0
Joined: Nov 27th, 2019
Re: Intellisense error (wiggly underlines) with Teensy 4.0 Arduino project
Reply #3 - Nov 27th, 2019 at 10:50pm
Print Post  
Hello, as I already specified in the Teensy forum, I had the same problem.
https://forum.pjrc.com/threads/58502-Visual-Studio-2017-Visual-Micro-Teensyduino...

It seems that even with the most basic program (empty setup and loop) generates thousands of warnings with this configuration:
VS2017 (Community, 15.9.17) + Visual Micro 1909.27.1 + Arduino 1.8.9 + Teensyduino 1.47
but not with this:
VS2019 (Community, 16.3.10) + Visual Micro 1909.27.1 + Arduino 1.8.9 + Teensyduino 1.47

This happens only when selecting the Teensy 4.0 board, no warnings at all when selecting Teensy 3.6.

This happens also with other VM releases, I've tried the most recent ones (VM 1911.23.0, Arduino 1.8.10, Teensyduino 1.48) with the same results. I've tried also with VS2017 Pro with another PC, same (VM/Arduino/Teensyduino) configuration.

Very easy to replicate it, just create a new project with VM and VS2017 and you get thousands of warnings.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Intellisense error (wiggly underlines) with Teensy 4.0 Arduino project
Reply #4 - Nov 27th, 2019 at 10:59pm
Print Post  
Thanks for the reports. Yes this can happen with new boards although can sometimes depend on various factors such as if "show all files" is toggled or not.

Anyway we will release an update over the next week that has support for the new teensy toolchain locations.

It is possible to automated the discovery of new toolchains but it has such an overhead that we opt to keep a fast dev environment for now. Maybe in the future when the new teensy toolchain is release we will change. The next Teensy toolchain should be very fast because it's moving to 64 bit and I suspect our virus checkers will be happier about that.

Something you can do that will help is to find the visual micro folder which is shown in vMicro>General>Global Options>System>Assembly

Below that folder is "Micro Platforms\hardware\arduino16x\teensy3"

Copy the teensy3 folder and call it teensy4 which will be a sibling to teensy3:-

"Micro Platforms\hardware\arduino16x\teensy4"

Restart the IDE or click Rescan. If the intellisense has not improved then switch the vMicro menu to use a different board and then reselect the Teensy4.0
« Last Edit: Nov 27th, 2019 at 11:47pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Teensy 4.0 - Intellisense errors (wiggly underlines)
Reply #5 - Nov 28th, 2019 at 2:01pm
Print Post  
An updated 1911.23.1 release has been published to the releases section of this forum with support for Teensy 4 intellisense.

https://www.visualmicro.com/forums/YaBB.pl?board=VS_ARDUINO_EXT_RELEASES

Thanks again for the reports.
  
Back to top
WWW  
IP Logged
 
ccdman
Newbies
*
Offline


Posts: 5
Joined: Apr 4th, 2019
Re: Teensy 4.0 - Intellisense errors (wiggly underlines)
Reply #6 - Nov 28th, 2019 at 6:04pm
Print Post  
Tim@Visual Micro wrote on Nov 27th, 2019 at 10:59pm:
vMicro>General>Global Options>System>

 
I presume you are referring to the drop down under Tools>Options in Visual Studio.
In my VS2017 install, under vMicro>General>Global Options>System,  there is no Assembly entry.

However, under 
vMicro>General>Global Options>Version, there is an entry for 'Assembly Location' which points to:
c:\program files (x86)\microsoft visual udio.Arduino.15.dll

Stepping up one folder to
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\Extensions\th3ctv1k.00z
shows a folder called 'Micro Platforms' that contains the following folders, some of which have harware\teensy3 folders.

This is a full list:

arduino10x
arduino15x
arduino16x
arduino19x
arduino_org17x
default
energia
energia16x
intelarduino15x
maple18
mpide
teensy
visualmicro
wiring10x

All the arduino* folders have hardware\teensy3.

Which one should I clone?

BTW, I tried the update to 1911.23.1 for Visual Studio 2017/2019, but I still have the same problem.

Thanks for your prompt response.
Ram





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


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Teensy 4.0 - Intellisense errors (wiggly underlines)
Reply #7 - Nov 28th, 2019 at 6:59pm
Print Post  
Ah sorry about that the new files were not in the last build. 

The download link has been updated.

It will now work but you might need to build or switch to another board def such as teensy3 and back again to teensy4 to give the intellisense a bump.
  
Back to top
WWW  
IP Logged
 
ccdman
Newbies
*
Offline


Posts: 5
Joined: Apr 4th, 2019
Re: Teensy 4.0 - Intellisense errors (wiggly underlines)
Reply #8 - Nov 29th, 2019 at 4:30am
Print Post  
Thanks, Tim!

I had randomly picked one of the folders and cloned it last night, this on a different PC rimming VS2015 - it did not work at first, but this morning (maybe the reboot did it) everything worked great. I am not sure whether the update would work on VS2015, but all is well anyway.

I have not tried that on the VS2017 pc; will try the update again first.
I want to take this opportunity to thank you for the rapidity with which you provide help, not to mentioned your dogged persistence in solving all problems!

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