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
Normal Topic could not open source file "Wire.h" (Read 6374 times)
hary
Newbies
*
Offline


Posts: 4
Joined: Jul 7th, 2018
could not open source file "Wire.h"
Jul 7th, 2018 at 11:46am
Print Post  
Hi.
I've just installed VsCode but can't use it for arduino.

#include errors detected. Please update your includePath. IntelliSense features for this translation unit (/home/harold/Arduino/Saaf_Curing/Saaf_Curing.ino) will be provided by the Tag Parser.
could not open source file "Wire.h" (no directories in search list)

Code (C++)
Select All
#include <Wire.h> //  pour l'I2C avec SDA sur pin A4 et scl sur A5
#include <Adafruit_MCP4725.h> //  I2C device
#include <SPI.h>  //  pour le SPI
#include "Adafruit_MAX31855.h"  //  SPI device
#include <Adafr#include <Wire.h>uit_ADS1015.h>
#include <PID_v1.h> //  bibliothèque régulateur PID


#define ledPin 13
.
.
.
 


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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: could not open source file "Wire.h"
Reply #1 - Jul 7th, 2018 at 11:52am
Print Post  
This is the wrong forum. This forum is for the Arduino extension for Visual Studio and the free Visual Studio Community version. VsCode is a cut down IDE that is different to Visual Studio.
  
Back to top
IP Logged
 
hary
Newbies
*
Offline


Posts: 4
Joined: Jul 7th, 2018
Re: could not open source file "Wire.h"
Reply #2 - Jul 7th, 2018 at 12:08pm
Print Post  
Sorry I'm lost with all these different terms !
In fact I'm with Visual Studio Code.

Visual Studio Code
Version: 1.25.0
Commit: 0f080e5267e829de46638128001aeb7ca2d6d50e
Date: 2018-07-05T13:10:37.273Z
Electron: 1.7.12
Chrome: 58.0.3029.110
Node.js: 7.9.0
V8: 5.8.283.38
Architecture: x64
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: could not open source file "Wire.h"
Reply #3 - Jul 7th, 2018 at 12:49pm
Print Post  
Hi,

No problem, Microsoft have confused things.

Your are using VsCode, this is not the forum for that.

This forum is for the Visual Micro Arduino extension for Visual Studio which you have not installed. Visual Micro does not support VsCode.
« Last Edit: Jul 7th, 2018 at 12:51pm by Tim@Visual Micro »  
Back to top
IP Logged
 
hary
Newbies
*
Offline


Posts: 4
Joined: Jul 7th, 2018
Re: could not open source file "Wire.h"
Reply #4 - Jul 7th, 2018 at 1:50pm
Print Post  
So to be clear there is VsCode (same as Visual Studio Code) which I've installed.
And there is Visual Studio which is different (the right forum for it)

What is best ? I'm looking for a better IDE than Arduino ! Something not confusing please ! Even google doesn't give straight and unconfusing response !
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: could not open source file "Wire.h"
Reply #5 - Jul 7th, 2018 at 2:00pm
Print Post  
If you are a windows users Visual Studio is a more mature IDE with toolbar and menus like a normal app so can be easier. Visual Micro builds faster than Arduino in Visual Studio Code bu it depends on your preference.

If you have installed the arduino ide and you are novice then make sure you install the Release IDE and not nightly build or beta otherwise you will confuse things even more.

If you install Visual Studio 2017 Community Edition make sure you click the option to install the C++ stuff when prompted. Then run the Ide and click "Tools>Extensions and Updates", search for Arduino for Visual Studio if it isn't near the top of the list when the window opens. Then click Install and you are done.
  
Back to top
IP Logged
 
hary
Newbies
*
Offline


Posts: 4
Joined: Jul 7th, 2018
Re: could not open source file "Wire.h"
Reply #6 - Jul 7th, 2018 at 4:40pm
Print Post  
So what is Visual Studio 2017 Community Edition ? VsCode or VS ?

Visual Micro goes with VS or with VsCode .
I'm not a windows user.
Tim@Visual Micro wrote on Jul 7th, 2018 at 2:00pm:
Visual Micro builds faster than Arduino in Visual Studio Code


Tim@Visual Micro wrote on Jul 7th, 2018 at 11:52am:
This forum is for the Arduino extension for Visual Studio

Arduino extension for Visual Studio is Visual micro ? Right ?
So your 2 previous post are confusing !

Who is making VsCode ?
Who is making Visual Studio ?
Who is making Visual Micro ?
Do they run on Linux ?
Are they open source ?
At least the responses might clear things a bit.

This is far from being clear, indeed.

« Last Edit: Jul 7th, 2018 at 4:41pm by hary »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: could not open source file "Wire.h"
Reply #7 - Jul 7th, 2018 at 4:44pm
Print Post  
Arduino extension for Visual Studio is Visual Micro. This forum and what is shown during download from the Microsoft Gallery.

It's probably easier for you to say what you have what you need.

If you have Linux you are in the wrong forum. You need to be in the VsCode forum. Microsoft make both VsCode and Visual Studio. The plugins/extensions for each IDE are by various authors.

Visual Studio has been around for many years but only for windows users. VsCode a new IDE that is a little like an enhanced text editor for Mac, Linux, Windows.

All the best.
« Last Edit: Jul 7th, 2018 at 4:47pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint