Coder Social home page Coder Social logo

atom-xterm's People

Contributors

abe33 avatar aki77 avatar azerothian avatar captainbeyondds8 avatar chamini2 avatar clhynfield avatar dwb avatar f avatar ggreer avatar gusnips avatar kankaristo avatar kans avatar kylepdavis avatar mattdelliott avatar maxbook avatar moox avatar nickchristensen avatar rhcarvalho avatar robberphex avatar rodrigoespinosa avatar rschiang avatar simurai avatar t-hiroyoshi avatar tjmehta avatar vigo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

atom-xterm's Issues

Electron can't run in xTerm

Hi, if i try to run Electron, the require('electron') part instead of a module returns just a path, where this module is stored. Is it possible to fix? Thanks!

Installing xterm in my atom IDE fails again and again.

The detailed report as received from the ide is:
Installing “[email protected]” failed.

[email protected] install /tmp/apm-install-dir-118120-12168-9a0la6.70h1uivn29/node_modules/xterm/node_modules/keyboard-layout
node-gyp rebuild

make: Entering directory '/tmp/apm-install-dir-118120-12168-9a0la6.70h1uivn29/node_modules/xterm/node_modules/keyboard-layout/build'
CXX(target) Release/obj.target/keyboard-layout-manager/src/keyboard-layout-manager-linux.o
keyboard-layout-manager.target.mk:96: recipe for target 'Release/obj.target/keyboard-layout-manager/src/keyboard-layout-manager-linux.o' failed
make: Leaving directory '/tmp/apm-install-dir-118120-12168-9a0la6.70h1uivn29/node_modules/xterm/node_modules/keyboard-layout/build'
/tmp/apm-install-dir-118120-12168-9a0la6.70h1uivn29
`-- (empty)

npm WARN deprecated [email protected]: CoffeeScript on NPM has moved to "coffeescript" (no hyphen)
In file included from ../src/keyboard-layout-manager-linux.cc:1:0:
../src/keyboard-layout-manager.h:7:22: fatal error: X11/Xlib.h: No such file or directory
compilation terminated.
make: *** [Release/obj.target/keyboard-layout-manager/src/keyboard-layout-manager-linux.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/opt/atom/resources/app/apm/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Linux 4.8.0-53-generic
gyp ERR! command "/opt/atom/resources/app/apm/bin/node" "/opt/atom/resources/app/apm/node_modules/.bin/node-gyp" "rebuild"
gyp ERR! cwd /tmp/apm-install-dir-118120-12168-9a0la6.70h1uivn29/node_modules/xterm/node_modules/keyboard-layout
gyp ERR! node -v v6.9.5
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
npm WARN enoent ENOENT: no such file or directory, open '/tmp/apm-install-dir-118120-12168-9a0la6.70h1uivn29/package.json'
npm WARN apm-install-dir-118120-12168-9a0la6.70h1uivn29 No description
npm WARN apm-install-dir-118120-12168-9a0la6.70h1uivn29 No repository field.
npm WARN apm-install-dir-118120-12168-9a0la6.70h1uivn29 No README data
npm WARN apm-install-dir-118120-12168-9a0la6.70h1uivn29 No license field.
npm ERR! Linux 4.8.0-53-generic
npm ERR! argv "/opt/atom/resources/app/apm/bin/node" "/opt/atom/resources/app/apm/node_modules/npm/bin/npm-cli.js" "--globalconfig" "/home/aman/.atom/.apm/.apmrc" "--userconfig" "/home/aman/.atom/.apmrc" "install" "/tmp/d-118120-12168-xsbxvy.dinxrsh5mi/package.tgz" "--runtime=electron" "--target=1.6.15" "--arch=x64" "--global-style"
npm ERR! node v6.9.5
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the keyboard-layout package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs keyboard-layout
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls keyboard-layout
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /tmp/apm-install-dir-118120-12168-9a0la6.70h1uivn29/npm-debug.log
npm ERR! code 1

Scripting xterm from other plugins?

I'm looking to write a plugin that would execute commands in an xterm session (either existing or new) based on context in the editor. For example, if I've got a ruby spec file open, I might want to run bundle exec -cf doc rspec [path_to_open_file]:[current_line_number] in xterm.

Is there currently a way to hook into the xterm plugin to do this?

Failed to activate the xterm package

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.36.0 x64
Electron: 2.0.18
OS: Mac OS X 10.14.2
Thrown From: xterm package 1.2.1

Stack Trace

Failed to activate the xterm package

At Cannot find module 'event-kit'

Error: Cannot find module 'event-kit'
    at Module._resolveFilename (module.js:543:15)
    at Module._resolveFilename (/Applications/Atom.app/Contents/Resources/electron.asar/common/reset-search-paths.js:35:12)
    at Function.get_Module._resolveFilename (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:154765)
    at Module.require (/app.asar/static/index.js:40:43)
    at require (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:146072)
    at /packages/atom-xterm/index.js:3:24)
    at /packages/atom-xterm/index.js:500:2)
    at Module.get_Module._compile (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:146782)
    at Object.value [as .js] (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:150329)
    at Module.load (module.js:561:32)
    at tryModuleLoad (module.js:504:12)
    at Function.Module._load (module.js:496:3)
    at Module.require (/app.asar/static/index.js:47:45)
    at require (internal/module.js:11:18)
    at customRequire (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:1:672952)
    at Package.requireMainModule (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:3093178)
    at Package.activateNow (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:3081312)
    at string.e.trim.length.activationHookSubscriptions.add.packageManager.onDidTriggerActivationHook (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:14:2445)
    at Function.simpleDispatch (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:1172021)
    at Emitter.emit (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:1173462)
    at PackageManager.triggerActivationHook (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:383495)
    at AtomEnvironment.updateProcessEnvAndTriggerHooks (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:1:697124)
    at <anonymous>

Commands

     -3:40.1.0 core:copy (atom-notification.fatal.icon.icon-bug.native-key-bindings.has-detail.has-close.has-stack)

Non-Core Packages

atom-beautify 0.33.4 
atom-icons 0.2.2 
xterm 1.2.1 
autumn-highlighter-syntax 3.0.2 
cobalt2-syntax 0.5.3 
color-picker 2.3.0 
electron-highlighter-syntax 2.2.2 
emmet 2.4.3 
es6-javascript 1.0.0 
file-path-picker 1.0.0 
highlight-selected 0.16.0 
minimap 4.29.9 
open-in-browsers 0.0.30 
pigments 0.40.2 
rest-client 1.3.1 

Uncaught NotSupportedError: Failed to execute 'registerElement' on 'Document': Registration faile...

[Enter steps to reproduce:]

  1. Rebuild packages when shown error message ptyw.js couldn't be loaded
  2. Restart Atom
  3. Saw an error prompt of following message.

Atom: 1.35.1 x64
Electron: 2.0.18
OS: Ubuntu 18.10
Thrown From: xterm package 1.2.1

Stack Trace

Uncaught NotSupportedError: Failed to execute 'registerElement' on 'Document': Registration failed for type 'terminal-list-view'. A type with that name is already registered.

At /home/iansebastian/.atom/packages/xterm/lib/list-view.js:137

Error: Failed to execute 'registerElement' on 'Document': Registration failed for type 'terminal-list-view'. A type with that name is already registered.
    at /packages/xterm/lib/list-view.js:137:25)
    at /packages/xterm/lib/list-view.js:139:3)
    at Module.get_Module._compile (/snap/atom/224/usr/share/atom/resources/app/static/<embedded>:11:146684)
    at Object.value [as .js] (/snap/atom/224/usr/share/atom/resources/app/static/<embedded>:11:150231)
    at Module.load (module.js:561:32)
    at tryModuleLoad (module.js:504:12)
    at Function.Module._load (module.js:496:3)
    at Module.require (/app.asar/static/index.js:47:45)
    at require (/snap/atom/224/usr/share/atom/resources/app/static/<embedded>:11:145974)
    at /packages/xterm/index.js:7:39)
    at /packages/xterm/index.js:500:2)
    at Module.get_Module._compile (/snap/atom/224/usr/share/atom/resources/app/static/<embedded>:11:146684)
    at Object.value [as .js] (/snap/atom/224/usr/share/atom/resources/app/static/<embedded>:11:150231)
    at Module.load (module.js:561:32)
    at tryModuleLoad (module.js:504:12)
    at Function.Module._load (module.js:496:3)
    at Module.require (/app.asar/static/index.js:47:45)
    at require (internal/module.js:11:18)
    at customRequire (/snap/atom/224/usr/share/atom/resources/app/static/<embedded>:1:664623)
    at Package.requireMainModule (/snap/atom/224/usr/share/atom/resources/app/static/<embedded>:11:2933010)
    at Package.activateConfig (/snap/atom/224/usr/share/atom/resources/app/static/<embedded>:11:2922369)
    at PackageManager.t.exports.PackageManager.packageHasSettings (/snap/atom/224/usr/share/atom/resources/app/static/<embedded>:11:910450)
    at PackageCard.hasSettings (/snap/atom/224/usr/share/atom/resources/app/static/<embedded>:14:2948707)
    at PackageCard.updateSettingsState (/snap/atom/224/usr/share/atom/resources/app/static/<embedded>:14:2938987)
    at PackageCard.updateInterfaceState (/snap/atom/224/usr/share/atom/resources/app/static/<embedded>:14:2938810)
    at new PackageCard (/snap/atom/224/usr/share/atom/resources/app/static/<embedded>:14:2930407)
    at PackageDetailView.completeInitialization (/snap/atom/224/usr/share/atom/resources/app/static/<embedded>:14:731347)
    at PackageDetailView.loadPackage (/snap/atom/224/usr/share/atom/resources/app/static/<embedded>:14:731914)
    at new PackageDetailView (/snap/atom/224/usr/share/atom/resources/app/static/<embedded>:14:728485)
    at SettingsView.getOrCreatePanel (/snap/atom/224/usr/share/atom/resources/app/static/<embedded>:11:932252)
    at SettingsView.showPanel (/snap/atom/224/usr/share/atom/resources/app/static/<embedded>:11:932973)
    at SettingsView.showDeferredPanel (/snap/atom/224/usr/share/atom/resources/app/static/<embedded>:11:932897)
    at SettingsView.initializePanels (/snap/atom/224/usr/share/atom/resources/app/static/<embedded>:11:930354)
    at /snap/atom/224/usr/share/atom/resources/app/static/<embedded>:11:927530
    at _combinedTickCallback (internal/process/next_tick.js:131:7)
    at process._tickCallback (internal/process/next_tick.js:180:9)

Commands

Non-Core Packages

atom-blue-dawn 0.0.1 
gpp 0.4.3 
gpp-compiler 3.0.7 
Hydrogen 2.8.0 
monokai-sublime 1.0.0 
teletype 0.13.3 
term3 0.22.1 
xterm 1.2.1 

Object.basename is deprecated.

Arguments to path.basename must be strings

Object.basename (/Applications/Atom.app/Contents/Resources/app/src/electron-shims.js:31:10)
<unknown> (/Users/ken/.atom/packages/xterm/index.js:219:33)
Object.<anonymous> (/Users/ken/.atom/packages/xterm/index.js:227:7)
Object.<anonymous> (/Users/ken/.atom/packages/xterm/index.js:492:3)
Module._compile (<embedded>:10617:36)
Object..js (<embedded>:10868:29)

Bug in xTerm

[email protected] – The module '/Users/antonkluev/.atom/packages/xterm/node_modules/ptyw.js/build/Release/pty.node' was compiled against a different Node.js version using NODE_MODULE_VERSION 49. This version of Node.js requires NODE_MODULE_VERSION 53. Please try re-compiling or re-installing the module (for instance, using npm rebuild ornpm install)

Can not update to 1.1.0

After failing to update to xterm 1.1.0, Atom show following output:

> [email protected] install /tmp/apm-install-dir-11784-16724-1xjnwef.egcf03sor/node_modules/xterm/node_modules/keyboard-layout
> node-gyp rebuild

make: Verzeichnis „/tmp/apm-install-dir-11784-16724-1xjnwef.egcf03sor/node_modules/xterm/node_modules/keyboard-layout/build“ wird betreten
  CXX(target) Release/obj.target/keyboard-layout-manager/src/keyboard-layout-manager-linux.o
keyboard-layout-manager.target.mk:96: die Regel für Ziel „Release/obj.target/keyboard-layout-manager/src/keyboard-layout-manager-linux.o“ scheiterte
make: Verzeichnis „/tmp/apm-install-dir-11784-16724-1xjnwef.egcf03sor/node_modules/xterm/node_modules/keyboard-layout/build“ wird verlassen
/tmp/apm-install-dir-11784-16724-1xjnwef.egcf03sor
└── (empty)


../src/keyboard-layout-manager-linux.cc:5:37: fatal error: X11/extensions/XKBrules.h: Datei oder Verzeichnis nicht gefunden
compilation terminated.
make: *** [Release/obj.target/keyboard-layout-manager/src/keyboard-layout-manager-linux.o] Fehler 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/opt/atom/resources/app/apm/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack     at emitTwo (events.js:106:13)
gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Linux 4.10.0-26-generic
gyp ERR! command "/opt/atom/resources/app/apm/bin/node" "/opt/atom/resources/app/apm/node_modules/.bin/node-gyp" "rebuild"
gyp ERR! cwd /tmp/apm-install-dir-11784-16724-1xjnwef.egcf03sor/node_modules/xterm/node_modules/keyboard-layout
gyp ERR! node -v v6.9.5
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok 
npm WARN enoent ENOENT: no such file or directory, open '/tmp/apm-install-dir-11784-16724-1xjnwef.egcf03sor/package.json'
npm WARN apm-install-dir-11784-16724-1xjnwef.egcf03sor No description
npm WARN apm-install-dir-11784-16724-1xjnwef.egcf03sor No repository field.
npm WARN apm-install-dir-11784-16724-1xjnwef.egcf03sor No README data
npm WARN apm-install-dir-11784-16724-1xjnwef.egcf03sor No license field.
npm ERR! Linux 4.10.0-26-generic
npm ERR! argv "/opt/atom/resources/app/apm/bin/node" "/opt/atom/resources/app/apm/node_modules/npm/bin/npm-cli.js" "--globalconfig" "/home/bbuhler/.atom/.apm/.apmrc" "--userconfig" "/home/bbuhler/.atom/.apmrc" "install" "/tmp/d-11784-16724-pupeon.jqe8060f6r/package.tgz" "--runtime=electron" "--target=1.6.9" "--arch=x64" "--global-style"
npm ERR! node v6.9.5
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the keyboard-layout package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs keyboard-layout
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls keyboard-layout
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /tmp/apm-install-dir-11784-16724-1xjnwef.egcf03sor/npm-debug.log
npm ERR! code 1

I am on Linux with:

Atom    : 1.19.2
Electron: 1.6.9
Chrome  : 56.0.2924.87
Node    : 7.4.0

Uncaught TypeError: Cannot set property '0' of undefined

[Enter steps to reproduce:]

  1. Open xterm.
  2. Type less <any file>.
  3. Press up/down arrows few times to scroll contents.

Atom: 1.38.2 x64
Electron: 2.0.18
OS: Mac OS X 10.12.6
Thrown From: xterm package 1.2.1

Stack Trace

Uncaught TypeError: Cannot set property '0' of undefined

At /Users/yumitsu/.atom/packages/xterm/node_modules/xterm/lib/InputHandler.js:58

TypeError: Cannot set property '0' of undefined
    at InputHandler.addChar (/packages/xterm/node_modules/xterm/lib/InputHandler.js:58:75)
    at Parser.parse (/packages/xterm/node_modules/xterm/lib/Parser.js:180:44)
    at Terminal.innerWrite (/packages/xterm/node_modules/xterm/lib/xterm.js:825:33)
    at /packages/xterm/node_modules/xterm/lib/xterm.js:810:18

Commands

  3x -0:42.7.0 core:move-right (input.hidden-input)
     -0:42 core:select-right (input.hidden-input)
     -0:41.5.0 core:move-left (input.hidden-input)
  4x -0:41 core:select-right (input.hidden-input)
     -0:38.8.0 core:move-down (input.hidden-input)
  2x -0:38.4.0 core:move-left (input.hidden-input)
  4x -0:37.3.0 core:select-left (input.hidden-input)
     -0:33.4.0 core:move-down (input.hidden-input)
     -0:27.3.0 core:save (input.hidden-input)
     -0:19.5.0 core:move-left (input.hidden-input)
  4x -0:19.2.0 core:select-left (input.hidden-input)
     -0:17.8.0 core:save (input.hidden-input)
  2x -0:16.8.0 core:move-right (input.hidden-input)
     -0:16.5.0 core:move-down (input.hidden-input)
     -0:16.1.0 core:save (input.hidden-input)
     -0:14.6.0 pane:show-next-item (input.hidden-input)

Non-Core Packages

aligner 1.2.4 
aligner-coffeescript 1.2.0 
aligner-css 1.2.1 
aligner-javascript 1.3.0 
aligner-ruby 1.7.0 
aligner-scss 1.3.1 
atom-beautify 0.33.4 
atom-clock 0.1.17 
atom-jinja2 0.6.0 
atom-ternjs 0.19.1 
auto-encoding-for-ruby 1.0.4 
autoclose-html 0.23.0 
autocomplete-json 5.5.2 
autocomplete-modules 2.3.0 
autocomplete-ruby 0.2.8 
browse 1.11.0 
browser-plus 0.0.98 
busy-signal 2.0.1 
coffee-compile 0.32.0 
coffee-refactor 0.7.0 
editorconfig 2.4.0 
emmet 2.4.3 
git-blame 1.8.0 
git-go 1.0.5 
git-history 3.3.0 
git-log 0.4.1 
git-plus 8.7.1 
git-projects 1.17.0 
git-time-metric 1.1.8 
hey-pane 1.1.2 
html2slim 0.5.0 
hyperclick 0.1.5 
intentions 1.1.5 
ios 0.1.0 
js-refactor 0.8.1 
language-livescript-edge 1.0.2 
language-SCSS 0.4.0 
language-slim 1.0.0 
line-diff-details 1.9.0 
linter 2.3.0 
linter-coffeelint 2.0.15 
linter-eslint 8.5.5 
linter-jscs 4.2.2 
linter-lsc 2.4.0 
linter-rails-best-practices 0.2.2 
linter-reek 2.4.2 
linter-ruby 1.3.1 
linter-sass-lint 1.9.0 
linter-shellcheck 1.6.0 
linter-slim 2.0.0 
linter-ui-default 1.7.1 
linter-xo 0.29.0 
merge-conflicts 1.4.5 
minimap 4.29.9 
minimap-git-diff 4.3.1 
process-palette 0.17.0 
project-manager 3.3.7 
refactor 0.11.5 
ruby-solargraph 0.4.0 
set-syntax 0.4.0 
ssh-config 0.14.0 
tab-control 0.6.11 
tabs-to-spaces 1.0.5 
transpile 0.1.4 
transpile-decaf 0.1.3 
transpile-js2coffee 0.1.2 
xterm 1.2.1 
zentabs 0.8.9 

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.