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 Intellisense not working due to software restriction policies (Read 511 times)
Peter_NL
Newbies
*
Offline


Posts: 2
Joined: Jul 15th, 2024
Intellisense not working due to software restriction policies
Jul 15th, 2024 at 4:37pm
Print Post  
I have installed visual micro on a new system. Everything is working except intellisense. I can build successfully build scetches

Intellysense error messages:
cannot open source file "arduino.h" File: .Blink.vsarduino.h
cannot open source file "pins_arduino.h" File: .Blink.vsarduino.h

The cause of this seems to be software restriction policies, from the eventviewer:
Access to 84f503eec2bed642c86548\cmd_gcc.bat has been restricted by your Administrator by location with policy rule {81d5babd-e8b2-4b74-9289-a90f1d6865b4} placed on path C:\Users\ple\AppData\Local\Temp


When I log in as a special user which does not have the policy everything works fine.


Is there an option to use an other directory for the build files (outside the user profile folder). (The IT department is very reluctant to make exceptions).
 
Installed versions:
Visual Studio Community 2022 Version 17.10.4
Arduino IDE 2.3.2 (Also installed 1.8.19)
Visual Micro version 2024.620.2203

« Last Edit: Jul 15th, 2024 at 4:38pm by Peter_NL »  

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


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Intellisense not working due to software restriction policies
Reply #1 - Jul 15th, 2024 at 5:08pm
Print Post  
Yes those files are off the temp build folder. You can change the "build folder" root in "tools>options>visual micro>compiler>builder folder". For example "c:\arduinoTemp\builds". 

Keep the build folder away from project code and libraries etc. "builds" will be a "temp" folder that can be deleted by you or visual micro at any time.
  
Back to top
IP Logged
 
Peter_NL
Newbies
*
Offline


Posts: 2
Joined: Jul 15th, 2024
Re: Intellisense not working due to software restriction policies
Reply #2 - Jul 15th, 2024 at 7:08pm
Print Post  
Thanks for the quick response. 
Moving the temp build folder fixed the problem.
Smiley
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint