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

Update board type command does not update intellisense config automatically #959

Closed
whiteb3ar opened this issue Jan 25, 2020 · 4 comments
Closed

Comments

@whiteb3ar
Copy link

whiteb3ar commented Jan 25, 2020

When board type changed "defines" section in c_cpp_properties.json is not updated.

When compiling the code "-mmcu={board}" switch is passed as arg so that there is correct "#define" whilst compilation and there is no errors. But intellisense has no correct "#define" available until manually specified.

Actual result
Untitled

Expected result
Intellisense highlight correct code block

@whiteb3ar
Copy link
Author

This one causes false positive intellisense errors as well.

@elektronikworkshop
Copy link
Contributor

I have the same issues. The only proper way to do it is to parse the build output and auto fill the intellisense settings. But when looking at the push activity here I get the impression that this project is more or less dead.

@elektronikworkshop
Copy link
Contributor

Hi to everyone who is suffering from this!

I was so annoyed, that I began to work on an auto-configuration mechanism, which parses the build output from Arduino and creates a c_cpp_properties.json from it. The goal is that no one wants likely ever edit this file manually again - except for very weird setups for which I will add a configuration flag/option that will keep the extension from touching the file.

I coded some proof of concept already but I haven't committed anything yet. But I began documenting the project here.

Anyone who wants to keep me motivated can chip in some 🍺-money - the donation button can be found in the link above.

Other support is appreciated and comprises

  • people with Windows and OSX setups to test the cross platform compatibility
  • the original maintainers could help me with CI and how to build test-releases

The progress can be followed within the same file. The repo is set to this feature branch by default.

@adiazulay adiazulay self-assigned this Nov 17, 2020
@adiazulay adiazulay linked a pull request Dec 10, 2020 that will close this issue
@adiazulay
Copy link
Contributor

IntelliSense auto-generation has been added in v0.4.0. If you're having any problems with IntelliSense please open a new issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants