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) PCH Warning IntelliSense PCH file not generated (Read 942 times)
Maestro
Junior Member
**
Offline


Posts: 21
Location: West Virginia
Joined: Oct 12th, 2024
PCH Warning IntelliSense PCH file not generated
Oct 16th, 2024 at 11:13pm
Print Post  
I have a clean install of Arduino 2 and the latest version libraries and of vMicro installed in Visual Studio 2017. I was experiencing issues with IntelliSense marking virtually everything as undefined even though the project would build correctly. Then I noticed two tiny squiggly line under the include statement. 

I don't see a solution for my issue after reading some other comments here other than perhaps one of the include files might be the issue.

Do you have any ideas how to fix this?

  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Maestro
Junior Member
**
Offline


Posts: 21
Location: West Virginia
Joined: Oct 12th, 2024
Re: PCH Warning IntelliSense PCH file not generated
Reply #1 - Oct 17th, 2024 at 12:03am
Print Post  
I am running some test to help figure out what is going on so I thought I would pass that along with one question at the end.

I noticed that your installation webpage image of Visual Studio for installing Linux included an optional option called IntelliCode which is selected in the image. My Linux did not have that option. Is that an issue?   

  

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


Posts: 2505
Joined: Feb 13th, 2019
Re: PCH Warning IntelliSense PCH file not generated
Reply #2 - Oct 17th, 2024 at 10:09am
Print Post  
Thanks for the detail, and we can replicate this with a clean project and adding in the headers shown.

Can you try closing VS2017 completely, then deleting the ".vs" folder from the Solution Folder, then loading the project again?

Quote:
I noticed that your installation webpage image of Visual Studio for installing Linux included an optional option called IntelliCode which is selected in the image. My Linux did not have that option. Is that an issue?   

The Intellicode element is only shown on the VS2022 screenshot so can be ignored for VS2017.

Arduino.h
Also note you don't need to include the <Arduino.h> in your sketches as this is automatically added at compile time (like the Arduino IDE), however this should not cause any direct issues.

Arduino JSON
There appear to be two different Arduino JSON libraries in use, not that this is the cause of the issue but thought it may create some confusion down the line for you potentially.
  
Back to top
IP Logged
 
Maestro
Junior Member
**
Offline


Posts: 21
Location: West Virginia
Joined: Oct 12th, 2024
Re: PCH Warning IntelliSense PCH file not generated
Reply #3 - Oct 17th, 2024 at 3:27pm
Print Post  
Since you now say you can replicate it any ideas how to fix it?

Last night I closed VS2017 and deleted the .vs folder and this image show the result.

oops just noticed I can't add attachments again.

After loading the simple project, a squiggly at the very top of the code page says: 

"There are too many errors for the IntelliSense engine to function properly, some of which may not be visible in the editor".

IntelliSense does not work at all in this project.

After looking around in the solution folders I notice a file ".vaarduino.h" that is generated   automatically that includes <Arduino.>.

I'll look into the ArduinoJson duplicate files. In post #15 I included a step by step file containing different include files that demonstrate the same issue regardless of include files and boards.

Something else I noticed after reinstalling vMicro is the VS2017 Recent file list now shows two options for each sketch created. One is the ".sln" and the other is the ".vcxproj" file. What is causing this?
 
I just created a new empty project and the first thing I tried to do was to declare a String and IntelliSense reports it as undefined.

Creating an empty project in the Arduino 2.3.3 IDE does not cause this issue. String is defined and the project builds normally. Perhaps uninstalling and reinstalling the Arduino IDE might fix this?

Can I go back to the earlier version of vMicro that I was using? I checked my emails for the last renewals but they do not mention the version number I was using.


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


Posts: 2505
Joined: Feb 13th, 2019
Re: PCH Warning IntelliSense PCH file not generated
Reply #4 - Oct 17th, 2024 at 4:03pm
Print Post  
The issue looks to be the ARM64 configuration in Visual Studio, which affects the ESP8266 board package adversely (many others work correctly).

If you have the "ARM64" configuration selected, can you change this to ARM, and then make any edit to the code and press Save, does this improve the intellisense?

We will update as soon as a full fix is available for this, but recommend avoiding the ARM64 configuration in the meantime.
« Last Edit: Oct 17th, 2024 at 4:11pm by Simon@Visual Micro »  
Back to top
IP Logged
 
Maestro
Junior Member
**
Offline


