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
Locked Topic Output Directory of Shared Code Project (Read 1530 times)
Glen H
Newbies
*
Offline


Posts: 4
Joined: Jul 18th, 2019
Output Directory of Shared Code Project
Jul 18th, 2019 at 2:32am
 
Hi,

I have a solution with 2 Arduino Shared Code projects.  Within the ino file, the #include statements that reference files in the shared projects do not show indicate any errors, and I'm able to "go to definition" successfully, which indicates the references are found correctly within Visual Studio.  However, when I build, one of the shared projects builds successfully, while other shows this error:

Main.ino: 2:46: fatal error: src/PathToFolder/ImportedFile.h: No such file or directory

It appears that during compilation, the files are copied to this temp folder:

C:\Users\[user]\AppData\Local\Temp\VMBuilds\[ProjectName]\[BuildEnvironment]

For the project that I'm able to compile successfully, I see that the files within the shared project are copied to:

C:\Users\[user]\AppData\Local\Temp\VMBuilds\[ProjectName]\[BuildEnvironment]\Debug\[Path to File]

For the shared project that does not compile, the files are copied to:

C:\Users\[user]\AppData\Local\Temp\VMBuilds\[ProjectName]\[BuildEnvironment]\Debug\[Path to File]\Debug.Shared\[Path to File]

How is this temporary output path determined?  Is there something configured incorrectly in my project that's causing different shared projects to output to different locations?

Thank you for your help,
Glen
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Output Directory of Shared Code Project
Reply #1 - Jul 18th, 2019 at 5:59pm
 
Hi,

Please provide the info requested in the yellow box above.

I don't believe there is any config that you can have made to change this. Please zip and attach or email the .vcxitems file from the shared project folder that failed. Also say what the full path and name is?


Thanks

email address in yellow box above
« Last Edit: Jul 18th, 2019 at 6:00pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Output Directory of Shared Code Project
Reply #2 - Jul 22nd, 2019 at 12:08pm
 
Thanks for the info. You should try to keep arduino project names simple and short. I suggest rename your project called "LinkItOne.Shared" to "LinkItOne_Shared". Make sure you rename the project, folder and any files that use the same format.
  
Back to top
WWW  
IP Logged
 
Glen H
Newbies
*
Offline


Posts: 4
Joined: Jul 18th, 2019
Re: Output Directory of Shared Code Project
Reply #3 - Jul 27th, 2019 at 9:31pm
 
I recreated the project and folder as LinkItOneShared, copied in the source files, and had the same issue.  I recreated it a second time named Core, and it seems to work.  I've tried with several different names, and it seems to work sometimes and not others.  I haven't noticed any commonalities between the projects that passed/faile, but when it failed it would always copy the main project files to:

e\Debug

and the shared project files to:

e\Debug.Shared
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Output Directory of Shared Code Project
Reply #4 - Jul 28th, 2019 at 11:11am
 
Discussion continued here 




  

Please Register or Login to the Forum to see File Attachments
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint