{"action":"opened","issue":{"url":"https://api.github.com/repos/platformio/platformio-core/issues/1598","repository_url":"https://api.github.com/repos/platformio/platformio-core","labels_url":"https://api.github.com/repos/platformio/platformio-core/issues/1598/labels{/name}","comments_url":"https://api.github.com/repos/platformio/platformio-core/issues/1598/comments","events_url":"https://api.github.com/repos/platformio/platformio-core/issues/1598/events","html_url":"https://github.com/platformio/platformio-core/issues/1598","id":318653152,"number":1598,"title":"PlatformIO: Update platforms, libs and packages doesn’t work after VSCode update","user":{"login":"DJManas","id":2048276,"avatar_url":"https://avatars2.githubusercontent.com/u/2048276?v=4","gravatar_id":"","url":"https://api.github.com/users/DJManas","html_url":"https://github.com/DJManas","followers_url":"https://api.github.com/users/DJManas/followers","following_url":"https://api.github.com/users/DJManas/following{/other_user}","gists_url":"https://api.github.com/users/DJManas/gists{/gist_id}","starred_url":"https://api.github.com/users/DJManas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DJManas/subscriptions","organizations_url":"https://api.github.com/users/DJManas/orgs","repos_url":"https://api.github.com/users/DJManas/repos","events_url":"https://api.github.com/users/DJManas/events{/privacy}","received_events_url":"https://api.github.com/users/DJManas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-28T17:10:31Z","updated_at":"2018-04-28T17:10:31Z","closed_at":null,"author_association":"NONE","body":"What kind of issue is this?\r\n\r\n- [ ] Question. This issue tracker is not the place for questions. If you want to ask how to do\r\n      something, or to understand why something isn't working the way you expect it to, use\r\n      our Community Forums https://community.platformio.org\r\n\r\n- [ ] PlatformIO IDE. All issues related to PlatformIO IDE should be reported to appropriate repository\r\n      https://github.com/platformio/platformio-atom-ide/issues\r\n\r\n- [ ] Development Platform or Board. All issues related to Development Platforms or Embedded Boards\r\n      should be reported to appropriate repository. \r\n      See full list with repositories and search for \"platform-xxx\" repository related to your hardware\r\n      https://github.com/platformio?query=platform-\r\n\r\n- [ ] Feature Request. Start by telling us what problem you’re trying to solve. Often a solution\r\n      already exists! Don’t send pull requests to implement new features without first getting our\r\n      support. Sometimes we leave features out on purpose to keep the project small.\r\n\r\n- [X] PlatformIO Core. If you’ve found a bug, please provide an information below.\r\n\r\n*You can erase any parts of this template not applicable to your Issue.*\r\n\r\n------------------------------------------------------------------\r\n\r\n### Configuration\r\n\r\n**Operating system**: MacOS 10.13.4\r\n\r\n**PlatformIO Version** (`platformio --version`): PlatformIO, version 3.5.3b1\r\n\r\n```\r\n### Description of problem\r\nWhen in VSCode I give cmd+shift+p and select PlatformIO: **Platformio: Update installed platforms, packages and libraries** I get this error\r\n\r\nError: Traceback (most recent call last):\r\n  File \"/Users/djmanas/.platformio/penv/lib/python2.7/site-packages/platformio/__main__.py\", line 120, in main\r\n    cli(None, None, None)\r\n  File \"/Users/djmanas/.platformio/penv/lib/python2.7/site-packages/click/core.py\", line 700, in __call__\r\n    return self.main(*args, **kwargs)\r\n  File \"/Users/djmanas/.platformio/penv/lib/python2.7/site-packages/click/core.py\", line 680, in main\r\n    rv = self.invoke(ctx)\r\n  File \"/Users/djmanas/.platformio/penv/lib/python2.7/site-packages/click/core.py\", line 1027, in invoke\r\n    return _process_result(sub_ctx.command.invoke(sub_ctx))\r\n  File \"/Users/djmanas/.platformio/penv/lib/python2.7/site-packages/click/core.py\", line 873, in invoke\r\n    return ctx.invoke(self.callback, **ctx.params)\r\n  File \"/Users/djmanas/.platformio/penv/lib/python2.7/site-packages/click/core.py\", line 508, in invoke\r\n    return callback(*args, **kwargs)\r\n  File \"/Users/djmanas/.platformio/penv/lib/python2.7/site-packages/click/decorators.py\", line 16, in new_func\r\n    return f(get_current_context(), *args, **kwargs)\r\n  File \"/Users/djmanas/.platformio/penv/lib/python2.7/site-packages/platformio/commands/update.py\", line 46, in cli\r\n    ctx.invoke(cmd_platform_update, only_check=only_check)\r\n  File \"/Users/djmanas/.platformio/penv/lib/python2.7/site-packages/click/core.py\", line 508, in invoke\r\n    return callback(*args, **kwargs)\r\n  File \"/Users/djmanas/.platformio/penv/lib/python2.7/site-packages/platformio/commands/platform.py\", line 385, in platform_update\r\n    platform, only_packages=only_packages, only_check=only_check)\r\n  File \"/Users/djmanas/.platformio/penv/lib/python2.7/site-packages/platformio/managers/platform.py\", line 132, in update\r\n    self.cleanup_packages(p.packages.keys())\r\n  File \"/Users/djmanas/.platformio/penv/lib/python2.7/site-packages/platformio/managers/platform.py\", line 144, in cleanup_packages\r\n    p = PlatformFactory.newPlatform(manifest['__pkg_dir'])\r\n  File \"/Users/djmanas/.platformio/penv/lib/python2.7/site-packages/platformio/managers/platform.py\", line 250, in newPlatform\r\n    _instance = platform_cls(join(platform_dir, \"platform.json\"))\r\n  File \"/Users/djmanas/.platformio/penv/lib/python2.7/site-packages/platformio/managers/platform.py\", line 460, in __init__\r\n    self._manifest = util.load_json(manifest_path)\r\n  File \"/Users/djmanas/.platformio/penv/lib/python2.7/site-packages/platformio/util.py\", line 169, in load_json\r\n    with open(file_path, \"r\") as f:\r\nIOError: [Errno 2] No such file or directory: '/Users/djmanas/.platformio/platforms/esp-idf/platform.json'\r\n\r\n============================================================\r\n\r\nAn unexpected error occurred. Further steps:\r\n\r\n* Verify that you have the latest version of PlatformIO using\r\n  `pip install -U platformio` command\r\n\r\n* Try to find answer in FAQ Troubleshooting section\r\n  http://docs.platformio.org/page/faq.html\r\n\r\n* Report this problem to the developers\r\n  https://github.com/platformio/platformio-core/issues\r\n\r\n============================================================\r\n```\r\n\r\n#### Steps to Reproduce\r\n\r\n1. I had upgraded to new version of plugin, reloaded\r\n2. pressed cmd+shift+p\r\n3. selected Platformio: Update installed platforms, packages and libraries\r\n\r\n### Actual Results\r\n```\r\nError: Traceback (most recent call last):\r\n  File \"/Users/djmanas/.platformio/penv/lib/python2.7/site-packages/platformio/__main__.py\", line 120, in main\r\n    cli(None, None, None)\r\n  File \"/Users/djmanas/.platformio/penv/lib/python2.7/site-packages/click/core.py\", line 700, in __call__\r\n    return self.main(*args, **kwargs)\r\n  File \"/Users/djmanas/.platformio/penv/lib/python2.7/site-packages/click/core.py\", line 680, in main\r\n    rv = self.invoke(ctx)\r\n  File \"/Users/djmanas/.platformio/penv/lib/python2.7/site-packages/click/core.py\", line 1027, in invoke\r\n    return _process_result(sub_ctx.command.invoke(sub_ctx))\r\n  File \"/Users/djmanas/.platformio/penv/lib/python2.7/site-packages/click/core.py\", line 873, in invoke\r\n    return ctx.invoke(self.callback, **ctx.params)\r\n  File \"/Users/djmanas/.platformio/penv/lib/python2.7/site-packages/click/core.py\", line 508, in invoke\r\n    return callback(*args, **kwargs)\r\n  File \"/Users/djmanas/.platformio/penv/lib/python2.7/site-packages/click/decorators.py\", line 16, in new_func\r\n    return f(get_current_context(), *args, **kwargs)\r\n  File \"/Users/djmanas/.platformio/penv/lib/python2.7/site-packages/platformio/commands/update.py\", line 46, in cli\r\n    ctx.invoke(cmd_platform_update, only_check=only_check)\r\n  File \"/Users/djmanas/.platformio/penv/lib/python2.7/site-packages/click/core.py\", line 508, in invoke\r\n    return callback(*args, **kwargs)\r\n  File \"/Users/djmanas/.platformio/penv/lib/python2.7/site-packages/platformio/commands/platform.py\", line 385, in platform_update\r\n    platform, only_packages=only_packages, only_check=only_check)\r\n  File \"/Users/djmanas/.platformio/penv/lib/python2.7/site-packages/platformio/managers/platform.py\", line 132, in update\r\n    self.cleanup_packages(p.packages.keys())\r\n  File \"/Users/djmanas/.platformio/penv/lib/python2.7/site-packages/platformio/managers/platform.py\", line 144, in cleanup_packages\r\n    p = PlatformFactory.newPlatform(manifest['__pkg_dir'])\r\n  File \"/Users/djmanas/.platformio/penv/lib/python2.7/site-packages/platformio/managers/platform.py\", line 250, in newPlatform\r\n    _instance = platform_cls(join(platform_dir, \"platform.json\"))\r\n  File \"/Users/djmanas/.platformio/penv/lib/python2.7/site-packages/platformio/managers/platform.py\", line 460, in __init__\r\n    self._manifest = util.load_json(manifest_path)\r\n  File \"/Users/djmanas/.platformio/penv/lib/python2.7/site-packages/platformio/util.py\", line 169, in load_json\r\n    with open(file_path, \"r\") as f:\r\nIOError: [Errno 2] No such file or directory: '/Users/djmanas/.platformio/platforms/esp-idf/platform.json'\r\n\r\n============================================================\r\n\r\nAn unexpected error occurred. Further steps:\r\n\r\n* Verify that you have the latest version of PlatformIO using\r\n  `pip install -U platformio` command\r\n\r\n* Try to find answer in FAQ Troubleshooting section\r\n  http://docs.platformio.org/page/faq.html\r\n\r\n* Report this problem to the developers\r\n  https://github.com/platformio/platformio-core/issues\r\n\r\n============================================================\r\n```\r\n\r\n### Expected Results\r\nPlatforms, libs, etc updated\r\n\r\n### If problems with PlatformIO Build System:\r\n\r\n**The content of `platformio.ini`:**\r\n```N/A\r\n```\r\n\r\n**Source file to reproduce issue:**\r\n```N/A\r\n```\r\n\r\n### Additional info\r\nI had messed with ESPIDF framework to let latest json, but version from git. It didn’t work out so I had deleted platform-espidf folder, opened ESP32 project and gave compile to let PIO download correct verison of this package. After downloading and restarting of VSCode it is still the same."}}
{"actor":{"display_login":"DJManas"}}