platformio-vscode-ide: "mitaki28.vscode-clang" extension conflicts with "ms-vscode.cpptools"

Temporary solution

Please disable/uninstall mitaki28.vscode-clang and vsciot-vscode.vscode-arduino extensions for PlatformIO workspaces.

VSCode > Menu > View > Extensions > Enabled > Icon near extension ⚙️ > Uninstall

You can change a board and serial port using platformio.ini and board/upload_port options:


VSCode prompt ‘Arduino.h’ file not found ,But it can still compile

About this issue

  • Original URL
  • State: open
  • Created 6 years ago
  • Reactions: 19
  • Comments: 47 (14 by maintainers)

Commits related to this issue

Most upvoted comments

I know this is Closed but a palatable solution to avoid the conflict of Arduino and PIO extensions for Arduino code is to disable the Arduino Extension for this workspace.

Extensions (icon on left)/Arduino/ then chose the Disable dropdown and click on Workspace.

Just one more item to thank the mess that is Arduino development.

You can’t simultaneously use Arduino extension with PlatformIO extension. Disable the Arduino extension for the PlatformIO workspace or uninstall it. PlatformIO does not depend on Arduino IDE/extensions and does not require it.

We asked Microsoft Team to help us here. They confirmed the issue but there is no feedback from their side 😦 I’ll try to ping them again.

We asked Microsoft Team to help us here. They confirmed the issue but there is no feedback from their side 😦 I’ll try to ping them again.

Any luck with that? Been 7 months now.

You can’t simultaneously use Arduino extension with PlatformIO extension. Disable the Arduino extension for the PlatformIO workspace or uninstall it. PlatformIO does not depend on Arduino IDE/extensions and does not require it.

Thank you Ivan for the answer. Have disabled Ardu ext for now. Slava Ukraini!

See updated solution in the original comment https://github.com/platformio/platformio-vscode-ide/issues/118#issue-332266163

P.S: We can’t help here. mitaki28.vscode-clang overrides ms-vscode.cpptools’s IntelliSense provider, as result, you see these errors. It seems for me that you can manually configure mitaki28.vscode-clang as described in their docs and disable ms-vscode.cpptools. Nevertheless, I don’t see any benefit from mitaki28.vscode-clang.

I also get a notification every time I startup Studio Code/PlatformIO (Core 6.1.6·Home 3.4.3)

afbeelding

When I click “More details” I end up on this page about a four year old issue?

Is this issue resolved? I still face the include error when trying to include Arduino.h file. Have added everything in my include path as well. Please can someone help here? Can provide any relevant details further!

We asked Microsoft Team to help us here. They confirmed the issue but there is no feedback from their side 😦 I’ll try to ping them again.

Any update? We still have this issue.