Skip to content
This repository was archived by the owner on Oct 1, 2024. It is now read-only.

Project path cannot be changed #978

Closed
DrXoo opened this issue Mar 4, 2020 · 2 comments
Closed

Project path cannot be changed #978

DrXoo opened this issue Mar 4, 2020 · 2 comments

Comments

@DrXoo
Copy link

DrXoo commented Mar 4, 2020

I am writing a Sketch that uses a custom library that I wrote in the same folder.

At the moment of try verify the Sketch the compiler cannot find the header file (.h) for the library that I wrote.

In Arduino IDE this can be solved by changing the project path.

Here we don't have anyway to change the project path for the compiler.

Here is my project structure right now
image

Inside the c_cpp_properties.json I have wrote the project path on both Arduino and Arduino-avr-standart configurations but got no results.

@hellyzh
Copy link
Contributor

hellyzh commented Mar 10, 2020

Please check doc Writing a Library for Arduino. And there is also a fix #946 (Support custom libraries with portable version of Arduino) to fix intellisense issue with custom libraries.

@DrXoo
Copy link
Author

DrXoo commented Mar 10, 2020

Please check doc Writing a Library for Arduino. And there is also a fix #946 (Support custom libraries with portable version of Arduino) to fix intellisense issue with custom libraries.

Thanks @hellyzh I ended up dividing my project structure. Created a Repo for the library and used it on Documents/Arduino/Libraries and created another Repo for the .ino file

The main concern I was talking about was that the path for Libraries cannot be changed but this workaround is not so critical.

Thank you again

@DrXoo DrXoo closed this as completed Mar 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants