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 ESP32S3 Fails to compile; error: Filename too long (Read 177 times)
DavidBH
Newbies
*
Offline


Posts: 1
Joined: Jul 26th, 2023
ESP32S3 Fails to compile; error: Filename too long
Jul 27th, 2023 at 6:20am
Print Post  
When compile a simple sketch in VS2022 using the board Esp32S3 fails saying: Filename or extension is too long. But if you compile the same sketch in Arduino IDE, its OK. Is there some configuration on VisualMicro to setup and run the Esp32S3 on VS2022?
  

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: ESP32S3 Fails to compile; error: Filename too long
Reply #1 - Jul 27th, 2023 at 9:17am
Print Post  
Thanks for the report.

Can you follow the logging instructions at the top of the page and attach the full output from Visual Micro.

Please also attach the Output from the Arduino IDE with the File > Preferences > Verbose Output During: Compile Enabled.
  
Back to top
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2695
Joined: Feb 13th, 2019
Re: ESP32S3 Fails to compile; error: Filename too long
Reply #2 - Aug 1st, 2023 at 11:18am
Print Post  
From your logs emailed previously it appears as though the libraries have been added to the project in vMicro as Cloned Shared Projects.

1) Ensure all libraries are only present in the Sketchbook\Libraries folder use by both vMicro and Arduino
2) Remove all shared projects from Solution Explorer in Visual Studio (Right click each and click Remove)
3) Close VS and delete the SolutionFolder\Libraries Folder where they had been cloned to previously
4) Reopen the project in vMicro and then run Build > Clean Solution, then do a build as normal

This should then compile as expected.

We are looking at a fix for the root cause of this when using the shared/cloned projects, however after the above changes it is working in the same way as the Arduino IDE does.

If you have further issues please send the logs requested, and a screenshot of Solution Explorer with the Solution expanded from Visual Studio.
  
Back to top
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2695
Joined: Feb 13th, 2019
Re: ESP32S3 Fails to compile; error: Filename too long
Reply #3 - Aug 9th, 2023 at 11:25am
Print Post  
We have released a fix which should work with your original setup, which can be downloaded from the top of the below board:
https://www.visualmicro.com/forums/YaBB.pl?board=VS_ARDUINO_EXT_RELEASES
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint