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) Just updated VisualMicro and none of my includes are being found. (Read 4843 times)
Brett15
Junior Member
**
Offline


Posts: 15
Joined: Apr 30th, 2014
Just updated VisualMicro and none of my includes are being found.
Aug 14th, 2019 at 7:22pm
Print Post  
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 \libraries\SPI\Scheduler'. Ide=Arduino 1.6/1.8
« Last Edit: Aug 14th, 2019 at 7:32pm by Brett15 »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Just updated VisualMicro and none of my includes are being found.
Reply #1 - Aug 14th, 2019 at 7:40pm
Print Post  
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.
« Last Edit: Aug 14th, 2019 at 7:51pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Brett15
Junior Member
**
Offline


Posts: 15
Joined: Apr 30th, 2014
Re: Just updated VisualMicro and none of my includes are being found.
Reply #2 - Aug 14th, 2019 at 7:46pm
Print Post  
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)

« Last Edit: Aug 14th, 2019 at 7:51pm by Brett15 »  

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


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Just updated VisualMicro and none of my includes are being found.
Reply #3 - Aug 14th, 2019 at 7:51pm
Print Post  
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: 15
Joined: Apr 30th, 2014
Re: Just updated VisualMicro and none of my includes are being found.
Reply #4 - Aug 14th, 2019 at 7:57pm
Print Post  
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
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Just updated VisualMicro and none of my includes are being found.
Reply #5 - Aug 14th, 2019 at 8:01pm
Print Post  
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?
« Last Edit: Aug 14th, 2019 at 8:01pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Brett15
Junior Member
**
Offline


Posts: 15
Joined: Apr 30th, 2014
Re: Just updated VisualMicro and none of my includes are being found.
Reply #6 - Aug 14th, 2019 at 8:06pm
Print Post  
Ahhhh  progress.  Not all the way but progress:

Code
Select All
Deep search for libraries ...
e-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\"" \4.5.0/CMSIS/Include/" -Atmel\1.0.0/CMSIS/Device/ATMEL/" md\1.0.1\cores\industruino" md\1.0.1\variants\industruino_d21g" p" -o "nul"
e-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\"" \4.5.0/CMSIS/Include/" -Atmel\1.0.0/CMSIS/Device/ATMEL/" md\1.0.1\cores\industruino" md\1.0.1\variants\industruino_d21g" md\1.0.1\libraries\SPI" p" -o "nul"
e-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\"" \4.5.0/CMSIS/Include/" -Atmel\1.0.0/CMSIS/Device/ATMEL/" md\1.0.1\cores\industruino" md\1.0.1\variants\industruino_d21g" md\1.0.1\libraries\SPI" -I"C:\Users\brettbowden\Documents\Arduino\libraries\Ethernet2\src" p" -o "nul"
e-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\"" \4.5.0/CMSIS/Include/" -Atmel\1.0.0/CMSIS/Device/ATMEL/" md\1.0.1\cores\industruino" md\1.0.1\variants\industruino_d21g" md\1.0.1\libraries\SPI" -I"C:\Users\brettbowden\Documents\Arduino\libraries\Ethernet2\src" -I"C:\Users\brettbowden\Documents\Arduino\libraries\Arduino-Scheduler-master" p" -o "nul"
e-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\"" \4.5.0/CMSIS/Include/" -Atmel\1.0.0/CMSIS/Device/ATMEL/" md\1.0.1\cores\industruino" md\1.0.1\variants\industruino_d21g" md\1.0.1\libraries\SPI" -I"C:\Users\brettbowden\Documents\Arduino\libraries\Ethernet2\src" -I"C:\Users\brettbowden\Documents\Arduino\libraries\Arduino-Scheduler-master" p" -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 



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


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Just updated VisualMicro and none of my includes are being found.
Reply #7 - Aug 14th, 2019 at 8:15pm
Print Post  
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: 15
Joined: Apr 30th, 2014
Re: Just updated VisualMicro and none of my includes are being found.
Reply #8 - Aug 14th, 2019 at 8:15pm
Print Post  
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: 15
Joined: Apr 30th, 2014
Re: Just updated VisualMicro and none of my includes are being found.
Reply #9 - Aug 14th, 2019 at 8:16pm
Print Post  
Queue.h is part of the Scheduler.h library...  Kind of a sub part.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Just updated VisualMicro and none of my includes are being found.
Reply #10 - Aug 14th, 2019 at 8:19pm
Print Post  
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: 15
Joined: Apr 30th, 2014
Re: Just updated VisualMicro and none of my includes are being found.
Reply #11 - Aug 14th, 2019 at 8:23pm
Print Post  
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: 15
Joined: Apr 30th, 2014
Re: Just updated VisualMicro and none of my includes are being found.
Reply #12 - Aug 14th, 2019 at 8:30pm
Print Post  
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
 
Tim@Visual Micro
Administrator
*****
Offline


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


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Just updated VisualMicro and none of my includes are being found.
Reply #14 - Aug 14th, 2019 at 8:51pm
Print Post  
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: 15
Joined: Apr 30th, 2014
Re: Just updated VisualMicro and none of my includes are being found.
Reply #15 - Aug 14th, 2019 at 9:58pm
Print Post  
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.
« Last Edit: Aug 14th, 2019 at 10:04pm by Brett15 »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Just updated VisualMicro and none of my includes are being found.
Reply #16 - Aug 14th, 2019 at 10:04pm
Print Post  
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
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Just updated VisualMicro and none of my includes are being found.
Reply #17 - Aug 14th, 2019 at 10:07pm
Print Post  
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: 15
Joined: Apr 30th, 2014
Re: Just updated VisualMicro and none of my includes are being found.
Reply #18 - Aug 14th, 2019 at 10:07pm
Print Post  
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.
« Last Edit: Aug 14th, 2019 at 10:11pm by Brett15 »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Just updated VisualMicro and none of my includes are being found.
Reply #19 - Aug 14th, 2019 at 10:21pm
Print Post  
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 TopicPrint