Posts: 21
Location: West Virginia
Joined: Oct 12th, 2024
Re: PCH Warning IntelliSense PCH file not generated
Reply #5 - Oct 17th, 2024 at 4:58pm
Print Post  
OK, I changed from ARM64 to ARM but the problem was still there until I changed the board from NodeMCU-32S to LOLIN(WEMOS) D1 R2 & mini. Now IntelliSense is working properly.

4 Questions 
(1) Why does my Resent file list show both the ".sln" and the ".vcxproj" files?

(2) Why does a breakpoint at void loop() randomly appear?

(3) How can I update my new email address to the sales department, so I'll be notified of my subscription renewal?   

(4) How will I be notified of the new update? Will you repost here when it is ready?

Thanks very much for your speedy help!
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2505
Joined: Feb 13th, 2019
Re: PCH Warning IntelliSense PCH file not generated
Reply #6 - Oct 17th, 2024 at 6:28pm
Print Post  
Quote:
(1) Why does my Resent file list show both the ".sln" and the ".vcxproj" files?

Not sure, will have to investigate that seperately...

Quote:
(2) Why does a breakpoint at void loop() randomly appear?

This will be due to Tutorial Mode.  If you disable Tutorial Mode (vMicro > General > Tutorial Mode, it will stop the breakpoint being created.
The Serial Debugger can be disabled by changing the Build Configuration to "Release", and when switching back to Debug it will enable again (which is caused by vMicro > Debugger > Automatic Software Debug being enabled.

Quote:
(3) How can I update my new email address to the sales department, so I'll be notified of my subscription renewal?   

The licenses are not subscription based, and the software will warn you via the output window when it is closer to expiry.  If you email us your license key and amended email address we will update our records, and confirm the expiry date of your current license.

Quote:
(4) How will I be notified of the new update? Will you repost here when it is ready?

We will update this thread when there are any developments regarding the intellisense issues faced.
  
Back to top
IP Logged
 
Maestro
Junior Member
**
Offline


Posts: 21
Location: West Virginia
Joined: Oct 12th, 2024
Re: PCH Warning IntelliSense PCH file not generated
Reply #7 - Oct 17th, 2024 at 7:08pm
Print Post  
Thank you very much for your help!
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2505
Joined: Feb 13th, 2019
Re: PCH Warning IntelliSense PCH file not generated
Reply #8 - Oct 18th, 2024 at 9:37am
Print Post  
No problem, and reviewing in the other Visual Studio versions this morning it appears that this is an issue for VS2017, but it works fine in VS2019 and VS2022.

It may be worth trying VS2019 which is compatible with your existing license, if this is an option of course.
  
Back to top
IP Logged
 
Maestro
Junior Member
**
Offline


Posts: 21
Location: West Virginia
Joined: Oct 12th, 2024
Re: PCH Warning IntelliSense PCH file not generated
Reply #9 - Nov 3rd, 2024 at 9:27pm
Print Post  
Upgrading Visual Studio 2017 Professional is not an option at this time. 

Do you have an earlier version of Visual Micro that is compatible with Arduino 2 where the IntelliSense issue does not exist in VS 2017?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12166
Location: United Kingdom
Joined: Apr 10th, 2010
Re: PCH Warning IntelliSense PCH file not generated
Reply #10 - Nov 3rd, 2024 at 11:53pm
Print Post  
Send us an email or PM with your license key and we will look

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


Posts: 2505
Joined: Feb 13th, 2019
Re: PCH Warning IntelliSense PCH file not generated
Reply #11 - Nov 4th, 2024 at 2:42pm
Print Post  
Is there a reason you cannot use VS2019 Community edition, or try the Trial Version in VS2022 Community?
  
Back to top
IP Logged
 
Maestro
Junior Member
**
Offline


Posts: 21
Location: West Virginia
Joined: Oct 12th, 2024
Re: PCH Warning IntelliSense PCH file not generated
Reply #12 - Nov 6th, 2024 at 12:55am
Print Post  
I just purchased an unused VS2019 COA product key on eBay. 

I am in the middle of installing VS2019 but I noticed that none of the ARM build tools are selected. 

Will these be installed when Visual Micro is installed? I did not see anything on your installation instructions that mention installing AMR/ARM64.

Thanks
  
Back to top
 
IP Logged
 
Maestro
Junior Member
**
Offline


Posts: 21
Location: West Virginia
Joined: Oct 12th, 2024
Re: PCH Warning IntelliSense PCH file not generated
Reply #13 - Nov 6th, 2024 at 6:23am
Print Post  
After installing VS 2019 IntelliSense is now properly working.

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