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 Error when linking ESP32 project - The filename or extension is too long (Read 2221 times)
LakeSurfer
Newbies
*
Offline


Posts: 6
Joined: Dec 7th, 2022
Error when linking ESP32 project - The filename or extension is too long
Jan 11th, 2024 at 3:46am
Print Post  
I updated to the latest version of VMicro this morning and now my project fails to link after compilation.  The resulting link command is over 35k characters, so Windows does not allow the command.  I've searched the web for a solution, but none of the recommendations I have found seem to work.  Did your link command generation change in the latest release?

The filename or extension is too long

Error linking for board ESP32 Dev Module(esp32_esp32)
Build failed for project 'PoseidonSurfSystem.MainController'
  

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: Error when linking ESP32 project - The filename or extension is too long
Reply #1 - Jan 11th, 2024 at 10:36am
Print Post  
Thanks for the report.

We did make a change to the linking in the latest release, though from your logs this has not kicked in, so it should be compiling as it did previously.

The change should ensure the error does not happen, and you can force this functionality by adding a Local Board.txt to your project (vMicro > Add Code > Add Local Board.txt) and pasting in the below line:
vm.linker.dot_a_create=true

If that fails can you attach the build output for us to review?
« Last Edit: Jan 11th, 2024 at 3:11pm by Simon@Visual Micro »  
Back to top
IP Logged
 
LakeSurfer
Newbies
*
Offline


Posts: 6
Joined: Dec 7th, 2022
Re: Error when linking ESP32 project - The filename or extension is too long
Reply #2 - Jan 11th, 2024 at 3:22pm
Print Post  
The 12/12/23 build did fix the issue.  The link command is now down to ~18k.
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2695
Joined: Feb 13th, 2019
Re: Error when linking ESP32 project - The filename or extension is too long
Reply #3 - Jan 11th, 2024 at 3:23pm
Print Post  
Can you attach the full build output from the successful build as well so we can review?
  
Back to top
IP Logged
 
LakeSurfer
Newbies
*
Offline


Posts: 6
Joined: Dec 7th, 2022
Re: Error when linking ESP32 project - The filename or extension is too long
Reply #4 - Jan 11th, 2024 at 4:15pm
Print Post  
I received an "Internal Server Error" when I tried to attach the log file.  Now the option to attach any file at all is missing.  Do you have another way I can send it to you?
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2695
Joined: Feb 13th, 2019
Re: Error when linking ESP32 project - The filename or extension is too long
Reply #5 - Jan 11th, 2024 at 4:21pm
Print Post  
If you email it to info{at}visualmicro.com, and put a link to this thread in the email we will be able to review it.
  
Back to top
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2695
Joined: Feb 13th, 2019
Re: Error when linking ESP32 project - The filename or extension is too long
Reply #6 - Jan 12th, 2024 at 8:40am
Print Post  
Thanks for the logs, we have fixed this issue in the latest version (24.0102.03) which is available 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