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) Include files shown in Solution explorer- cannot open source file (Read 355 times)
StephenB
Junior Member
**
Offline


Posts: 15
Joined: Feb 14th, 2024
Include files shown in Solution explorer- cannot open source file
Apr 10th, 2025 at 9:13pm
Print Post  
The included files are in subdirectories under \src. It is shown in the project. On build the systems appears to locate the file but reports an error: that it can't find or open the include files.

For example Quote:
src\driver\WiFi.h


E1696      cannot open source file "WiFi.h"      SoftRF      C:\Users\steph\Documents\Arduino\SoftRF\src\platform      C:\Users\steph\Documents\Arduino\SoftRF\src\platform\ESP32.h      27            


The file exists and seems to be in a folder that should be searched.

"C:\Users\steph\Pictures\Screenshots\Screenshot2025-04-10221512.png"
« Last Edit: Apr 10th, 2025 at 9:16pm by StephenB »  

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


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Include files shown in Solution explorer- cannot open source file
Reply #1 - Apr 12th, 2025 at 2:52pm
Print Post  
please provide the information request in yellow near the top of the page.

It looks like that file is included from the esp32.h which would normally be an esp core file. it would not make sense to have a wifi.h in the project. remove the one from the project src folder or below that. the esp32 core should then use the correct one.
  
Back to top
IP Logged
 
StephenB
Junior Member
**
Offline


Posts: 15
Joined: Feb 14th, 2024
Re: Include files shown in Solution explorer- cannot open source file
Reply #2 - Apr 13th, 2025 at 12:59pm
Print Post  
Tim,
I'm not sure which part I haven't complied with. I:
Quote:
Enabled vMicro > Compiler > Show Build Properties

and
Quote:
Save the new Output to a Text File and

attached the saved output as a txt file to my original post.
Please let me know what you need me to do.

I am attempting to build a Github project SoftRF, which I believe (I haven't checked) compiles in the Arduino IDE.

The ESP32.h is not part of the ESD Framework but a project file. So is WiFi.h

What I am trying to work out is why a file that is known in the solution (wifi.h) 'cannot be found' in the build phase.
« Last Edit: Apr 13th, 2025 at 1:00pm by StephenB »  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2695
Joined: Feb 13th, 2019
Re: Include files shown in Solution explorer- cannot open source file
Reply #3 - Apr 14th, 2025 at 8:44am
Print Post  
Quote:
I'm not sure which part I haven't complied with.

Can you also enable vMicro > Compiler > Verbose and attach a fresh compilation log?

Quote:
I am attempting to build a Github project SoftRF

Can you confirm it is the below project (and if not can you link to the project you are using so we can replicate):
https://github.com/ksjkl1/TTGO-Helltec-WiFi-LoRa-ESP32-SoftRF-1.0-EU

If it is the above project it looks to have not been updated in a long time, and the ESP32 core has moved a long way since then.  The guide states it was documented using v1.0.5, have you tried rolling back to that version and compiling?
  
Back to top
IP Logged
 
StephenB
Junior Member
**
Offline


Posts: 15
Joined: Feb 14th, 2024
Re: Include files shown in Solution explorer- cannot open source file
Reply #4 - Apr 14th, 2025 at 10:10am
Print Post  
Simon,
please find a build output with verbose option on.

the project I am trying to build is:
https://github.com/lyusupov/SoftRF

The latest version 1.7 is 5 days old.

TIA
  

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


Posts: 2695
Joined: Feb 13th, 2019
Re: Include files shown in Solution explorer- cannot open source file
Reply #5 - Apr 14th, 2025 at 10:54am
Print Post  
Thanks for the updated log and detail.

Can you enable vMicro > Compiler > Deep Search for Libraries + Accurate Prototype Insertion (Gcc-E), and then recompile the project.
  
Back to top
IP Logged
 
StephenB
Junior Member
**
Offline


Posts: 15
Joined: Feb 14th, 2024
Re: Include files shown in Solution explorer- cannot open source file
Reply #6 - Apr 14th, 2025 at 12:44pm
Print Post  
Simon, file attached.
  

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


Posts: 2695
Joined: Feb 13th, 2019
Re: Include files shown in Solution explorer- cannot open source file
Reply #7 - Apr 14th, 2025 at 1:05pm
Print Post  
Thanks for the log.

If you have vMicro > Compiler > High Speed Parallel Builds enabled, can you try it again with this option turned off?

The very latest ESP32 board package (v3.2.0) should also work with this project, as you correctly stated earlier this is a very active and up to date project.
  
Back to top
IP Logged
 
StephenB
Junior Member
**
Offline


Posts: 15
Joined: Feb 14th, 2024
Re: Include files shown in Solution explorer- cannot open source file
Reply #8 - Apr 16th, 2025 at 12:01pm
Print Post  
I tried disabling parallel builds. After hours it hadn't completed. (BTW I never get beyond 20% CPU even with it enabled. VSC and Platformio goes quicker.)
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2695
Joined: Feb 13th, 2019
Re: Include files shown in Solution explorer- cannot open source file
Reply #9 - Apr 16th, 2025 at 3:27pm
Print Post  
Thanks for the detail and feedback.

We are currently investigating this and we will update when we have further information or any applicable fixes
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint