PlatformIO Community

Cannot install library in VSCode via IDE on Mac

Hi all,

I’m on newest VS Code for Mac, also newest PlatformIO IDE, but this as been an issue for me for few weeks. I cannot remember when it started

Problem is, that I’m able to search and find a library via PIO Home, but I cannot install any via Install button. The moment I press the button, it “grays out” (disables) and I cannot press it again. From this moment I cannot use Search, it also does not list installer libraries, updates, nothing. Building a code works. The only solution to get to the previous state is to restart VS Code.

Workaround: on the same computer when I open Terminal and type “pio lib install LIBRARYNAME”, works perfectly and this library shows in Installed list.

does anybody have a hint do do that? I have two Macs and they are behaving the same
thanks a lot for any comments

Have you resolved this issue?

nope, nobody seems to care and there’s only fingerpointing. I have switched back to Arduino app, I don’t have the nerves anymore

What is your OS? Please open VSCode > Help > Toggle Developers Tools > Console. Do you see any errors?

Please note, that the recommend solution to manage project libraries is to adding them to lib_deps.

Hi. I just got the same problem. I followed your instructions and I found this error:

workbench.desktop.main.js:sourcemap:243 [Extension Host] (node:3024) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
t.log @ workbench.desktop.main.js:sourcemap:243
workbench.desktop.main.js:sourcemap:1521 ERR spawn git EACCES: Error: spawn git EACCES
at Process.ChildProcess._handle.onexit (internal/child_process.js:232:19)
at onErrorNT (internal/child_process.js:407:16)
at process._tickCallback (internal/process/next_tick.js:63:19)

I also got this warning:

console.ts:137 [Extension Host] DiagnosticCollection with name ‘C/C++’ does already exist.
t.log @ console.ts:137

I have to say now, that I noted that when I opened VSCode, it updated something with “C/C++”. Then I restarted VSCode.

This is the information about my system:
Version: 1.39.2
Commit: 6ab598523be7a800d7f3eb4d92d7ab9a66069390
Date: 2019-10-15T15:33:40.634Z
Electron: 4.2.10
Chrome: 69.0.3497.128
Node.js: 10.11.0
V8: 6.9.427.31-electron.0
OS: Linux x64 5.0.0-32-generic

Thank you in advance.