-
-
Notifications
You must be signed in to change notification settings - Fork 71
Failed to activate the platformio-ide package #94
Comments
I'm also having this issue. Pretty much the same circumstances. Windows 10 Home. Atom 1.7.0. Stack looks to be about the same. TypeError: Cannot read property 'indexOf' of undefined |
Same issue here. I have been using it for over a week with no problem. Even, this morning it started just fine. I had to restart the machine, and ever since I can't get it to work :( [Enter steps to reproduce below:]
Atom Version: 1.7.0 Stack TraceFailed to activate the platformio-ide package
Commands
Config{
"core": {},
"platformio-ide": {}
} Installed Packages# User
autocomplete-clang, v0.8.9
build, v0.59.0
language-ini, v1.16.0
linter, v1.11.4
linter-gcc, v0.6.9
platformio-ide, v1.1.1
platformio-ide-terminal, v2.0.3
tool-bar, v0.4.0
# Dev
No dev packages |
The problem is caused by new Atom 1.7.0 under Windows. Please use previous stable version 1.6.2 till we will fix issue. |
How does this explain why it has been working fine until now? Was there a "silent" update that I was not aware of? |
@viktak related issue atom/atom#11302 |
Thanks Ivan, I'll keep an eye on the development. |
@viktak Atom updates in the background using a library called Squirrel. |
Simple workaround for me was to edit my environment variables and change the case of my "Path" variable to "PATH" - restart to ensure the env got cleaned and Atom 1.7.0 is working with PlatformIO. My guess is that this is primarily affecting Win10 users because the default casing of the PATH var has changed to Path in this version. Likely commit atom/atom@8c53e25 was also required for this behavior to start manifesting. |
I have this problem under Windows 7 in VM. I'm working on the fix. |
I've just made hotfix to avoid this Atom's issue. However, we have problems with our PlatformIO Terminal too. |
Heh, just noticed the terminal thing, was hoping it was just me... appreciate the quick response in any event. I can help with test/repro if you need it. |
reverting back to 1.6.2 fixed it. You should be up and running again. Did not have to uninstall 1.7. |
Yes, I can confirm 1.6.2 works fine. I uninstalled 1.7 first, though, just in case.... |
@viktak, @zoulzubazz, @ayan4m1, @n6nq, @micaelc Please re-test the patch described in platformio/platformio-atom-ide-terminal#12 (comment) |
@ivankravets Changed my PATH back to Path, rebooted, ran Atom 1.7.0 in dev mode for this package - checked out the develop branch which contains the referenced commit and platformio initializes successfully. |
@ayan4m1 Great! But how about terminal? Does it work? Do you have installed Visual Studio in a system? |
Heh, just about to be work time where I am :) I have VS2015 with a working C++ toolchain but I won't have time to test for a few hours. |
@ayan4m1 thanks! 👍 Let's wait for @viktak, @zoulzubazz, @n6nq, @micaelc It should work without VS Studio and C++ toolchain too. |
Hello, i wasn't sure if i was suppose to comment on the patch thread or not so ill just put this here... I replaced my lib/main.js with the one linked(https://raw.githubusercontent.com/platformio/platformio-atom-ide/develop/lib/main.js) and get the same "Failed to activate..." error with a different stack trace. I do not have Visual Studio installed. Atom Version: 1.7.0 Stack TraceFailed to activate the platformio-ide package
Commands
Config{
"core": {}
} Installed Packages# User
autocomplete-clang, v0.8.9
build, v0.59.0
language-ini, v1.16.0
linter, v1.11.4
linter-gcc, v0.6.9
platformio-ide, v1.1.1
platformio-ide-terminal, v2.0.3
tool-bar, v0.4.0
# Dev
No dev packages |
Looks like you have broken file. Please update |
Well don't i feel smart... I just right clicked and 'saved as' and replaced the file this time rather than 'select all - copy- select all - paste' and it looks to be working fine. Sorry bout that. |
I'm afraid, this fix only allows PlatformIO to start without an error, but the terminal and anything that uses the terminal freezes. I tried terminal, serial port monitor, list serial ports and they all freeze. |
Friends, we are working on it... The problem is not linked only with atom/atom#11302 They also updated I can't imagine who allowed in Atom's maintainer group to release 1.7.0 with these issues. |
I have gotten the terminal working again in a dev environment. If you apm rebuild with the msbuild toolchain, you can get pty.js working again. More info when I have time to write it up. |
@ayan4m1 Could you share with us |
pty.zip |
It works for my Win7 in VM. Thanks. |
Can you tell me how to test it? I looked up my ~/.atom/packages/platformio-ide-terminal/node_modules/pty.js/build/Release folder, and it's empty. |
In the process of trying to find out more about this issue, I removed Atom from my PC, including the .atom directory. Then I went ahead and installed the Atom 1.6.2 and PlatformIO from scratch. Once all was finished I tried to launch a terminal (or anything else that uses the terminal window) and I get the following error message: As you can see on the screenshot, the package is clearly installed. Anybody has an idea what might be wrong? Since this morning things have been going from bad to worse... |
@ivankravets I think this is because you are preparing the new version, 2.0.4. |
I've just released PlatformIO Terminal 2.0.5 - please re-test it. If it works, I'll release IDE. Thanks. |
Downloading now, keep fingers crossed... |
@viktak looks like it also doesn't work. I've tried a lot of solutions today and can't find single which will work on both Atoms: 1.6 & 1.7. |
@ivankravets I'm afraid still the same issue. Tried it on Atom 1.7: |
@ivankravets Just tried it also in Atom 1.6.2, same problem |
@viktak do you see "red" 🐛 in the status bar? Bottom. |
@ivankravets Yes, now that you say it :) |
Rebuilt it, and now I am back to the stage whene the terminal pane freezes on launch :( |
Yessssss! I've just won it! I forked https://github.com/platformio/pty.js and forced it to work for Atom 1.6/1.7. Pelase re-test the latest PlatformIO IDE Terminal 2.0.9 |
@ivankravets Yessssss! you made it! I managed to get it to work with Atom 1.7 and terminal 2.0.9. I now how to go to bed, but tomorrow I'll double check it on my main machine too. Well done and thanks for all your efforts, Ivan! If there is anything I can help you with (mainly testing), give me a shout! |
@ivankravets ok, I can now confirm: 2.0.9 works with 1.7, but only if the patched lib/main.js is used. |
@viktak thanks for the testing. PlatformIO IDE 1.1.2 has not been released yet. I'm working on it. |
Please give us a star 🌟
Thanks in advance! |
Thanks so much for your fast action on this issue. As a gray beard programmer, it's always impressive to see dedication and enthusiasm. As a newbie to PlatformIO, it is heartening and encouraging your kick butt. Thanks again, Jon N6NQ On Thu, Apr 14, 2016 at 12:11 PM -0700, "Ivan Kravets" notifications@github.com wrote: Yessssss! I've just won it! I forked https://github.com/platformio/pty.js and forced it to work for Atom 1.6/1.7. Pelase re-test the latest PlatformIO IDE Terminal 2.0.8 — |
@n6nq Thanks a lot for the warm words! /all, I close this issue. PlatformIO IDE 1.1.2 is released. If you have any problems please open new issue. |
I just upgraded both ide and terminal to the latest versions and all went smoothly. Life is good again! :) |
same here !!! sun is shining again !!! |
I have raised this issue again at #493 because I'm having it. This comment is to link the issues. |
Temporary solution: #94 (comment)
[Enter steps to reproduce below:]
Atom Version: 1.7.0
System: Microsoft Windows 10 Home Insider Preview
Thrown From: platformio-ide package, v1.1.1
Stack Trace
Failed to activate the platformio-ide package
Commands
Config
Installed Packages
The text was updated successfully, but these errors were encountered: