platformio-vscode-ide icon indicating copy to clipboard operation
platformio-vscode-ide copied to clipboard

Possibility to use Platformio IDE without depending on the ms-vscode.cpptools extension

Open kr4fty opened this issue 7 months ago • 1 comments

I currently use VSCode, VSCodium, under Linux, and when I install PlatformIO IDE, cpptools is installed as a dependency. So far, so good. When I restart and try to open my project, cpptools gives me the following error message:

The C/C++ extension may be used only with Microsoft Visual Studio, Visual Studio for Mac, Visual Studio Code, Azure DevOps, Team Foundation Server, and successor Microsoft products and services to develop and test your applications.

Is there a way to use PlatformIO IDE without necessarily having to use cpptools? For example, using clangd, clang-format and clang-tidy

Edit: platformio.platformio-ide: v3.3.4 ms-vscode.cpptools: v1.24.5

as an alternative solution downgrade ms-vscode.cpptools to version 1.23.6

kr4fty avatar Apr 08 '25 16:04 kr4fty

https://github.com/platformio/platformio-vscode-ide/issues/1940

I disable C/C++ extension so platformio is deactivated also. So I use the command line to build, upload and monitor inside VSCodium. You should be able to activate the platformio environnement in VSCodium to use commands.

psolyca avatar Apr 08 '25 19:04 psolyca

This issue has been automatically marked as stale because it has not had recent activity. Please provide more details or it will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jun 26 '25 23:06 stale[bot]

Bump, just making sure this doesn't get closed

redocrehtona avatar Jul 15 '25 17:07 redocrehtona

watching this for Cursor compatibility as well.

briangunderson avatar Aug 03 '25 17:08 briangunderson

+1 for this

z-jxy avatar Aug 14 '25 16:08 z-jxy

Hey everyone, can you please try this in Cursor? https://open-vsx.org/extension/DavidGomes/platformio-ide

I have been able to get this to work on my local Cursor for any PlatformIO project.

What I did was:

  • Make this require the Clang VSCode extension (so you should get a notification to install it if you haven't already, and this extension won't even load until you do that)
  • For every PlatformIO project, the extension now generates a compile_commands.json file in the project directory so that the Clang CPP extension works properly

davidgomes avatar Aug 17 '25 18:08 davidgomes

@ivankravets this is a blocker for using the extension in popular editors such as Cursor right now. possible to make the microsoft dependency optional?

kevtechi avatar Oct 05 '25 10:10 kevtechi

See https://github.com/platformio/platformio-vscode-ide/issues/1802#issuecomment-3370225987

ivankravets avatar Oct 06 '25 07:10 ivankravets