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) problem with OneDrive as Project folder (Read 3779 times)
Groover
Junior Member
**
Offline


Posts: 25
Joined: Sep 8th, 2013
problem with OneDrive as Project folder
Aug 23rd, 2022 at 9:37am
Print Post  
I have Visual Studio 2022 on Windows 11 with Visual Micro - Release 22.06.11.0 .
I use OneDrive as my  Project folder.
After compiling I get a notification from OneDrive: 
Quote:
Item name is not allowed in cloud rename null.d or remove it

After renaming option by OneDrive all seems to be OK,
but it's very annoying .
« Last Edit: Aug 23rd, 2022 at 12:17pm by Groover »  

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


Posts: 2174
Joined: Feb 13th, 2019
Re: problem with OneDrive as Project folder
Reply #1 - Aug 23rd, 2022 at 9:55am
Print Post  
Thanks for the report.

Can you attach the full build log with the verbose settings enabled as shown at the top of the page?
  
Back to top
 
IP Logged
 
Groover
Junior Member
**
Offline


Posts: 25
Joined: Sep 8th, 2013
Re: problem with OneDrive as Project folder
Reply #2 - Aug 23rd, 2022 at 6:45pm
Print Post  
build log attached to first post.
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2174
Joined: Feb 13th, 2019
Re: problem with OneDrive as Project folder
Reply #3 - Aug 24th, 2022 at 10:09am
Print Post  
Thanks for the detail, we cannot replicate this currently, however one option is to automate the file rename process in your project.

If you add a Local board.txt to the project (vMicro > Add Code > Add Local board.txt), and paste in the below, it will rename the null.d file to null.d.txt in the build folder:
Code
Select All
recipe.hooks.postbuild.1.pattern=cmd.exe /c ren "{build.path}\null.d" "null.d.txt" 



The location in your build folder may be different, and you may wish to delete the file instead of rename it.  This happens before the copy to your intermediate onedrive folder occurs.

Can you attach a copy of the null.d file so we can review its contents in the hope we can find where it is coming from?
  
Back to top
 
IP Logged
 
Groover
Junior Member
**
Offline


Posts: 25
Joined: Sep 8th, 2013
Re: problem with OneDrive as Project folder
Reply #4 - Aug 24th, 2022 at 1:58pm
Print Post  
copy of null.d renamed to null_d.txt  attached.
  

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


Posts: 2174
Joined: Feb 13th, 2019
Re: problem with OneDrive as Project folder
Reply #5 - Aug 24th, 2022 at 2:35pm
Print Post  
Thanks for the file.

The dependency file lists some ESP32 dependencies, but your initial build log was for an Arduino Nano board.

Can you attach the latest build log which generated the attached null.d file?
  
Back to top
 
IP Logged
 
Groover
Junior Member
**
Offline


Posts: 25
Joined: Sep 8th, 2013
Re: problem with OneDrive as Project folder
Reply #6 - Aug 24th, 2022 at 3:59pm
Print Post  
Project was started with doit esp32 devkit v1 as board, but I didn't need all the ESP32 functionality, so I changed to NANO later.
After adding  local  board text: recipe.hooks.postbuild.1.pattern=cmd.exe /c ren "{build.path}\null.d" "null.d.txt" 
and a clean build and rebuild the null.d file is no longer there! But there is still a file  
in \dryboxH_CCP\dryboxH_CCP\Release\.vmpreproc called sketch-gcc-e.d with a lot of esp32 stuff.
Attached the latest build log and sketch-gcc-e.d renamed to sketch-gcc-e.d.txt.
« Last Edit: Aug 24th, 2022 at 4:07pm by Groover »  

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


Posts: 2174
Joined: Feb 13th, 2019
Re: problem with OneDrive as Project folder
Reply #7 - Aug 24th, 2022 at 4:10pm
Print Post  
Thanks for the update, we can only see the sketch-gcc-e_d.txt file on the previous post, but not the build log.

The .vmpreproc folder should not be copied over to the output directory, this should only happen when the "Build In Intermediate" is enabled, which would not be what you want in this scenario.

