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 [2]  Send TopicPrint
Very Hot Topic (More than 25 Replies) Pro version can't find my source files in subfolder (Read 20726 times)
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Pro version can't find my source files in subfolder
Reply #20 - May 12th, 2016 at 8:44pm
Print Post  
Okay thanks

I published a .11 yesterday and asked you to try it. It has support for relative includes.

Did you install it yet? It's now .12 Smiley
  
Back to top
IP Logged
 
gofishing
Junior Member
**
Offline


Posts: 27
Joined: May 3rd, 2016
Re: Pro version can't find my source files in subfolder
Reply #21 - May 14th, 2016 at 11:47pm
Print Post  
any update on this?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Pro version can't find my source files in subfolder
Reply #22 - May 15th, 2016 at 12:04am
Print Post  
I am sorry I think we are having communications problems.

In my last two responses I ask you to install the latest update and try it.

For some reason you haven't confirmed if you have read my messages or done as requested so I am at a loss to know how to answer your question Smiley

So at least please confirm which version of visual micro you using via "tools>extensions and updates>arduino ide for visual studio>version"

Thanks
  
Back to top
IP Logged
 
gofishing
Junior Member
**
Offline


Posts: 27
Joined: May 3rd, 2016
Re: Pro version can't find my source files in subfolder
Reply #23 - May 15th, 2016 at 12:07am
Print Post  
sorry did not see your response, I am traveling, will give it a try later on.

  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Pro version can't find my source files in subfolder
Reply #24 - May 15th, 2016 at 12:07am
Print Post  
Thanks, your forum email updates are on so please check your junk mail and mark visual micro as a safe sender
« Last Edit: May 15th, 2016 at 12:09am by Tim@Visual Micro »  
Back to top
IP Logged
 
gofishing
Junior Member
**
Offline


Posts: 27
Joined: May 3rd, 2016
Re: Pro version can't find my source files in subfolder
Reply #25 - May 16th, 2016 at 5:54pm
Print Post  

I am back from trip. upgrade to .14 version.

tried the same sample project. not fixed, same issue.

use #include "..\..\Test2\UID_DS2401.h", intellisense is happy, but build failed with file not found.

use #include "UID_DS2401.h", intellisense is not happy, but build fine.

regardless what I set on "Deep Search Includes", same result.

am I missing some settings, compare to yours?

also, .14 still crash VS2013, when I tried to create a empty Arduino project.

  
Back to top
 
IP Logged
 
gofishing
Junior Member
**
Offline


Posts: 27
Joined: May 3rd, 2016
Re: Pro version can't find my source files in subfolder
Reply #26 - May 18th, 2016 at 12:59am
Print Post  

I dug more on this. and it is quite strange.

I added a new folder in my test project. so now, I have

Test1\Sketch1\Sketch1.ino
Test2\UID_DS2401.h and UID_DS2401.cpp
Test3\BaseData.h and BaseData.cpp

if I put any relative path in the .ino file. it won't build.

if I put relative path in any of the .cpp files. it builds(intellisene also fine).

if I put relative path in BaseData.h to reference UID_DS2401.h it is good too.

BUT, if I put relative path in UID_DS2401.h. it is NOT. very strange.

"Deep Serch Includes" does not make any difference in the outcome.






  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Pro version can't find my source files in subfolder
Reply #27 - May 18th, 2016 at 4:22pm
Print Post  
Thanks, please zip your folder structure and email to info[at]visualmicro.com

Other users say sharing code with another project/folder is okay so we have something different in your project that I would like to see.

One question about vs2013, did you used to use the old add-in version of visual micro? If YES then please uninstall it using "control panel>add or remove programs>visual micro for arduino". Vs2013 is working okay for many users so if that fails then please try to create a new empty win32 c++ project using "File>New>Project". See an error?

Thanks
  
Back to top
IP Logged
 
gofishing
Junior Member
**
Offline


Posts: 27
Joined: May 3rd, 2016
Re: Pro version can't find my source files in subfolder
Reply #28 - May 18th, 2016 at 8:35pm
Print Post  

sent my sample project to info@visualmicro.com

depends on where you reference the file make big difference.
I see no Visual Micro in the control panel.

my version is .14. I have VS 2015 and VS 2013 both installed on same host.

yes, you're right, VS2013 can't create any of Win32 project. this was ok, before. not sure what happened.

I could open and create Arduino project before(VS2013 was my primary VS until recently). and I use both 2013 and 2015 for different projects in ardunio.

could you send me older version of the plugin? I was no problem to open or create before.

  
Back to top
 
IP Logged
 
gofishing
Junior Member
**
Offline


Posts: 27
Joined: May 3rd, 2016
Re: Pro version can't find my source files in subfolder
Reply #29 - May 24th, 2016 at 10:41pm
Print Post  
??

have you got a chance to see why the relative path is not working in my test project?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Pro version can't find my source files in subfolder
Reply #30 - May 27th, 2016 at 10:00pm
Print Post  
I am sorry about the delay.

There is a new release 1605.28 that adds an intellisense include path for each code shortcut (linked source). 

Therefore no path is required to #include linked code:-

#include "MyHeader.h"

Intellisense and compiler should be happy now.

http://www.visualmicro.com/post/2016/05/27/Sharing-code-between-projects.aspx

« Last Edit: May 28th, 2016 at 1:43am by Tim@Visual Micro »  

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