platformio-atom-ide-terminal icon indicating copy to clipboard operation
platformio-atom-ide-terminal copied to clipboard

Terminal opens in external window (outside of atom)

Open josser900 opened this issue 5 years ago • 14 comments

  • [X] I have reset Atom to defaults prior to submitting report.
  • [ ] I have not reset Atom to defaults prior to submitting report.

Description

Everything was working great and then yesterday Windows 10 (x64) got updated to version 1903. Now when I try to open a terminal in Atom (1.40.1) I get the bottom panel with the non-responding blinking cursor and a separate powershell window opens outside of Atom.

Steps to reproduce

the issue you are reporting became apparent. You can add more steps as needed. -->

  1. Update window 10 to 1903
  2. Open Atom
  3. Press Ctrl+`

Expected behavior: Open terminal in bottom panel

Actual behavior: Terminal opens in separate window outside of atom.

Reproduces how often: Evey time.

Versions

atom --version Atom : 1.40.1 Electron: 3.1.10 Chrome : 66.0.3359.181 Node : 10.2.0

> apm --version

apm  2.4.3
npm  6.2.0
node 10.2.1 x64
atom 1.40.1
python
git 2.22.0.windows.1

OS name and version: Windows 10 pro x64 1903
Platformio-ide-terminal version: 2.9.4


josser900 avatar Aug 30 '19 15:08 josser900

Hello @josser and thanks for letting us know about this issue.

Its not a normal thing for sure, but from experience, Windows upgrades to 1903 have been buggy for a long time, so what you see is not related to Atom or platformio-ide-terminal.

What I recommend is that you reset Atom to defaults see http://flight-manual.atom.io/hacking-atom/sections/debugging/#reset-to-factory-defaults

If that doesnt work, redo that again uninstall Atom and delete all Atom associated directories that remain, reinstall Atom and try installing platformio-ide-terminal.

If That still doesnt work, complain to Microsoft. I bet their support crew will be happy to help you with resetting Windows or reinstalling or whatever solution they may see.

Feel free to update this issue with more information after you try these things. It will be of help maybe to others.

Have a nice weekend, if you can. For now bye,

the-j0k3r avatar Aug 31 '19 06:08 the-j0k3r

Thank you for the fast response. I'd already tried the Atom reset and just now completely removed and re-installed Atom with just this package installed. Still the same. I didn't really expect it to be an Atom or Platformio problem, I was more hoping that somebody would recognize this problem and might have a solution. I've only been using Platformio for a short time (just after the Atom 1.40.1 fix) and it still opens the terminal in the project folder, so that saves some time and typing. Not worth contacting Microsoft for and sure not re-installing Windows ;)

josser900 avatar Aug 31 '19 23:08 josser900

I have Atom + platformio-ide-terminal working on Windows 1903, but it wasnt an automatic upgrade, I manually upgraded, It was also a VM for testing to see if I could find any such issues, sadly no, it works.

I'l leave this open for now maybe someone has some other suggestions. Fingers crossed.

the-j0k3r avatar Sep 01 '19 05:09 the-j0k3r

If you have mcaffee try to whitelist platformio-ide-terminal folder, also you may want to add a -NoLogo switch to platformio-ide-terminal settings.

See https://github.com/platformio/platformio-atom-ide-terminal/issues/668 (pinned issue) it has various workarounds that may help, including the ones I mentioned above.

Also you may want to uninstall Atom completely, really remove all its directories left behind and use chocolatey to install Atom instead. I found that in my first experiment, Atom official setup.exe failed to install properly or sometimes to actually install. Chocolatey was a stable way to get Atom working.

Not worth contacting Microsoft for and sure not re-installing Windows ;)

I understand both points, but when these issues arise, if you cant handle workarounds or fixes yourself, the result is long standing issues.

I could also recommend a Linux virtualbox machine and run Atom from there, its far more stable IMO in Linux than Windows.

Do please update thread with your findings. DOnt hesitate to share any insights and lists of external software you have that may (like mcaffee) interfere with Atom + this terminal.

Good luck.

the-j0k3r avatar Sep 01 '19 08:09 the-j0k3r

I use Avast instead of McAffee but tried disabling it and excluding the indicated folder. I tried the -NoLogo setting I tried the complete uninstall of Atom and using Chocolatey to install it. All with no success. I use several VM's for small tasks but unfortunately is not an option for me to work full time in an VM with Atom. Thank you very much for the help but it seems that the windows upgrade messed something up..

josser900 avatar Sep 01 '19 19:09 josser900

I use several VM's for small tasks but unfortunately is not an option for me to work full time in an VM with Atom.

It was a suggestion that could tidy you up until there's a way around the issue that you're comfortable with.

Thank you very much for the help but it seems that the windows upgrade messed something up..

Youre welcome in any case. It was obvious to me that also it was the Windows upgrade, but I cant forget past issues that may hold some clew, but its your choice on how to proceed from here.

Ill leave this open in the meantime, maybe someone who has some other suggestion can chime in, or if something else occurs to me, Ill be sure to reply also.

Please dont hesitate to update here if situation changes.

the-j0k3r avatar Sep 01 '19 19:09 the-j0k3r

@josser900 Can you check if KB4512941 is installed? IF not Try to get it via autoupdates. I wonder if that patch has any bearing on the issue plaguing you.

the-j0k3r avatar Sep 02 '19 10:09 the-j0k3r

This didn't help (it is giving me the high cpu load too that's in the news right now so I'm going to uninstall it again)

josser900 avatar Sep 02 '19 13:09 josser900

Sorry to hear that. Re: hi cpu load you can set bing as default search engine in meantime, solutions on web regarding this, so excuse me for not parroting some other web page on the subject, you may also have read it idk., Me I just disable cortana altogether via group policy and reg tweak.

the-j0k3r avatar Sep 02 '19 17:09 the-j0k3r

Seems issue is related to a bad Windows upgrade. There nothing else we can do here, so only recourse is up to you.

I would also suggest you uninstall Atom and remove all atom installation folders completely and then try with Atom 1.39.1 and platformio-ide-terminal 2.9.4.

Fell free to update ticket with newer information if it magically fixes itself.

Thanks for understanding.

the-j0k3r avatar Sep 14 '19 06:09 the-j0k3r

have you tried opening a windows cmd prompt, going into properties, unchecking "use legacy console" and then restart atom and open the terminal?

dwildbore avatar Oct 09 '19 23:10 dwildbore

have you tried opening a windows cmd prompt, going into properties, unchecking "use legacy console" and then restart atom and open the terminal?

That worked for me!

MarioPaucarG avatar Oct 10 '19 00:10 MarioPaucarG

Yes, that did it!! Thank you very much.

On Thu, Oct 10, 2019 at 2:54 AM Mario [email protected] wrote:

have you tried opening a windows cmd prompt, going into properties, unchecking "use legacy console" and then restart atom and open the terminal?

That worked for me!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/platformio/platformio-atom-ide-terminal/issues/780?email_source=notifications&email_token=AJBA7PU6N24UTQ3OIU74SUTQNZ4MDA5CNFSM4ISOKUZ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAZ6O7Q#issuecomment-540272510, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJBA7PVN3B5UAMDPKUYZWALQNZ4MDANCNFSM4ISOKUZQ .

josser900 avatar Oct 10 '19 01:10 josser900

have you tried opening a windows cmd prompt, going into properties, unchecking "use legacy console" and then restart atom and open the terminal?

I had the same problem with VSCode, and it fixed it!

roy-zahor avatar Dec 16 '19 08:12 roy-zahor