Vs code не работает platformio

Содержание
  1. Failed to install Platformio IDE in vscode #1114
  2. Comments
  3. BowmanChow commented Oct 14, 2019
  4. Problem
  5. What I Have Tried
  6. What I Have Found
  7. What I Have Installed in My Computer
  8. edalongeville commented Oct 15, 2019 •
  9. ivankravets commented Oct 18, 2019
  10. ivankravets commented Oct 18, 2019
  11. BowmanChow commented Oct 18, 2019
  12. ivankravets commented Oct 18, 2019
  13. BowmanChow commented Oct 19, 2019
  14. jaime385 commented Dec 2, 2019 •
  15. PlatformIO buttons not showing on VSCode #111
  16. Comments
  17. rafael-mq commented May 18, 2018 •
  18. Solution
  19. ivankravets commented May 22, 2018
  20. gosouth commented Jun 3, 2018 •
  21. ivankravets commented Jun 3, 2018
  22. gosouth commented Jun 3, 2018
  23. IamPhytan commented Feb 1, 2019
  24. ivankravets commented Feb 2, 2019
  25. IamPhytan commented Feb 2, 2019
  26. ivankravets commented Feb 2, 2019
  27. DmitryMaksakov commented May 9, 2019
  28. lobocobra commented Oct 19, 2019 •
  29. sleeply4cat commented Oct 19, 2019 •
  30. DickSwart commented Oct 20, 2019
  31. sivar2311 commented Oct 20, 2019
  32. erhmeh commented Oct 20, 2019
  33. ivankravets commented Oct 20, 2019
  34. Ordsu72 commented Oct 20, 2019 •
  35. ivankravets commented Oct 20, 2019
  36. Ordsu72 commented Oct 20, 2019 •
  37. jhoughjr commented Dec 8, 2019
  38. Recrera commented Oct 11, 2020
  39. geeksville commented Oct 16, 2020
  40. Urmaz commented Oct 19, 2020
  41. ivankravets commented Oct 19, 2020
  42. geeksville commented Oct 19, 2020
  43. Urmaz commented Oct 20, 2020 •
  44. ivankravets commented Oct 20, 2020
  45. Urmaz commented Oct 20, 2020
  46. ivankravets commented Oct 20, 2020
  47. Urmaz commented Oct 20, 2020 •
  48. ivankravets commented Oct 20, 2020
  49. Urmaz commented Oct 20, 2020
  50. ivankravets commented Oct 20, 2020

Failed to install Platformio IDE in vscode #1114

Comments

BowmanChow commented Oct 14, 2019

Problem

I’m using platformio IDE in vscode.

Before 2019.10.11, the platformio IDE extension worked well.

But after 2019.10.11, every time I open vscode I get this message.

What I Have Tried

Uninstall vscode and reinstall it

Uninstall platformio IDE and reinstall it

Downgrade vscode from 1.39 to 1.37

Downgrade platfotmio IDE from 1.90 to 1.83

pip —no-cache-dir install -U platformio

conda install platformio

pip uninstall platform and then pip install platformio

Restart the computer

Uninstall platformio IDE and delete all the folders and files whose names contain ‘platformio’, and than reinstall platformio

Run vscode as administrator and install platformio IDE

I still haven’t fixed the problem now.

What I Have Found

  • After I uninstall platformio IDE and tried to reinstall it (of course I failed), I found the folder «C:\Users\Bowman.platformio»‘s size is only 0KB, and it contains only one folder «.cache».

What I Have Installed in My Computer

Visual Studio 2019

Visual Studio 2017

The text was updated successfully, but these errors were encountered:

edalongeville commented Oct 15, 2019 •

I have the exact same problem.
Here’s what VSCode says:

I rolled back to the 1.8.3 version and it works.

ivankravets commented Oct 18, 2019

ivankravets commented Oct 18, 2019

@BowmanChow It can be linked with broken Python installation. Please open VSCode > Help > Developer tools > Console. Do you see any errors?

BowmanChow commented Oct 18, 2019

@ivankravets Thank you very much. Now I can see errors.

The error occurs when running commands:

The errors are as follows

ivankravets commented Oct 18, 2019

@BowmanChow can you fix your conda installation? It’s better to remove it and never use again. Please use original and official Python interpreter from https://www.python.org/

So, uninstall this conda and use Python 3.8. Please don’t forget to check box with adding Python to PATH.

Читайте также:  Как настроить мфу пантум м6500w что бы работал через вай фай

BowmanChow commented Oct 19, 2019

@ivankravets Thank you very much. I have fixed my conda installation. Your suggestions are really helpful.

jaime385 commented Dec 2, 2019 •

I do really appreciate the help of both of you guys. In my case, I had the same issue of BowmanChow but I had to open the command prompt (since I am using windows) and delete manually a carpet just like this:

Источник

PlatformIO buttons not showing on VSCode #111

Comments

rafael-mq commented May 18, 2018 •

Solution

PLEASE OPEN PLATFORMIO PROJECT. . HOME ICON > Open Project.

Newbie here, sorry 😀 I think I messed up with my vscode workplace and now the PIO buttons disappeared from my interface. There are only 4 buttons on the bottom bar: Errors, Warnings, Infos and PlatformIO: Home. When I clink the home button a pop-up error message saying «Running the contributed command:’platformio-ide.showHome’ failed.» Can anyone help me on it?

The text was updated successfully, but these errors were encountered:

ivankravets commented May 22, 2018

You need to open PIO Project or create a new one.

gosouth commented Jun 3, 2018 •

Hello, after last update I don’t see the status bar pio icons.. Project is open. In Atom it works fine but I’m already addict on VSC + Platformio. Any idea?

. later tonight: now it is displaying. Platformio was doing some other update, I have a very slow 3G internet.

ivankravets commented Jun 3, 2018

Could you try uninstall and install extension again?

gosouth commented Jun 3, 2018

Hello Ivan, thanks for your prompt response. I uninstalled it and noticed that the Extension C/C++ from Microsoft was installing very slow. Statusbar was at his minimum while downloading this MS extension. For very slow internet connection some message in the status bar would be nice.

Now it is working fine!!

IamPhytan commented Feb 1, 2019

Hello,
I have the same problem, but I don’t have any installation to wait for.

I can’t open PIO Home and I can’t use the commands from Command Palette.

ivankravets commented Feb 2, 2019

Could you provide console output from VSCode > Help > Toggle Developers Tool > Console?

IamPhytan commented Feb 2, 2019

I finally solved this problem.

  • Uninstall Platformio-IDE
  • Reload VS Code
  • Close and reopen VS Code
  • Install Platformio-IDE
  • Reload to activate

I think my problem was the fact that PlatformIO Core wasn’t updated and upgraded.

ivankravets commented Feb 2, 2019

Great! Happy coding with PlatformIO!

DmitryMaksakov commented May 9, 2019

I have the same problem as @gosouth. You are unable to work with PlatformIO if you have slow internet connection and vscode is downloading updates. This is an issue.

lobocobra commented Oct 19, 2019 •

same issue here 4.0.3 was installed without my permission and now I try since 5h to make it work.
=> I even try now the portable version and have the same issue

I can’t understand that an update is done without my permission. I wanted to change 1 line of code, a work of 2 min and end up in a desaster because the environment is not working.
=> I tried ll steps above and do not see the buttons to compile (yes it is a platformio project and yes it still works on my 2 other computers)

sleeply4cat commented Oct 19, 2019 •

Same issue at 1.9.1, after reinstalling

VSCode:
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 snap

DickSwart commented Oct 20, 2019

Same issue here:

Version: 1.39.2
Commit: 6ab598523be7a800d7f3eb4d92d7ab9a66069390
Date: 2019-10-15T15:33:00.827Z
Electron: 4.2.10
Chrome: 69.0.3497.128
Node.js: 10.11.0
V8: 6.9.427.31-electron.0
OS: Darwin x64 18.7.0

Читайте также:  Как отремонтировать потекшую стойку амортизатора

sivar2311 commented Oct 20, 2019

Version: 1.39.2 (user setup)
Commit: 6ab598523be7a800d7f3eb4d92d7ab9a66069390
Date: 2019-10-15T15:35:18.241Z
Electron: 4.2.10
Chrome: 69.0.3497.128
Node.js: 10.11.0
V8: 6.9.427.31-electron.0
OS: Windows_NT x64 10.0.18362

erhmeh commented Oct 20, 2019

Seems to be an issue with 1.9.1.

Fix for now is to roll back to 1.9.0. This can be done through the extensions tab and clicking the cog icon next to platformIO. Then click «Install another version. » then select 1.9.0.

ivankravets commented Oct 20, 2019

Sorry for the issue. 1.9.2 is out.

Ordsu72 commented Oct 20, 2019 •

I can’t install the new version:

Version: 1.39.2 (user setup)
Commit: 6ab598523be7a800d7f3eb4d92d7ab9a66069390
Date: 2019-10-15T15:35:18.241Z
Electron: 4.2.10
Chrome: 69.0.3497.128
Node.js: 10.11.0
V8: 6.9.427.31-electron.0
OS: Windows_NT x64 10.0.18362

Error: Could not create PIO Core Virtual Environment. Please create it manually -> http://bit.ly/pio-core-virtualenv Error: Virtualenv Create: Traceback (most recent call last): File «C:\Users\Ordsu72\.platformio\.cache\tmp-15384efYyQndJsBaZ\virtualenv-16.7.5\virtualenv.py», line 2632, in main() File «C:\Users\Ordsu72\.platformio\.cache\tmp-15384efYyQndJsBaZ\virtualenv-16.7.5\virtualenv.py», line 870, in main symlink=options.symlink, File «C:\Users\Ordsu72\.platformio\.cache\tmp-15384efYyQndJsBaZ\virtualenv-16.7.5\virtualenv.py», line 1156, in create_environment install_python(home_dir, lib_dir, inc_dir, bin_dir, site_packages=site_packages, clear=clear, symlink=symlink) File «C:\Users\Ordsu72\.platformio\.cache\tmp-15384efYyQndJsBaZ\virtualenv-16.7.5\virtualenv.py», line 1526, in install_python shutil.copyfile(executable, py_executable) File «C:\Users\Ordsu72\.platformio\python37\lib\shutil.py», line 121, in copyfile with open(dst, ‘w.

ivankravets commented Oct 20, 2019

What is your system Python? Try to remove all broken Pythons and restart VSCode

Ordsu72 commented Oct 20, 2019 •

I have no other Python installation on my machine just in the .platformio folder.
After removing the Python27 and Python37 folders from the .platformio and copied a new one (Python27) from another machine the installation can be finished.
Thank you for your advice.
Ordsu72

jhoughjr commented Dec 8, 2019

same issue here. just started this morning.

Recrera commented Oct 11, 2020

Can’t build due to no button for it. Is there an other way of building, so that one can use a workaround for now?

geeksville commented Oct 16, 2020

@Recrera you can run «pio run» at the command line.

But me too — the button just went away. I’ve been using platformio happily for a year and just treid all the work arounds without success this bug is back.

Urmaz commented Oct 19, 2020

Same issue on Ubuntu linux. After upgdate buttons are gone.
Yesterday updated VSC on my windows laptop and got same result. By some help could restore, but can’t remember, how :(.

ivankravets commented Oct 19, 2020

Please check an output in VSCode / Help / Developers tools / Console

geeksville commented Oct 19, 2020

@Urmaz see the new bug I just opened with clear steps to reproduce the bug and to bring the button back.

Urmaz commented Oct 20, 2020 •

Please check an output in VSCode / Help / Developers tools / Console

[Extension Host] Congratulations, your extension «C compiler» is now active!
console.ts:137 [Extension Host] activating extension
console.ts:137 [Extension Host] starting language server
console.ts:137 [Extension Host] (node:30089) [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 @ console.ts:70
log.ts:197 ERR Error: No authentication provider ‘microsoft’ is currently registered.
at E.getSessions (authenticationService.ts:471)
at async e.getAccounts (userDataSyncWorkbenchService.ts:203)
at async e.update (userDataSyncWorkbenchService.ts:188)
at async e.initialize (userDataSyncWorkbenchService.ts:159)
at async e.waitAndInitialize (userDataSyncWorkbenchService.ts:142)
log.ts:191 WARN Settings Sync: Accounts are not initialized
console.ts:137 [Extension Host] runCommand /usr/bin/python3 Array(2) Object
console.ts:137 [Extension Host] runCommand /usr/bin/python3 Array(8) Object
console.ts:137 [Extension Host] Found compatible PlatformIO Core 5.0.1 -> /home/urmas/.platformio/penv/bin/platformio
console.ts:137 [Extension Host] PIO Core State Object
console.ts:137 [Extension Host] runCommand /home/urmas/.platformio/penv/bin/python Array(10) Object
webviewElement.ts:150 [Embedded Page] A cookie associated with a cross-site resource at http://127.0.0.1/ was set without the SameSite attribute. A future release of Chrome will only deliver cookies with cross-site requests if they are set with SameSite=None and Secure . You can review cookies in developer tools under Application>Storage>Cookies and see more details at https://www.chromestatus.com/feature/5088147346030592 and https://www.chromestatus.com/feature/5633521622188032.
DevTools failed to load SourceMap: Could not load content for file:///usr/share/code/resources/app/node_modules.asar/semver-umd/lib/semver-umd.js.map:
DevTools failed to load SourceMap: Could not load content for file:///usr/share/code/resources/app/node_modules.asar/tas-client-umd/lib/tas-client-umd.js.map:
DevTools failed to load SourceMap: Could not load content for file:///usr/share/code/resources/app/node_modules.asar/vscode-textmate/release/main.js.map:
DevTools failed to load SourceMap: Could not load content for file:///usr/share/code/resources/app/node_modules.asar/xterm/lib/xterm.js.map:
DevTools failed to load SourceMap: Could not load content for file:///usr/share/code/resources/app/node_modules.asar/xterm-addon-unicode11/lib/xterm-addon-unicode11.js.map:
DevTools failed to load SourceMap: Could not load content for file:///usr/share/code/resources/app/node_modules.asar/xterm-addon-search/lib/xterm-addon-search.js.map:
DevTools failed to load SourceMap: Could not load content for file:///usr/share/code/resources/app/node_modules.asar/node-pty/lib/index.js.map:
DevTools failed to load SourceMap: Could not load content for file:///usr/share/code/resources/app/node_modules.asar/node-pty/lib/unixTerminal.js.map:
DevTools failed to load SourceMap: Could not load content for file:///usr/share/code/resources/app/node_modules.asar/node-pty/lib/terminal.js.map:
DevTools failed to load SourceMap: Could not load content for file:///usr/share/code/resources/app/node_modules.asar/node-pty/lib/eventEmitter2.js.map:
DevTools failed to load SourceMap: Could not load content for file:///usr/share/code/resources/app/node_modules.asar/node-pty/lib/utils.js.map:

Читайте также:  Hlamer ru красвью не работает

ivankravets commented Oct 20, 2020

@Urmaz please reset PlatformIO IDE settings in VSCode to the default. Click on that icon described below and check wat did you change.

Urmaz commented Oct 20, 2020

Set to default. Buttons still missing. Log:
[Extension Host] Congratulations, your extension «C compiler» is now active!
console.ts:137 [Extension Host] activating extension
console.ts:137 [Extension Host] starting language server
console.ts:137 [Extension Host] (node:526) [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 @ console.ts:70
console.ts:137 [Extension Host] runCommand /usr/bin/python3 Array(2) Object
console.ts:137 [Extension Host] runCommand /usr/bin/python3 Array(8) Object
DevTools failed to load SourceMap: Could not load content for file:///usr/share/code/resources/app/node_modules.asar/semver-umd/lib/semver-umd.js.map:
DevTools failed to load SourceMap: Could not load content for file:///usr/share/code/resources/app/node_modules.asar/xterm/lib/xterm.js.map:
DevTools failed to load SourceMap: Could not load content for file:///usr/share/code/resources/app/node_modules.asar/xterm-addon-unicode11/lib/xterm-addon-unicode11.js.map:
DevTools failed to load SourceMap: Could not load content for file:///usr/share/code/resources/app/node_modules.asar/xterm-addon-search/lib/xterm-addon-search.js.map:
DevTools failed to load SourceMap: Could not load content for file:///usr/share/code/resources/app/node_modules.asar/node-pty/lib/index.js.map:
DevTools failed to load SourceMap: Could not load content for file:///usr/share/code/resources/app/node_modules.asar/node-pty/lib/unixTerminal.js.map:
DevTools failed to load SourceMap: Could not load content for file:///usr/share/code/resources/app/node_modules.asar/node-pty/lib/terminal.js.map:
DevTools failed to load SourceMap: Could not load content for file:///usr/share/code/resources/app/node_modules.asar/node-pty/lib/eventEmitter2.js.map:
DevTools failed to load SourceMap: Could not load content for file:///usr/share/code/resources/app/node_modules.asar/node-pty/lib/utils.js.map:
DevTools failed to load SourceMap: Could not load content for file:///usr/share/code/resources/app/node_modules.asar/tas-client-umd/lib/tas-client-umd.js.map:
DevTools failed to load SourceMap: Could not load content for file:///usr/share/code/resources/app/node_modules.asar/vscode-textmate/release/main.js.map:
console.ts:137 [Extension Host] Found compatible PlatformIO Core 5.0.1 -> /home/urmas/.platformio/penv/bin/platformio
console.ts:137 [Extension Host] PIO Core State
console.ts:137 [Extension Host] runCommand /home/urmas/.platformio/penv/bin/python (10) [«-m», «platformio», «-c», «vscode», «home», «—port», 8010, «—shutdown-timeout», 3600, «—no-open»] <>
webviewElement.ts:150 [Embedded Page] A cookie associated with a cross-site resource at http://127.0.0.1/ was set without the SameSite attribute. A future release of Chrome will only deliver cookies with cross-site requests if they are set with SameSite=None and Secure . You can review cookies in developer tools under Application>Storage>Cookies and see more details at https://www.chromestatus.com/feature/5088147346030592 and https://www.chromestatus.com/feature/5633521622188032.

ivankravets commented Oct 20, 2020

Please read docs about how to use PlatformIO IE for VSCode:

I’m not sure that I understand which buttons do you mean.

Urmaz commented Oct 20, 2020 •

Bar on normal VSC:

Bar without upload and build buttons:

ivankravets commented Oct 20, 2020

See comment from 2018 year #111 (comment)

Urmaz commented Oct 20, 2020

@Urmaz see the new bug I just opened with clear steps to reproduce the bug and to bring the button back.

It’s not same case for me. Buttons disapeared with VSC update. Tried to disable all extensions, Uninstall PIO, Python, but it didn’t help.

ivankravets commented Oct 20, 2020

Please don’t spam. Your installation looks OK. I see HOME icon and it means that everything is OK.

Источник

Оцените статью