GithubHelp home page GithubHelp logo

Comments (11)

liuderchi avatar liuderchi commented on September 21, 2024 1

@emelendez does this stills happens after terminating Atom app then start Atom again?
If so, did you have opened file when Atom just started?

from ide-css.

seanmhoffman avatar seanmhoffman commented on September 21, 2024 1

@liuderchi It happens randomly after Atom has been launch sometimes I'm able to edit a file for a few minutes before the error happens. I actually have zero css files open which was one thing that surprised me, the other being that even after disabling and uninstalling the package the error still occurs. As of the moment I'm constantly having to restart Atom every few minutes because the editor becomes unusable and won't respond to any input after the error has occurred.

from ide-css.

liuderchi avatar liuderchi commented on September 21, 2024 1

@seanmhoffman sorry for the inconvenience.

Please try these steps to remove cached storage as temporarily workaround.
Similar issues happen in ide-yaml, ide-html. We are trying to figure it out.

from ide-css.

seanmhoffman avatar seanmhoffman commented on September 21, 2024

I'm experiencing the same issue.

STR:

  1. Save a file
  2. Type in a file
  3. After an inordinate amount of time the error will consistently trigger the Atom Bug window to pop up over and over again.

Atom: 1.21.1 x64
Electron: 1.6.15
OS: Mac OS X 10.12.5
Thrown From: ide-css package 0.2.0

Stack Trace

Uncaught Error: Connection is closed.

At /Users/seanho/.atom/packages/ide-css/node_modules/vscode-jsonrpc/lib/main.js:606

Error: Connection is closed.
    at /packages/ide-css/node_modules/vscode-jsonrpc/lib/main.js:131:28)
    at throwIfClosedOrDisposed (/packages/ide-css/node_modules/vscode-jsonrpc/lib/main.js:606:19)
    at Object.sendNotification (/packages/ide-css/node_modules/vscode-jsonrpc/lib/main.js:660:13)
    at LanguageClientConnection._sendNotification (/packages/ide-css/node_modules/atom-languageclient/build/lib/languageclient.js:244:15)
    at LanguageClientConnection.didChangeTextDocument (/packages/ide-css/node_modules/atom-languageclient/build/lib/languageclient.js:133:10)
    at TextEditorSyncAdapter.sendFullChanges (/packages/ide-css/node_modules/atom-languageclient/build/lib/adapters/document-sync-adapter.js:183:22)
    at Function.module.exports.Emitter.simpleDispatch (/Applications/Atom.app/Contents/Resources/app/node_modules/event-kit/lib/emitter.js:25:20)
    at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app/node_modules/event-kit/lib/emitter.js:141:34)
    at /Applications/Atom.app/Contents/Resources/app/src/text-editor.js:626:38
    at Function.module.exports.Emitter.simpleDispatch (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/node_modules/event-kit/lib/emitter.js:25:20)
    at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/node_modules/event-kit/lib/emitter.js:141:34)
    at DisplayLayer.emitDidChangeSyncEvent (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/display-layer.js:825:24)
    at /Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/text-buffer.js:780:35
    at Map.forEach (native)
    at TextBuffer.module.exports.TextBuffer.emitDidChangeEvent (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/text-buffer.js:779:47)
    at TextBuffer.module.exports.TextBuffer.applyChange (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/text-buffer.js:762:18)
    at TextBuffer.module.exports.TextBuffer.revertToCheckpoint (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/text-buffer.js:1001:22)
    at TextBuffer.module.exports.TextBuffer.transact (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/text-buffer.js:955:20)
    at TextEditor.module.exports.TextEditor.transact (/Applications/Atom.app/Contents/Resources/app/src/text-editor.js:1673:32)
    at /Applications/Atom.app/Contents/Resources/app/src/text-editor.js:1234:30
    at TextEditor.module.exports.TextEditor.mergeSelections (/Applications/Atom.app/Contents/Resources/app/src/text-editor.js:2617:49)
    at TextEditor.module.exports.TextEditor.mergeIntersectingSelections (/Applications/Atom.app/Contents/Resources/app/src/text-editor.js:2583:41)
    at TextEditor.module.exports.TextEditor.mutateSelectedText (/Applications/Atom.app/Contents/Resources/app/src/text-editor.js:1232:25)
    at TextEditor.module.exports.TextEditor.insertText (/Applications/Atom.app/Contents/Resources/app/src/text-editor.js:1198:25)
    at TextEditor.object.(anonymous function) (/Applications/Atom.app/Contents/Resources/app/node_modules/underscore-plus/lib/underscore-plus.js:77:33)
    at /packages/language-babel/lib/did-insert-text.coffee:80:18)
    at TextEditorComponent.didTextInput (/Applications/Atom.app/Contents/Resources/app/src/text-editor-component.js:1630:30)

Commands

     -9:06.2.0 core:confirm (input.hidden-input)
  8x -8:32.9.0 core:backspace (input.hidden-input)
     -8:24.4.0 core:confirm (input.hidden-input)
     -5:40.1.0 core:save (input.hidden-input)
     -2:30.1.0 fuzzy-finder:toggle-file-finder (input.hidden-input)
     -2:28.6.0 core:confirm (input.hidden-input)
  2x -1:50.3.0 find-and-replace:select-next (input.hidden-input)
     -1:32.5.0 editor:consolidate-selections (input.hidden-input)
     -1:32.5.0 core:cancel (input.hidden-input)
     -1:32 editor:consolidate-selections (input.hidden-input)
     -1:32 core:cancel (input.hidden-input)
     -1:30.1.0 editor:consolidate-selections (input.hidden-input)
     -1:30.1.0 core:cancel (input.hidden-input)
     -1:29.7.0 editor:consolidate-selections (input.hidden-input)
     -1:29.7.0 core:cancel (input.hidden-input)

Non-Core Packages

align-regexp 0.4.0 
alignment 1.1.5 
atom-clock 0.1.15 
atom-ide-ui 0.5.1 
atom-monokai 0.10.9 
busy-signal 1.4.3 
declarations 1.1.3 
declarations-js 1.0.2 
docblockr 0.11.0 
dracula-syntax 2.0.5 
elixir-pry 1.0.0 
emmet 2.4.3 
fold-search-results 1.0.5 
git-blame 1.3.1 
git-time-machine 1.5.9 
goto-definition 1.3.4 
ide-css 0.2.0 
ide-html 0.3.0 
ide-typescript 0.6.2 
ide-yaml 0.3.2 
imdone-atom 2.2.7 
intentions 1.1.5 
language-babel 2.75.1 
language-documentation 2.0.1 
language-elixir 0.20.3 
language-ember 4.0.2 
language-ember-htmlbars 0.4.0 
lines 0.13.1 
linter 2.2.0 
linter-csslint 2.0.0 
linter-elixirc 1.7.0 
linter-eslint 8.3.2 
linter-jshint 3.1.6 
linter-sass-lint 1.8.2 
linter-ui-default 1.6.10 
minimap 4.29.7 
minimap-find-and-replace 4.5.2 
minimap-git-diff 4.3.1 
minimap-pigments 0.2.2 
monokai 0.24.0 
monokai-seti 0.9.0 
pigments 0.40.2 
project-manager 3.3.5 
related 0.3.5 
seti-syntax 1.1.3 
seti-ui 1.9.0 
sort-lines 0.18.0 
synced-sidebar 0.4.3 
todo-show 2.1.0 

from ide-css.

liuderchi avatar liuderchi commented on September 21, 2024

@seanmhoffman Does it always happen whenever you start Atom?
If so, how many css files opened when Atom just started?

from ide-css.

seanmhoffman avatar seanmhoffman commented on September 21, 2024

@liuderchi Thank you, I followed the instructions and blew away both directories. Both ~/Library/Application Support/Atom and ~/Library/Saved Application State/com.github.atom.com and the error happens less occasionally but it still persists.

from ide-css.

nrigaudiere avatar nrigaudiere commented on September 21, 2024

Happens to me as well On Save

.atom/packages/ide-css/node_modules/vscode-jsonrpc/lib/main.js:606

Atom 1.21.1
ide-css 0.2.0

Thanks!

from ide-css.

liuderchi avatar liuderchi commented on September 21, 2024

@seanmhoffman I came across similar issue for ide-typescript
and found an simple workaround.

Remove all opened css files (files consumed by your ide-* ) in the window
then do Window: Reload

atom/ide-typescript#17 (comment)

from ide-css.

JerrySievert avatar JerrySievert commented on September 21, 2024

@liuderchi that workaround does not work for me, as I have no open css files - any updates on when this might be fixed? I love the package, just not the error.

from ide-css.

JerrySievert avatar JerrySievert commented on September 21, 2024

note that disabling the package apparently does not make the issue go away :(

from ide-css.

liuderchi avatar liuderchi commented on September 21, 2024

@JerrySievert sorry for the late reply and the inconvenience. 😢

Theoretically latest release of ide-css prevent this issue happens.

But there might be some edge cases.
Please help provide debug info via these steps.

from ide-css.

Related Issues (20)

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.