Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Terminal not working in Atom 1.7beta #201

Open
ShMcK opened this issue Mar 18, 2016 · 80 comments
Open

Terminal not working in Atom 1.7beta #201

ShMcK opened this issue Mar 18, 2016 · 80 comments

Comments

@ShMcK
Copy link

@ShMcK ShMcK commented Mar 18, 2016

Opening terminal-plus in Atom 1.7beta results in an empty terminal. Typing has no effect.
OS: Mac 10.11.13

screen shot 2016-03-18 at 10 45 05 am

@atomi
Copy link

@atomi atomi commented Mar 19, 2016

terminal-plus 0.14.5

pty.js@0.3.0 – Module version mismatch. Expected 47, got 46.
pty.js@0.3.0 – Module version mismatch. Expected 47, got 46.
pty.js@0.3.0 – Module version mismatch. Expected 47, got 46.
pty.js@0.3.0 – Module version mismatch. Expected 47, got 46.
pty.js@0.3.0 – Module version mismatch. Expected 47, got 46.
pty.js@0.3.0 – Module version mismatch. Expected 47, got 46.
pty.js@0.3.0 – Module version mismatch. Expected 47, got 46.
@ShMcK
Copy link
Author

@ShMcK ShMcK commented Mar 19, 2016

@atomi: Your issue seems to be related to the Chrome version wanted by Electron.

You might be able to fix that in terminal by running:

apm rebuild terminal-plus

If that doesn't work, try removing terminal-plus and re-installing.

@atomi
Copy link

@atomi atomi commented Mar 19, 2016

@ShMcK Rebuilding did the trick. Thanks!

@tomByrer
Copy link

@tomByrer tomByrer commented Mar 20, 2016

On OSX, removing & re-installing didn't work, & apm can't be found even after adding shell commands in Atom. (unless I have to reboot after?)

@dpavlic
Copy link

@dpavlic dpavlic commented Mar 20, 2016

I'm afraid that: apm-beta rebuild terminal-plus does not fix this for me on Ubuntu 15.10 or Arch.

@raptor235
Copy link

@raptor235 raptor235 commented Mar 24, 2016

Confirmed same here, no luck with the rebuild, I can't even uninstall terminal-plus... getting

Failed to delete terminal-plus: Does not exist
Community Packages1/22
0.14.566,176
terminal-plus A terminal package for Atom, complete with themes and more.
jeremyramin
SettingsUninstallDisable
Core Packages0/77
Development Packages0/0
Git Packages0/0

So can't use it and can't delete it atm

@opensourceportfolio
Copy link

@opensourceportfolio opensourceportfolio commented Mar 31, 2016

I am experiencing the same issue.

to remove it I ran install again first. Then I was able to uninstall.

@elebumm
Copy link

@elebumm elebumm commented Apr 2, 2016

I am getting the same issue.
screen shot 2016-04-02 at 1 57 59 am

I am using atom 1.7 beta on Mac OS X . I have rebuilt, uninstalled and reinstalled and all haven't worked.

@Hazerd
Copy link

@Hazerd Hazerd commented Apr 8, 2016

I am having the same issue. Rebuilding, reinstalling, and even reinstalling Atom have not worked.
I am using v1.7.0-beta4 on Windows 10
Here is the output of the console when I attempt to open the terminal.

WARN: Cannot find module '../build/Release/pty.node'

ERRORS:

Module version mismatch. Expected 47, got 46. Error: Module version mismatch. Expected 47, got 46.
    at Error (native)
    at process.module.(anonymous function) [as dlopen] (ATOM_SHELL_ASAR.js:159:20)
    at Object.Module._extensions..node (module.js:450:18)
    at Object.module.(anonymous function) [as .node] (ATOM_SHELL_ASAR.js:159:20)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:313:12)
    at Module.require (module.js:366:17)
    at require (module.js:385:17)
    at Object.<anonymous> (C:\Users\daniel\.atom\packages\terminal-plus\node_modules\pty.js\lib\pty.js:17:9)
    at Module._compile (module.js:425:26)
    at Object.defineProperty.value [as .js] (C:\Users\daniel\AppData\Local\atom\app-1.7.0-beta4\resources\app.asar\src\compile-cache.js:208:21)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:313:12)
    at Module.require (module.js:366:17)
    at require (module.js:385:17)
    at Object.<anonymous> (C:\Users\daniel\.atom\packages\terminal-plus\node_modules\pty.js\lib\pty_win.js:10:20)
    at Module._compile (module.js:425:26)
    at Object.defineProperty.value [as .js] (C:\Users\daniel\AppData\Local\atom\app-1.7.0-beta4\resources\app.asar\src\compile-cache.js:208:21)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:313:12)
    at Module.require (module.js:366:17)
    at require (module.js:385:17)
    at Object.<anonymous> (C:\Users\daniel\.atom\packages\terminal-plus\node_modules\pty.js\index.js:2:18)
    at Module._compile (module.js:425:26)
    at Object.defineProperty.value [as .js] (C:\Users\daniel\AppData\Local\atom\app-1.7.0-beta4\resources\app.asar\src\compile-cache.js:208:21)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:313:12)
    at Module.require (module.js:366:17)
    at require (module.js:385:17)
    at Object.<anonymous> (file:///C:/Users/daniel/.atom/packages/terminal-plus/lib/process.coffee:1:7)

Cannot read property 'bind' of null TypeError: Cannot read property 'bind' of null
    at process.<anonymous> (C:\Users\daniel\AppData\Local\atom\app-1.7.0-beta4\resources\app.asar\src\task-bootstrap.js:82:23)
    at emitTwo (events.js:87:13)
    at process.emit (events.js:172:7)
    at handleMessage (internal/child_process.js:686:10)
    at Pipe.channel.onread (internal/child_process.js:440:11)
@voliva
Copy link

@voliva voliva commented Apr 8, 2016

I managed to make it work. It looks like a pty.js dependency is outdated.
In my case, I went to terminal-plus folder (In my computer is /Users/victor/.atom/packages/terminal-plus), removed node-modules folder and did npm install. Now it works again.
However, I don't understand why... I tried rebuilding, uninstalling & installing the plugin again and it didn't work... Shouldn't these steps reset the node-modules folder?

@Nemesis9765
Copy link

@Nemesis9765 Nemesis9765 commented Apr 8, 2016

Running into the same problem myself as reported in issue #209 . Tried what @voliva mentioned, removed my node_modules from the terminal-plus package dir, ran npm install and apm-beta rebuild terminal-plus for safe measure but still won't work for me.

@voliva
Copy link

@voliva voliva commented Apr 11, 2016

@Nemesis9765 Did you look at the console output? Maybe we have some hint in there.
In my case I had the same error as @Hazerdous, and I could trace the source of the problem from there.
To show the console, in Mac you use Cmd+Alt+i and then open a terminal for the error to show up... In other systems try the shortcut to open Chrome's dev console.

@Nemesis9765
Copy link

@Nemesis9765 Nemesis9765 commented Apr 11, 2016

@voliva, i have the same issue as others about the expected version issue,

Module version mismatch. Expected 47, got 46. Error: Module version mismatch. Expected 47, got 46.
    at Error (native)
    at process.module.(anonymous function) [as dlopen] (ATOM_SHELL_ASAR.js:159:20)
    at Object.Module._extensions..node (module.js:450:18)
    at Object.module.(anonymous function) [as .node] (ATOM_SHELL_ASAR.js:159:20)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:313:12)
    at Module.require (module.js:366:17)
    at require (module.js:385:17)
    at Object.<anonymous> (/Users/fedorr/.atom/packages/terminal-plus/node_modules/pty.js/lib/pty.js:17:9)
...
@paglias
Copy link

@paglias paglias commented Apr 13, 2016

Same problem here

@elistone
Copy link

@elistone elistone commented Apr 14, 2016

Version 1.7.0 has now been rolled out from BETA, now will be broken by everyone who updates to latest atom version? - broken on mine same issues as above.

@sgal
Copy link

@sgal sgal commented Apr 14, 2016

I just installed fresh stable Atom 1.7.0 and it is broken. Tried apm rebuild terminal-plus and npm install in package folder - nothing works.

@muhd-ali
Copy link

@muhd-ali muhd-ali commented Apr 14, 2016

having same problem here. Was really enjoying the package.

@muhd-ali
Copy link

@muhd-ali muhd-ali commented Apr 14, 2016

it deleted the node_modules folder from terminal-plus folder and ran npm install. It says:

MSBUILD : error MSB3428: Could not load the Visual C++ component "VCBuild.exe". To fix this, 1) install the .NET Framework 2.0 SDK, 2) install Microsoft Visual Studio
2005 or 3) add the location of the component to the system path if it is installed elsewhere.

The package was working seamlessly until yesterday. Has anyone been able to resolve the issue?

@ivankravets
Copy link

@ivankravets ivankravets commented Apr 14, 2016

Friends,

Please take a look at PlatformIO fork https://github.com/platformio/platformio-atom-ide-terminal

We forked this repo a few months ago and support it. Also, we have just released a new version that works with Atom 1.6+.

@muhd-ali
Copy link

@muhd-ali muhd-ali commented Apr 15, 2016

@ivankravets Thankyou very much.

@spryce
Copy link

@spryce spryce commented Apr 18, 2016

Same problem here. After trying all of the above I managed to reinstall after deleting terminal-plus from the .apm directory, but still no good.

Going to try the PlatformIO fork from @ivankravets

@primaulia
Copy link

@primaulia primaulia commented Apr 18, 2016

Updated my atom to version 1.7.1 tried to delete the node modules and npm i on the package folder. Not working.

Tried to run apm rebuild terminal-plus also not working. Is this atom version issue?

@muhd-ali
Copy link

@muhd-ali muhd-ali commented Apr 18, 2016

@ivankravets could you please fix the following in your package?

  1. Place the close all icon away from the opened windows
  2. The terminal won't start until I open a folder in atom. Let it start even if no folder is open.
  3. When I adjust the height of one terminal, all other opened instances should update their height

These things had been addressed in the original terminal-plus and I am missing them in your fork.

@ivankravets
Copy link

@ivankravets ivankravets commented Apr 18, 2016

@muhd-ali
Copy link

@muhd-ali muhd-ali commented Apr 19, 2016

Still not working with Atom 1.7.2.

@Nemesis9765
Copy link

@Nemesis9765 Nemesis9765 commented Apr 21, 2016

So should this package be marked as abandoned and I move onto this other terminal package? Been nearly a month and no movement on this.

@avatsaev
Copy link

@avatsaev avatsaev commented Sep 30, 2016

shit isn working yo

same problem with mismatch, none of the solutions here helped.

@MarcusWasTaken
Copy link

@MarcusWasTaken MarcusWasTaken commented Sep 30, 2016

The most likely fix was posted in another issue by user @codevinsky
#321 (comment)

and a typo from the user, in the first terminal command:
cd ~/.atom/packages/terminal-plus/pty.js

should be
cd ~/.atom/packages/terminal-plus/node-modules/pty.js

@shoedog
Copy link

@shoedog shoedog commented Oct 12, 2016

I have tried apm rebuild, uninstalling and reinstalling on my mac running El Capitan. I will just use a different terminal option.

@pganeshGapps
Copy link

@pganeshGapps pganeshGapps commented Oct 17, 2016

Bye-bye Terminal plus, use
Same problem as just opens terminal, no commands are read on it,on Linux Ubuntu 16.04 and Atom -v:
Atom : 1.9.9
Electron: 0.37.8
Chrome : 49.0.2623.75
Node : 5.10.0

@georgealton
Copy link

@georgealton georgealton commented Oct 26, 2016

I have the same issue

osx 10.12
atom 1.11.2
terminal-plus 0.14.5

terminal-plus-terminal-not-working-issue

@mythical-programmer
Copy link

@mythical-programmer mythical-programmer commented Oct 27, 2016

platform io ide terminal is the way to go.

@sclausen
Copy link

@sclausen sclausen commented Nov 8, 2016

It would be so great if this gets fixed.

@avatsaev
Copy link

@avatsaev avatsaev commented Nov 11, 2016

FIY https://atom.io/packages/tokamak-terminal works great.

not with the latest version of atom it doesn't

@avatsaev
Copy link

@avatsaev avatsaev commented Nov 11, 2016

ok but it doesn't matter anymore, just installed platform-io-ide-terminal, seems to work fine

@UncleRemus
Copy link

@UncleRemus UncleRemus commented Nov 11, 2016

Same issue. Guessing this package is no longer maintained.

@vasiliy0s
Copy link

@vasiliy0s vasiliy0s commented Nov 15, 2016

The problem is with pty.js on bulding this module (recipe for target ... failed):

~/.atom/packages/terminal-plus$ npm i pty.js

> pty.js@0.3.0 install /home/vasiliy0s/.atom/packages/terminal-plus/node_modules/pty.js
> (node-gyp rebuild 2> builderror.log) || (exit 0)

make: вход в каталог «/home/vasiliy0s/.atom/packages/terminal-plus/node_modules/pty.js/build»
  CXX(target) Release/obj.target/pty/src/unix/pty.o
pty.target.mk:88: ошибка выполнения рецепта для цели «Release/obj.target/pty/src/unix/pty.o»
make: выход из каталога «/home/vasiliy0s/.atom/packages/terminal-plus/node_modules/pty.js/build»

> pty.js@0.3.0 postinstall /home/vasiliy0s/.atom/packages/terminal-plus/node_modules/pty.js
> node scripts/post-install.js

After it, the lib/pty.js cannot require nothing .node file and fail on terminal opening.

@vasiliy0s
Copy link

@vasiliy0s vasiliy0s commented Nov 15, 2016

This problem happend for me after upgrading to Atom 1.12. I find solution in vertexclique/tokamak-terminal#10 (comment) and it works for terminal-plus too. It uses pre-build pty.js and it should work for anymore.

@ataraxus
Copy link

@ataraxus ataraxus commented Nov 16, 2016

its also broken for me, ubunut 16.04 atom 1.12
kudos @ivankravets your fork does the job

@ivankravets
Copy link

@ivankravets ivankravets commented Nov 16, 2016

Dear Participants,

Next time when you have problems with Terminal, please do the next steps:

  1. Install https://github.com/platformio/platformio-atom-ide-terminal
  2. If step No.1 don't help, please go to step No.3
  3. Install gcc (Unix) or MS VS Studio (Windows)
  4. Go to Atom Settigs ( ) > Packages and UNINSTALL platformio-ide-terminal. Close Atom.
  5. Start Atom and install platformio-ide-terminal again.

We have pre-built PTY binaries for the most popular OSs. Howerver, if you use specific Linux distribution that depends on own Atom/node.js/nan, you need to have native PTY binary.


Each time when you install platformio-ide-terminal from a scratch, installer does the next job:

  1. Looks for compiler on the host machine.
  2. Tries to build native PTY module using system compiler (should be visible in the $PATH/%(Path))
  3. Atom initializes platformio-ide-terminal which tries to load PTY module "on-the-fly" and platformio-ide-terminal looks for native binary (if it was successfully compiled, see step No.2 above), and only at the end it looks for pre-built binaries by @platformio Team.

The our latest binaries should work in 99%. The only one exclusion is specific Linux distributive. Current Linux binary is compiled for Ubuntu x86_64.

Regards, Ivan.

@bitclaw
Copy link

@bitclaw bitclaw commented Jan 25, 2017

Installing platformio-ide-terminal and uninstalling terminal-plus worked for me 👍

@AlessandroMinoccheri
Copy link

@AlessandroMinoccheri AlessandroMinoccheri commented Jan 30, 2017

Uninstalled terminal-plus, installed platformio-ide-terminal and now works like a charm!
Thanks

@ryankazokas
Copy link

@ryankazokas ryankazokas commented Feb 4, 2017

Same issue.
platformio-ide-terminal worked for me as well

@RTJ
Copy link

@RTJ RTJ commented Feb 5, 2017

Same issue.
platformio-ide-terminal is working for me.

@wsfuller
Copy link

@wsfuller wsfuller commented Feb 5, 2017

Same issue with package being installed and empty prompt with inability to type anything on MacOS 10.12.3 Atom 1.13.1 x64.

uninstalled terminal-plus, platformio-ide-terminal installed and is working as expected

@PabloEzequiel
Copy link

@PabloEzequiel PabloEzequiel commented Feb 24, 2017

I also uninstalled terminal-plus,
And I installed the other plugin platformio-ide-terminal and is working ... this is a fork of terminal plus and it works ok ...

@eni23
Copy link

@eni23 eni23 commented Feb 28, 2017

Same issue on Archlinux with Atom 1.14 from the Community-Repo. It worked fine with atom-git from AUR, but this was always a pain to update.
I uninstalled terminal-plus, and platformio-ide-terminal seems to works fine

@vitt82
Copy link

@vitt82 vitt82 commented Mar 12, 2017

platformio-ide-terminal is working for me.

@HauntedSmores
Copy link

@HauntedSmores HauntedSmores commented Apr 3, 2017

Bump for same issue. Blank terminal

@SecondeJK
Copy link

@SecondeJK SecondeJK commented Apr 13, 2017

I have switched to the platformio-ide-terminal fork of this which works. This package does not work (OSX 10.11). This problem is over a year old, I'd recommend either maintaining it or asking what they did on that fork and merge it in

@prudhvirajmudunuri
Copy link

@prudhvirajmudunuri prudhvirajmudunuri commented Apr 13, 2017

platformio-ide-terminal works!!! I am using ubuntu 16.04

@besopmac
Copy link

@besopmac besopmac commented Apr 19, 2017

Just install the platformio-ide-terminal, guys. It works.

@internalfx
Copy link

@internalfx internalfx commented Aug 15, 2017

Switched to Termination... Works great.

https://github.com/Fred-Barclay/Termination

@abhishekK50
Copy link

@abhishekK50 abhishekK50 commented Sep 2, 2017

Uninstalling and installing it again worked for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
You can’t perform that action at this time.