Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

include file not found in browse.path. #366

Closed
agaelema opened this issue Jul 10, 2017 · 7 comments
Closed

include file not found in browse.path. #366

agaelema opened this issue Jul 10, 2017 · 7 comments

Comments

@agaelema
Copy link

The VS Code is showing some problems in sketches. The code compile without any problem, but is not possible to view the content of include files (clicking in the function with "Ctrl" pressed).

Is there a way to resolve this?

Arduino IDE 1.8.3, VS Code 1.13.1.

Thanks

visual-studio-code-problem

@yaohaizh
Copy link
Contributor

@svq98
Copy link

svq98 commented Jul 11, 2017

That does the trick.
Is there a way to set it as a default property for all projects. Every time I open a new project I have to copy all the settings to the new project.

@PeterSek
Copy link

Had same problem, I am using Arduino extensions and resolved by adding browse path as show below (i use custom libs). It fixed the problem...Is this correct way to resolve this?

image

@mattywashington
Copy link

I was able to get my paths as defaults on new projects by doing the following:

  • Use Tag Parser as the article above states
  • open the arduino.js file located in .vscode\extensions\vsciot-vscode.vscode-arduino-0.2.9\out\src\arduino
  • Go to line 215 and edit the section to look like this:
    image

Also...You can do the same thing for the example sketches by searching for "const cppConfig = " and performing the same steps.

@RyanBlace
Copy link

I fixed it by just ending at 'avr':
image

You need everything under AVR.

@mattywashington
Copy link

mattywashington commented Nov 9, 2017

Your solution won't work to include paths in a default configuration...it also won't add the third party libraries that OP posted that are located in a separate folder. The last question asked was how to get the include paths, that OP successfully added, set by default so one doesn't have to type them in every time.

The arduino extension creates the configuration files when you initialize and it doesn't include a setting option to override what it adds by default, so whatever setting you made in a previous configuration won't follow over. By default, the arduino extension will only include the hardware libraries of the board you select.

After editing the file in the location that I provided, the include paths that you set will be added by default on the rest of your projects. The only downside is that every time the extension updates, you have to re-edit the file. It would be a nice addition if the devs could add an option to set include path settings that can be overridden by the user.

@liydu
Copy link

liydu commented Feb 9, 2018

Duplicated with #438

@liydu liydu closed this as completed Feb 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants