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) Cannot resolve symbol '__progmem__' (Read 2361 times)
Lee Critchlow
Junior Member
**
Offline


Posts: 26
Location: TN
Joined: Jul 19th, 2022
Cannot resolve symbol '__progmem__'
Aug 20th, 2023 at 1:42pm
Print Post  
Using println(F(" No Data")) is reporting that it Cannot resolve symbol '__progmem__'
The program compile, uploads, and executes.
How can I eliminate this error? Undecided
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Cannot resolve symbol '__progmem__'
Reply #1 - Aug 20th, 2023 at 1:55pm
Print Post  
Does the name of the project show in the solution explorer suffixed by the text "(Arduino)"? If not then click the vMicro>Convert button to use the newer intellisense engine.

Otherwise, please post the information that we have requested.
  
Back to top
IP Logged
 
Lee Critchlow
Junior Member
**
Offline


Posts: 26
Location: TN
Joined: Jul 19th, 2022
Re: Cannot resolve symbol '__progmem__'
Reply #2 - Aug 20th, 2023 at 2:14pm
Print Post  
"(Arduino)" is shown after the project.
Please find attached the build output. Shocked
  

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


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Cannot resolve symbol '__progmem__'
Reply #3 - Aug 20th, 2023 at 2:39pm
Print Post  
What is the full line of code? It is possible the __progmem__ source is not available to intellisense. In that case we can explain how to add an intellisense definition.
  
Back to top
IP Logged
 
Lee Critchlow
Junior Member
**
Offline


Posts: 26
Location: TN
Joined: Jul 19th, 2022
Re: Cannot resolve symbol '__progmem__'
Reply #4 - Aug 20th, 2023 at 2:42pm
Print Post  
ssdDisplay.println(F(" No Data"));

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


Posts: 2707
Joined: Feb 13th, 2019
Re: Cannot resolve symbol '__progmem__'
Reply #5 - Aug 22nd, 2023 at 8:36am
Print Post  
Thanks for the detail.

Can you try closing the solution and deleting the ".vs" folder from the solution, then reopening it again?

If this still shows the error could you attach or email us your VCXPROJ file, or if possible the entire project for us to investigate further?
  
Back to top
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2707
Joined: Feb 13th, 2019
Re: Cannot resolve symbol '__progmem__'
Reply #6 - Aug 22nd, 2023 at 4:54pm
Print Post  
Thanks for the project.

Can you try running Build > Clean Solution and then building the project again?

Also, do you get the same error when using the Flash String Helper in a Serial.println(F("Something")); statement?
  
Back to top
IP Logged
 
Lee Critchlow
Junior Member
**
Offline


Posts: 26
Location: TN
Joined: Jul 19th, 2022
Re: Cannot resolve symbol '__progmem__'
Reply #7 - Aug 22nd, 2023 at 5:05pm
Print Post  
It appears to be a ReSharper problem. When I suspend ReSharper the red squiggles go away.
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2707
Joined: Feb 13th, 2019
Re: Cannot resolve symbol '__progmem__'
Reply #8 - Aug 23rd, 2023 at 12:17pm
Print Post  
Thanks for the update.

Out of interest, does the below .editorconfig help to avoid these issues showing when using both Re-sharper and Visual Micro?
https://stackoverflow.com/a/70869752
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint