Welcome, Guest. Please Login or Register
Arduino IDE for Visual Studio
 
 
When Logging a Support Issue in the Forum, please ensure you have also:-
  • Enabled vMicro > Compiler > Show Build Properties and Verbose
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
Support requests without the output above may be impossible to answer, so please help us to help you
 
  HomeSearch Tutorials & Wiki visualmicro.com LoginHelpRegister  
 
Page Index Toggle Pages: 1
Send Topic Print
Just updated VisualMicro and none of my includes are being found. (Read 477 times)
Brett15
Junior Member
**
Offline



Posts: 11
Just updated VisualMicro and none of my includes are being found.
Aug 14th, 2019 at 8:22pm
 
I'm also getting the error:

System.IO.DirectoryNotFoundException: Could not find a part of the path

I either need help fixing the library issue or rolling back to the previous plug in because I have software that I have to get out and now I can't compile software that used to compile. Angry Angry Angry Angry Angry

Update:

Now when I open my project, I get:

Build validation failed for sketch 'PROJECT': Could not find a part of the path 'C:\Users\xxxxx\AppData\Local\arduino15\packages\industruino\hardware\samd\1.0.1
\libraries\SPI\Scheduler'. Ide=Arduino 1.6/1.8
Back to top
« Last Edit: Aug 14th, 2019 at 8:32pm by Brett15 »  
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10573
United Kingdom
Re: Just updated VisualMicro and none of my includes are being found.
Reply #1 - Aug 14th, 2019 at 8:40pm
 
Previous versions are aways here https://www.visualmicro.com/forums/YaBB.pl?board=VS_ARDUINO_EXT_RELEASES

You can use extensions manager to remove visual micro so that an older version can be installed but it's worth persisting.

Please follow the guide in the yellow box above and produce a .txt file with your config.
Back to top
« Last Edit: Aug 14th, 2019 at 8:51pm by Visual Micro »  
WWW  
IP Logged
 
Brett15
Junior Member
**
Offline



Posts: 11
Re: Just updated VisualMicro and none of my includes are being found.
Reply #2 - Aug 14th, 2019 at 8:46pm
 
Here is the output per the yellow box:

What doesn't make any sense is that none of my includes are being found.  In the build validation error above, it says it can't find .../SPI/Scheduler  because that isn't where the Scheduler include is located.  In other words, I have no idea why it is looking for "Scheduler" in the SPI folder (which does exist by the way)

Back to top
« Last Edit: Aug 14th, 2019 at 8:51pm by Brett15 »  
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10573
United Kingdom
Re: Just updated VisualMicro and none of my includes are being found.
Reply #3 - Aug 14th, 2019 at 8:51pm
 
Do you follow the arduino standard when #including libraries in your code like this #include <spi.h>

or do you add folder paths such as :- #include <spi/spi.h>?
Back to top
 
WWW  
IP Logged
 
Brett15
Junior Member
**
Offline



Posts: 11
Re: Just updated VisualMicro and none of my includes are being found.
Reply #4 - Aug 14th, 2019 at 8:57pm
 
I use the standard (with the exception of one):

#include <SPI.h>
#include <util.h>
#include <Twitter.h>
#include <EthernetUdp2.h>
#include <EthernetServer.h>
#include <EthernetClient.h>
#include <Ethernet2.h>
#include <Dns.h>
#include <Dhcp.h>
#include <Scheduler.h>
#include <Scheduler\Queue.h>
#include <UC1701.h>
#include <Indio.h>

None of these libraries are being found (all the #include have red squiggly lines under them)
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10573
United Kingdom
Re: Just updated VisualMicro and none of my includes are being found.
Reply #5 - Aug 14th, 2019 at 9:01pm
 
The fact you have not managed a compile yet can cause the red sqiggles

if you change

#include <Scheduler\Queue.h>

to this

#include <Queue.h>

then click build, what happens?
Back to top
« Last Edit: Aug 14th, 2019 at 9:01pm by Visual Micro »  
WWW  
IP Logged
 
Brett15
Junior Member
**
Offline



Posts: 11
Re: Just updated VisualMicro and none of my includes are being found.
Reply #6 - Aug 14th, 2019 at 9:06pm
 
Ahhhh  progress.  Not all the way but progress:

Code:
Deep search for libraries ...
"C:\Users\brettbowden\AppData\Local\arduino15\packages\industruino\tools\arm-none-eabi-gcc\4.8.3-2014q1\bin\arm-none-eabi-g++" -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -w -x c++ -E -CC   -DF_CPU=48000000L -DARDUINO=10807 -DARDUINO_SAMD_INDUSTRUINO_D21G -DARDUINO_ARCH_SAMD -D__SAMD21G18A__ -DUSB_VID=0x2E78 -DUSB_PID=0x804d -DUSBCON -DUSB_MANUFACTURER="\"ES Gear Ltd.\"" -DUSB_PRODUCT="\"Industruino D21G\"" "-IC:\Users\brettbowden\AppData\Local\arduino15\packages\industruino\tools\CMSIS\4.5.0/CMSIS/Include/" "-IC:\Users\brettbowden\AppData\Local\arduino15\packages\industruino\tools\CMSIS-Atmel\1.0.0/CMSIS/Device/ATMEL/" -I"C:\Users\brettbowden\AppData\Local\arduino15\packages\industruino\hardware\samd\1.0.1\cores\industruino" -I"C:\Users\brettbowden\AppData\Local\arduino15\packages\industruino\hardware\samd\1.0.1\variants\industruino_d21g" "C:\Users\brettbowden\AppData\Local\Temp\VMBuilds\NTC_V3_1_1_INDUSTRINO_MAIN\industruino_industruino_samd_industruino_d21g\Release\NTC_V3_1_1_INDUSTRINO_MAIN.cpp" -o "nul"
"C:\Users\brettbowden\AppData\Local\arduino15\packages\industruino\tools\arm-none-eabi-gcc\4.8.3-2014q1\bin\arm-none-eabi-g++" -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -w -x c++ -E -CC   -DF_CPU=48000000L -DARDUINO=10807 -DARDUINO_SAMD_INDUSTRUINO_D21G -DARDUINO_ARCH_SAMD -D__SAMD21G18A__ -DUSB_VID=0x2E78 -DUSB_PID=0x804d -DUSBCON -DUSB_MANUFACTURER="\"ES Gear Ltd.\"" -DUSB_PRODUCT="\"Industruino D21G\"" "-IC:\Users\brettbowden\AppData\Local\arduino15\packages\industruino\tools\CMSIS\4.5.0/CMSIS/Include/" "-IC:\Users\brettbowden\AppData\Local\arduino15\packages\industruino\tools\CMSIS-Atmel\1.0.0/CMSIS/Device/ATMEL/" -I"C:\Users\brettbowden\AppData\Local\arduino15\packages\industruino\hardware\samd\1.0.1\cores\industruino" -I"C:\Users\brettbowden\AppData\Local\arduino15\packages\industruino\hardware\samd\1.0.1\variants\industruino_d21g" -I"C:\Users\brettbowden\AppData\Local\arduino15\packages\industruino\hardware\samd\1.0.1\libraries\SPI" "C:\Users\brettbowden\AppData\Local\Temp\VMBuilds\NTC_V3_1_1_INDUSTRINO_MAIN\industruino_industruino_samd_industruino_d21g\Release\NTC_V3_1_1_INDUSTRINO_MAIN.cpp" -o "nul"
"C:\Users\brettbowden\AppData\Local\arduino15\packages\industruino\tools\arm-none-eabi-gcc\4.8.3-2014q1\bin\arm-none-eabi-g++" -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -w -x c++ -E -CC   -DF_CPU=48000000L -DARDUINO=10807 -DARDUINO_SAMD_INDUSTRUINO_D21G -DARDUINO_ARCH_SAMD -D__SAMD21G18A__ -DUSB_VID=0x2E78 -DUSB_PID=0x804d -DUSBCON -DUSB_MANUFACTURER="\"ES Gear Ltd.\"" -DUSB_PRODUCT="\"Industruino D21G\"" "-IC:\Users\brettbowden\AppData\Local\arduino15\packages\industruino\tools\CMSIS\4.5.0/CMSIS/Include/" "-IC:\Users\brettbowden\AppData\Local\arduino15\packages\industruino\tools\CMSIS-Atmel\1.0.0/CMSIS/Device/ATMEL/" -I"C:\Users\brettbowden\AppData\Local\arduino15\packages\industruino\hardware\samd\1.0.1\cores\industruino" -I"C:\Users\brettbowden\AppData\Local\arduino15\packages\industruino\hardware\samd\1.0.1\variants\industruino_d21g" -I"C:\Users\brettbowden\AppData\Local\arduino15\packages\industruino\hardware\samd\1.0.1\libraries\SPI" -I"C:\Users\brettbowden\Documents\Arduino\libraries\Ethernet2\src" "C:\Users\brettbowden\AppData\Local\Temp\VMBuilds\NTC_V3_1_1_INDUSTRINO_MAIN\industruino_industruino_samd_industruino_d21g\Release\NTC_V3_1_1_INDUSTRINO_MAIN.cpp" -o "nul"
"C:\Users\brettbowden\AppData\Local\arduino15\packages\industruino\tools\arm-none-eabi-gcc\4.8.3-2014q1\bin\arm-none-eabi-g++" -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -w -x c++ -E -CC   -DF_CPU=48000000L -DARDUINO=10807 -DARDUINO_SAMD_INDUSTRUINO_D21G -DARDUINO_ARCH_SAMD -D__SAMD21G18A__ -DUSB_VID=0x2E78 -DUSB_PID=0x804d -DUSBCON -DUSB_MANUFACTURER="\"ES Gear Ltd.\"" -DUSB_PRODUCT="\"Industruino D21G\"" "-IC:\Users\brettbowden\AppData\Local\arduino15\packages\industruino\tools\CMSIS\4.5.0/CMSIS/Include/" "-IC:\Users\brettbowden\AppData\Local\arduino15\packages\industruino\tools\CMSIS-Atmel\1.0.0/CMSIS/Device/ATMEL/" -I"C:\Users\brettbowden\AppData\Local\arduino15\packages\industruino\hardware\samd\1.0.1\cores\industruino" -I"C:\Users\brettbowden\AppData\Local\arduino15\packages\industruino\hardware\samd\1.0.1\variants\industruino_d21g" -I"C:\Users\brettbowden\AppData\Local\arduino15\packages\industruino\hardware\samd\1.0.1\libraries\SPI" -I"C:\Users\brettbowden\Documents\Arduino\libraries\Ethernet2\src" -I"C:\Users\brettbowden\Documents\Arduino\libraries\Arduino-Scheduler-master" "C:\Users\brettbowden\AppData\Local\Temp\VMBuilds\NTC_V3_1_1_INDUSTRINO_MAIN\industruino_industruino_samd_industruino_d21g\Release\NTC_V3_1_1_INDUSTRINO_MAIN.cpp" -o "nul"
"C:\Users\brettbowden\AppData\Local\arduino15\packages\industruino\tools\arm-none-eabi-gcc\4.8.3-2014q1\bin\arm-none-eabi-g++" -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -w -x c++ -E -CC   -DF_CPU=48000000L -DARDUINO=10807 -DARDUINO_SAMD_INDUSTRUINO_D21G -DARDUINO_ARCH_SAMD -D__SAMD21G18A__ -DUSB_VID=0x2E78 -DUSB_PID=0x804d -DUSBCON -DUSB_MANUFACTURER="\"ES Gear Ltd.\"" -DUSB_PRODUCT="\"Industruino D21G\"" "-IC:\Users\brettbowden\AppData\Local\arduino15\packages\industruino\tools\CMSIS\4.5.0/CMSIS/Include/" "-IC:\Users\brettbowden\AppData\Local\arduino15\packages\industruino\tools\CMSIS-Atmel\1.0.0/CMSIS/Device/ATMEL/" -I"C:\Users\brettbowden\AppData\Local\arduino15\packages\industruino\hardware\samd\1.0.1\cores\industruino" -I"C:\Users\brettbowden\AppData\Local\arduino15\packages\industruino\hardware\samd\1.0.1\variants\industruino_d21g" -I"C:\Users\brettbowden\AppData\Local\arduino15\packages\industruino\hardware\samd\1.0.1\libraries\SPI" -I"C:\Users\brettbowden\Documents\Arduino\libraries\Ethernet2\src" -I"C:\Users\brettbowden\Documents\Arduino\libraries\Arduino-Scheduler-master" "C:\Users\brettbowden\AppData\Local\Temp\VMBuilds\NTC_V3_1_1_INDUSTRINO_MAIN\industruino_industruino_samd_industruino_d21g\Release\NTC_V3_1_1_INDUSTRINO_MAIN.cpp" -o "nul"

NTC_V3_1_1_INDUSTRINO_MAIN.ino: 11:19: fatal error: Queue.h: No such file or directory
   #include <Queue.h>
   compilation terminated 



Back to top
« Last Edit: Aug 14th, 2019 at 9:10pm by Visual Micro »  
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10573
United Kingdom
Re: Just updated VisualMicro and none of my includes are being found.
Reply #7 - Aug 14th, 2019 at 9:15pm
 
Which library is the Queue.h in? or is it core or project file?
Back to top
 
WWW  
IP Logged
 
Brett15
Junior Member
**
Offline



Posts: 11
Re: Just updated VisualMicro and none of my includes are being found.
Reply #8 - Aug 14th, 2019 at 9:15pm
 
Commenting out the Queue.h include allows the deep scan to complete and then it tries to compile, which fails of course because the Queue.h include is missing.

How do I include it?
Back to top
 
 
IP Logged
 
Brett15
Junior Member
**
Offline



Posts: 11
Re: Just updated VisualMicro and none of my includes are being found.
Reply #9 - Aug 14th, 2019 at 9:16pm
 
Queue.h is part of the Scheduler.h library...  Kind of a sub part.
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10573
United Kingdom
Re: Just updated VisualMicro and none of my includes are being found.
Reply #10 - Aug 14th, 2019 at 9:19pm
 
What is install url for the scheduler lib? The standard scheduler doesn't have the queue file.

In any event a short term workaround while we investigate might be to switch off "vmicro>compiler>deep search" and add the Scheduler\ back into the queue.h include.
Back to top
 
WWW  
IP Logged
 
Brett15
Junior Member
**
Offline



Posts: 11
Re: Just updated VisualMicro and none of my includes are being found.
Reply #11 - Aug 14th, 2019 at 9:23pm
 
Turning off Deep Search does not solve the problem, I get the original error.

The Scheduler I used is here:

https://github.com/mikaelpatel/Arduino-Scheduler
Back to top
 
 
IP Logged
 
Brett15
Junior Member
**
Offline



Posts: 11
Re: Just updated VisualMicro and none of my includes are being found.
Reply #12 - Aug 14th, 2019 at 9:30pm
 
This scheduler is a header only implementation so I just moved the header to the root src directory of the Scheduler library and got it to compile.  Smiley Smiley Smiley
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10573
United Kingdom
Re: Just updated VisualMicro and none of my includes are being found.
Reply #13 - Aug 14th, 2019 at 9:38pm
 
Thanks fo the note. That's good but we will investigate anyway.
Back to top
 
WWW  
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10573
United Kingdom
Re: Just updated VisualMicro and none of my includes are being found.
Reply #14 - Aug 14th, 2019 at 9:51pm
 
I can't reproduce as is do would be useful to have a list of download locations for the libs you have used.

The berose option wasn't on for your diangostics .txt file I am assuming you are in vs2017 or 2019. There was a change to fix folders in lib includes but that was in 1907.7.0 which is what you should have installed. It's possible the fix went out in the next release so when you get time please try the work in progress download of 1908.7.4 from the top of this board.

https://www.visualmicro.com/forums/YaBB.pl?board=VS_ARDUINO_EXT_RELEASES

Thanks
Back to top
 
WWW  
IP Logged
 
Brett15
Junior Member
**
Offline



Posts: 11
Re: Just updated VisualMicro and none of my includes are being found.
Reply #15 - Aug 14th, 2019 at 10:58pm
 
Actually, I'm on 1908.5.0 installed on 8/12/2019

Oops, I see in the first reference to build you wrote 1907.7 so I thought I was on a later release. 

I have updated to the latest build and I'll see if it searches a sub folder.
Back to top
« Last Edit: Aug 14th, 2019 at 11:04pm by Brett15 »  
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10573
United Kingdom
Re: Just updated VisualMicro and none of my includes are being found.
Reply #16 - Aug 14th, 2019 at 11:04pm
 
That explains it but I am unsure how you managed to install 1908.05 on the 12th

If you look down the right hand side of the current gallery page you should see the version and that is was updated on 8/8/2019. What version do you see in the IDE using "tools>extensions and updates>online" or "Extensions>extensjon manager>online"?

Version
1908.7.0
Released on
8/3/2015, 10:51:48 PM
Last updated
8/8/2019, 12:36:01 PM
Back to top
 
WWW  
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10573
United Kingdom
Re: Just updated VisualMicro and none of my includes are being found.
Reply #17 - Aug 14th, 2019 at 11:07pm
 
Hmm, I just downloaded the extension but as you say it has older version in the manifest. The gallary has a few issues at the moment that Microsoft are looking into. I will try to upload a new release to see if that helps fix the issue.
Back to top
 
WWW  
IP Logged
 
Brett15
Junior Member
**
Offline



Posts: 11
Re: Just updated VisualMicro and none of my includes are being found.
Reply #18 - Aug 14th, 2019 at 11:07pm
 
Yes, the online version is build 1908.7.0  Not sure how I got the .5 version.

And with build 1908.7.4, the #include <Scheduler/Queue.h> compiles without an error.

Thank you very much for the rapid support.  I have a short deadline and I had visions of not being able to compile for days.
Back to top
« Last Edit: Aug 14th, 2019 at 11:11pm by Brett15 »  
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10573
United Kingdom
Re: Just updated VisualMicro and none of my includes are being found.
Reply #19 - Aug 14th, 2019 at 11:21pm
 
Great, you can always drop back to older versions. visual micro doesn't change things during install that cause problems rerverting. However it's good to get the issue cleared up thanks.

There was something screwy doing on with the gallery, I just posted 1908.7.4 to the gallery but prior to that it showed me the version was 1908.5. Hopefully a fresh upload fixes whatever back-end issue that is.
Back to top
 
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print