Can you confirm whether the .vmpreproc folder re-appears in your onedrive folder after deleting it and performing another build? (and attach the log from that build)
  
Back to top
 
IP Logged
 
Groover
Junior Member
**
Offline


Posts: 25
Joined: Sep 8th, 2013
Re: problem with OneDrive as Project folder
Reply #8 - Aug 24th, 2022 at 5:08pm
Print Post  
Deleted the .vmpreproc folder and it does not re-appear, also  null.d file stays away. 
All is OK now, even after closing and reopening Visual Studio.
Attached the latest build.

Just a few questions: 
Witch files and folders can safely be deleted that are recreated on rebuild?
What is the difference between rebuild solution and rebuild  "project name" ?
  

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


Posts: 2174
Joined: Feb 13th, 2019
Re: problem with OneDrive as Project folder
Reply #9 - Aug 25th, 2022 at 10:13am
Print Post  
Glad it is working as expected now on your machine.

The entire contents of the build folder in Temp\VMBuilds\(ProjectName)\(Board)\(Configuration) can be deleted as these are recreated on each build.

Rebuilding a project will clean and build all project files for that project only.  Rebuild Solution will do this for all projects in the solution, and also clears the shared cache for the core in use.
  
Back to top
 
IP Logged
 
Groover
Junior Member
**
Offline


Posts: 25
Joined: Sep 8th, 2013
Re: problem with OneDrive as Project folder
Reply #10 - Aug 25th, 2022 at 11:49am
Print Post  
For this project it's OK, but for testing I made a new project wit the esp32doit-devkit-v1 as board
and the problems are back!
Attached File Explorer screen shots and micro-build output.
  

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


Posts: 2174
Joined: Feb 13th, 2019
Re: problem with OneDrive as Project folder
Reply #11 - Aug 25th, 2022 at 1:05pm
Print Post  
Thanks for the update.

We have replicated the sketch-gcc-e.d file being created which we will investigate, however we are struggling to recreate the nul.d file issue currently.

Would it be possible to ZIP the entire solution folder and email it to us so we can investigate further? (delete the .vs folder first to reduce the size of the ZIP)
  
Back to top
 
IP Logged
 
Groover
Junior Member
**
Offline


Posts: 25
Joined: Sep 8th, 2013
Re: problem with OneDrive as Project folder
Reply #12 - Aug 25th, 2022 at 1:55pm
Print Post  
emailed zipped solution folder as requested
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2174
Joined: Feb 13th, 2019
Re: problem with OneDrive as Project folder
Reply #13 - Aug 25th, 2022 at 3:40pm
Print Post  
Thanks for the files, just to confirm have you renamed the "_nul.d" to include the underscore on the start of the filename?
  
Back to top
 
IP Logged
 
Groover
Junior Member
**
Offline


Posts: 25
Joined: Sep 8th, 2013
Re: problem with OneDrive as Project folder
Reply #14 - Aug 25th, 2022 at 3:51pm
Print Post  
Did not rename and on my side can't see any underscore included.
As I did this project only for testing the issue, i will just keep OneDrive nagging me with notifications until fixed.
« Last Edit: Aug 28th, 2022 at 12:51pm by Groover »  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2174
Joined: Feb 13th, 2019
Re: problem with OneDrive as Project folder
Reply #15 - Aug 31st, 2022 at 4:20pm
Print Post  
Thanks for all of the detail on this and working through the issue with us.

The latest release (22.08.23.01) will resolve this, and it is available for download from the top of the board below:
https://www.visualmicro.com/forums/YaBB.pl?board=VS_ARDUINO_EXT_RELEASES
  
Back to top
 
IP Logged
 
Groover
Junior Member
**
Offline


Posts: 25
Joined: Sep 8th, 2013
Re: problem with OneDrive as Project folder
Reply #16 - Sep 1st, 2022 at 3:38pm
Print Post  
Thank U, downloaded 22.08.23.01 and it works like a charm.
No more renaming necessary. Smiley
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint