atom / ide-json

MIT License
24 stars 15 forks source link

Uncaught Error: Connection is closed. #12

Closed ZyanKLee closed 5 years ago

ZyanKLee commented 6 years ago

[Enter steps to reproduce:]

  1. worked on a puppet module
  2. had a typo at a regex

Atom: 1.30.0 x64 Electron: 2.0.5 OS: Mac OS X 10.13.6 Thrown From: ide-json package 0.2.1

Stack Trace

Uncaught Error: Connection is closed.

At /Users/xyz/.atom/packages/ide-json/node_modules/vscode-jsonrpc/lib/main.js:613

Error: Connection is closed.
    at /packages/ide-json/node_modules/vscode-jsonrpc/lib/main.js:138:28)
    at throwIfClosedOrDisposed (/packages/ide-json/node_modules/vscode-jsonrpc/lib/main.js:613:19)
    at Object.sendNotification (/packages/ide-json/node_modules/vscode-jsonrpc/lib/main.js:667:13)
    at LanguageClientConnection._sendNotification (/packages/ide-puppet/node_modules/atom-languageclient/build/lib/languageclient.js:242:15)
    at LanguageClientConnection.didChangeWatchedFiles (/packages/ide-puppet/node_modules/atom-languageclient/build/lib/languageclient.js:143:10)
    at ServerManager.projectFilesChanged (/packages/ide-puppet/node_modules/atom-languageclient/build/lib/server-manager.js:233:33)
    at Function.module.exports.Emitter.simpleDispatch (/Applications/Atom.app/Contents/Resources/app/node_modules/event-kit/lib/emitter.js:27:20)
    at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app/node_modules/event-kit/lib/emitter.js:156:34)
    at didChangeCallback (/Applications/Atom.app/Contents/Resources/app/src/project.js:413:28)
    at PathWatcher.onNativeEvents (/Applications/Atom.app/Contents/Resources/app/src/path-watcher.js:533:13)
    at sub.native.onDidChange.events (/Applications/Atom.app/Contents/Resources/app/src/path-watcher.js:436:64)
    at Function.module.exports.Emitter.simpleDispatch (/Applications/Atom.app/Contents/Resources/app/node_modules/event-kit/lib/emitter.js:27:20)
    at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app/node_modules/event-kit/lib/emitter.js:156:34)
    at NSFWNativeWatcher.onEvents (/Applications/Atom.app/Contents/Resources/app/src/path-watcher.js:167:24)
    at handler (/Applications/Atom.app/Contents/Resources/app/src/path-watcher.js:276:18)

Commands

     -0:32.4.0 editor:newline (input.hidden-input)
     -0:28.9.0 core:move-up (input.hidden-input)
     -0:28.1.0 core:move-down (input.hidden-input)
     -0:27.5.0 datatip:toggle (input.hidden-input)
     -0:27.4.0 editor:move-to-beginning-of-word (input.hidden-input)
  2x -0:27.2.0 datatip:toggle (input.hidden-input)
     -0:26.7.0 editor:move-to-beginning-of-word (input.hidden-input)
     -0:26.4.0 datatip:toggle (input.hidden-input)
     -0:26 editor:move-to-first-character-of-line (input.hidden-input)
     -0:25.1.0 core:delete (input.hidden-input)
     -0:24.2.0 editor:move-to-end-of-screen-line (input.hidden-input)
  2x -0:18.5.0 datatip:toggle (input.hidden-input)
     -0:16.3.0 core:move-up (input.hidden-input)
     -0:15.6.0 editor:move-to-end-of-screen-line (input.hidden-input)
     -0:15.2.0 core:move-left (input.hidden-input)
     -0:10.2.0 core:save (input.hidden-input)

Non-Core Packages

aligner 1.2.4 
aligner-javascript 1.3.0 
aligner-puppet 0.1.1 
atom-cform-yaml 0.5.1-0 
atom-ide-ui 0.13.0 
atom-inline-blame 0.0.6 
build 0.70.0 
build-dockerfile 1.0.1 
build-gradle 0.6.0 
busy-signal 1.4.3 
docker 0.8.0 
editorconfig 2.2.2 
git-plus 8.1.0 
go-plus 5.8.6 
Hydrogen 2.6.0 
ide-docker 0.0.2 
ide-json 0.2.1 
ide-puppet 1.3.1 
ide-python 1.0.0 
ide-yaml 0.4.4 
language-ansible 0.2.2 
language-docker 1.1.8 
language-groovy 0.7.0 
language-jenkinsfile 0.1.1 
language-puppet 0.23.0 
language-yaml-cloudformation 0.3.1 
linter 2.2.0 
linter-docker 0.3.2 
linter-jenkins 1.0.3 
linter-js-cloudformation-yaml 2.2.1 
linter-puppet-lint 0.8.4 
multi-cursor 2.1.5 
sort-lines 0.18.0 
tab-length 0.1.0 
droopy4096 commented 6 years ago

just got hit by the same issue. this results in full restart of atom.

ZyanKLee commented 5 years ago

Duplicate of #3