Closed a-l-f-r-e-d closed 7 years ago
Fixed in #11
Had it happen just now, and Atom is showing no package updates for atom-elm-format. Either this issue is still occurring or the fix has not been pushed out yet?
What version are you running?
On Wed, Jul 20, 2016 at 11:24 PM, OvermindDL1 notifications@github.com wrote:
Had it happen just now, and Atom is showing no package updates for atom-elm-format. Either this issue is still occurring or the fix has not been pushed out yet?
— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/triforkse/atom-elm-format/issues/8#issuecomment-234087894, or mute the thread https://github.com/notifications/unsubscribe-auth/AAaTGCYCHE16QumuCcBhghU0iac3U1fjks5qXpIOgaJpZM4Iv997 .
$ cat ~/.atom/packages/elm-format/package.json
{
"name": "elm-format",
"main": "./lib/elm-format",
"version": "2.0.1",
"scripts": {
"lint": "eslint .",
"watch": "ucompiler watch",
"compile": "ucompiler go"
},
"pre-commit": [
"lint",
"compile"
],
"description": "Run elm-format in Atom",
"keywords": [
"elm",
"format",
"elm-format"
],
"repository": {
"type": "git",
"url": "git+https://github.com/triforkse/atom-elm-format.git"
},
"license": "MIT",
"engines": {
"atom": ">=1.0.0 <2.0.0"
},
"dependencies": {},
"devDependencies": {
"babel-eslint": "^6.0.2",
"babel-preset-steelbrain": "^2.0.1",
"eslint": "^3.0.0",
"eslint-config-airbnb-base": "^3.0.1",
"eslint-plugin-import": "^1.10.0",
"pre-commit": "^1.1.2",
"ucompiler": "^3.1.8",
"ucompiler-plugin-babel": "^3.1.1"
},
"readme": "# elm-format\n\nRuns `elm-format` on save or manually\n\nGet `elm-format` at https://github.com/avh4/elm-format\n",
"readmeFilename": "README.md",
"bugs": {
"url": "https://github.com/triforkse/atom-elm-format/issues"
},
"homepage": "https://github.com/triforkse/atom-elm-format#readme",
"_id": "elm-format@2.0.1",
"_shasum": "3e7a4078bc92afe28e002ee6af512b34cf65fbf9",
"_resolved": "file:..\\d-116614-15452-18lo3ni\\package.tgz",
"_from": "..\\d-116614-15452-18lo3ni\\package.tgz",
"_atomModuleCache": {
"version": 1,
"dependencies": [],
"extensions": {
".js": [
"lib\\elm-format.js",
"lib\\settings.js",
"src\\elm-format.js",
"src\\settings.js"
],
".json": [
"package.json"
]
},
"folders": []
}
}
And for note, it has happened a few more times as well.
Still happening, found a few things about it to note.
Atom Version: 1.8.0 System: Microsoft Windows 10 Pro Thrown From: elm-format package, v2.0.1
Uncaught Error: This TextEditor has been destroyed
At C:\Users\<username>\AppData\Local\atom\app-1.8.0\resources\app.asar\src\pane.js:1002
Error: This TextEditor has been destroyed
at DisplayBuffer.module.exports.DisplayBuffer.screenPositionForBufferPosition (C:\Users\<username>\AppData\Local\atom\app-1.8.0\resources\app.asar\src\display-buffer.js:794:15)
at TextEditorMarker.module.exports.TextEditorMarker.getHeadScreenPosition (C:\Users\<username>\AppData\Local\atom\app-1.8.0\resources\app.asar\src\text-editor-marker.js:179:33)
at Cursor.module.exports.Cursor.getScreenPosition (C:\Users\<username>\AppData\Local\atom\app-1.8.0\resources\app.asar\src\cursor.js:73:26)
at TextEditor.module.exports.TextEditor.getCursorScreenPosition (C:\Users\<username>\AppData\Local\atom\app-1.8.0\resources\app.asar\src\text-editor.js:1544:35)
at Object.format (C:\Users\<username>\.atom\packages\elm-format\lib\elm-format.js:99:33)
at C:\Users\<username>\.atom\packages\elm-format\lib\elm-format.js:49:25
at Object.debounce (C:\Users\<username>\.atom\packages\elm-format\lib\elm-format.js:57:7)
at C:\Users\<username>\.atom\packages\elm-format\lib\elm-format.js:48:16
at Function.module.exports.Emitter.simpleDispatch (C:\Users\<username>\AppData\Local\atom\app-1.8.0\resources\app.asar\node_modules\event-kit\lib\emitter.js:25:14)
at Emitter.module.exports.Emitter.emit (C:\Users\<username>\AppData\Local\atom\app-1.8.0\resources\app.asar\node_modules\event-kit\lib\emitter.js:125:28)
at TextBuffer.module.exports.TextBuffer.saveAs (C:\Users\<username>\AppData\Local\atom\app-1.8.0\resources\app.asar\node_modules\text-buffer\lib\text-buffer.js:1113:27)
at TextBuffer.module.exports.TextBuffer.save (C:\Users\<username>\AppData\Local\atom\app-1.8.0\resources\app.asar\node_modules\text-buffer\lib\text-buffer.js:1083:19)
at TextEditor.module.exports.TextEditor.save (C:\Users\<username>\AppData\Local\atom\app-1.8.0\resources\app.asar\src\text-editor.js:660:26)
at Pane.module.exports.Pane.saveItem (C:\Users\<username>\AppData\Local\atom\app-1.8.0\resources\app.asar\src\pane.js:718:18)
at Pane.module.exports.Pane.saveActiveItem (C:\Users\<username>\AppData\Local\atom\app-1.8.0\resources\app.asar\src\pane.js:701:19)
at Workspace.module.exports.Workspace.saveActivePaneItem (C:\Users\<username>\AppData\Local\atom\app-1.8.0\resources\app.asar\src\workspace.js:684:35)
at atom-workspace.commandRegistry.add.core:save (C:\Users\<username>\AppData\Local\atom\app-1.8.0\resources\app.asar\src\register-default-commands.js:214:32)
at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (C:\Users\<username>\AppData\Local\atom\app-1.8.0\resources\app.asar\src\command-registry.js:260:29)
at C:\Users\<username>\AppData\Local\atom\app-1.8.0\resources\app.asar\src\command-registry.js:3:61
at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (C:\Users\<username>\AppData\Local\atom\app-1.8.0\resources\app.asar\node_modules\atom-keymap\lib\keymap-manager.js:580:16)
at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (C:\Users\<username>\AppData\Local\atom\app-1.8.0\resources\app.asar\node_modules\atom-keymap\lib\keymap-manager.js:388:22)
at WindowEventHandler.module.exports.WindowEventHandler.handleDocumentKeyEvent (C:\Users\<username>\AppData\Local\atom\app-1.8.0\resources\app.asar\src\window-event-handler.js:98:36)
at HTMLDocument.<anonymous> (C:\Users\<username>\AppData\Local\atom\app-1.8.0\resources\app.asar\src\window-event-handler.js:3:61)
-4:01.6.0 editor:move-to-beginning-of-word (atom-text-editor.editor.is-focused)
3x -4:01.1.0 core:move-left (atom-text-editor.editor.is-focused)
-4:00.4.0 core:move-right (atom-text-editor.editor.is-focused)
-4:00.1.0 editor:select-to-beginning-of-word (atom-text-editor.editor.is-focused)
6x -3:01.4.0 blur (atom-text-editor.editor.is-focused)
2x -1:24.9.0 linter:lint (atom-text-editor.editor)
2x -1:24.9.0 blur (atom-text-editor.editor)
-1:23.8.0 editor:newline (atom-text-editor.editor.is-focused)
-1:14.5.0 editor:delete-to-beginning-of-word (atom-text-editor.editor.is-focused)
-1:10.9.0 core:save (atom-text-editor.editor.is-focused.autocomplete-active)
19x -1:09.0 blur (atom-text-editor.editor.is-focused)
-0:43.6.0 core:confirm (atom-text-editor.editor.mini.is-focused)
6x -0:35.6.0 blur (atom-text-editor.editor.mini.is-focused)
2x -0:03.7.0 linter:lint (atom-text-editor.editor)
3x -0:03.6.0 blur (atom-text-editor.editor)
-0:03.2.0 core:save (atom-text-editor.editor.is-focused)
{
"core": {
"autoHideMenuBar": true,
"disabledPackages": [
"autocomplete-go",
"atom-powersnap",
"activate-power-mode-delete",
"autocomplete-dcd",
"elm",
"autocomplete-en-en",
"spell-check",
"latex-completions",
"erlang-build"
],
"projectHome": "C:\\Users\\<username>\\Projects",
"themes": [
"atom-dark-ui",
"solarized-dark-syntax"
]
},
"elm-format": {
"binary": "C:\\Program Files (x86)\\Elm Platform\\elm-format-0.17-0.4.0-alpha-win-x64\\elm-format.exe",
"showNotifications": true
}
}
# User
activate-power-mode, v0.7.0
ascii-codes, v0.3.3
ascii-hex, v0.2.0
atom-autocomplete-erlang, v0.6.19
atom-beautify, v0.29.10
atom-elixir, v0.2.1
atom-formatter-jsbeautify, v1.1.2
atom-svg-icon-snippets, v0.3.3
atomic-chrome, v0.3.0
autocomplete-asciidoc, v0.1.1
autocomplete-awk, v0.1.2
autocomplete-cmake, v0.3.1
autocomplete-elixir, v1.5.14
autocomplete-emojis, v2.5.0
autocomplete-erlang, v1.1.2
autocomplete-fortran, v0.9.1
autocomplete-gdscript, v0.4.0
autocomplete-glsl, v0.2.3
autocomplete-html-entities, v0.1.0
autocomplete-js-import, v1.0.1
autocomplete-json, v5.1.0
autocomplete-mathjax, v0.1.1
autocomplete-modules, v1.5.2
autocomplete-oracle, v0.4.0
autocomplete-php, v0.3.7
autocomplete-python, v1.8.2
autocomplete-xml, v0.8.3
build-elixir, v0.6.0
build-powershell, v0.3.4
character-table, v0.4.3
clipboard-plus, v0.5.1
data-atom, v0.21.0
elixir-cmd, v0.2.9
elm-format, v2.0.1
elm-snippets, v0.1.0
emmet, v2.4.3
emoji-code, v0.3.1
erlang-autocompile, v0.1.1
es-identifier-highlight, v0.2.11
filesize, v0.4.2
fill-line, v1.0.0
fold-functions, v0.4.3
font-awesome-snippetset, v0.0.6
fonts, v1.6.0
git-checkout, v0.3.2
git-commit, v1.5.2
git-diff-details, v1.3.0
git-log, v0.4.1
go-config, v1.2.1
go-get, v1.0.3
hex, v0.6.2
highlight-bad-chars, v1.0.5
html-entitize, v1.1.0
language-asn1, v0.3.0
language-batchfile, v0.4.0
language-csv, v1.1.2
language-elixir, v0.14.0
language-elm, v1.5.0
language-elmx, v1.2.6
language-erlang, v3.0.0
language-javascript-jsx, v0.3.7
language-oracle, v1.4.1
language-pgsql, v0.2.3
language-powershell, v2.1.1
language-story, v1.2.0
language-svg, v0.9.0
linter, v1.11.14
linter-checkbashisms, v0.1.5
linter-elixir-credo, v1.1.0
linter-elm-make, v0.12.2
linter-erlang, v0.3.1
linter-erlang-dialyzer, v0.0.1
minimap, v4.24.7
minimap-bookmarks, v0.3.1
minimap-codeglance, v0.4.5
minimap-cursorline, v0.2.0
minimap-git-diff, v4.3.1
minimap-highlight-selected, v4.4.0
minimap-linter, v1.1.1
minimap-pigments, v0.2.1
minimap-selection, v4.4.0
open-no-binaries, v0.1.1
phoenix-elixir-snippets, v0.4.0
pigments, v0.31.2
project-colorize, v0.2.0
qolor, v0.2.2
react, v0.15.0
resize-indent, v0.3.0
svg-preview, v0.7.4
tabular, v0.1.0
text-manipulation, v0.6.0
tree-view-git-branch, v0.1.2
tree-view-git-status, v1.0.2
# Dev
No dev packages
Yeah I have gotten to the point that when I see a ton of "Linting..." messages at the bottom (such as at http://i.imgur.com/OoooBP8.png for example) and the interface start slowing down then I know that there are already a hundred+ of those formatting processes so I alt-tab to the task manager and kill atom process tree (thus killing the formats) because for some reason at those times not even Ctrl+Alt+r works (it seems to half-kill atom, like it is waiting on something)... If I close the file it will also stop it, but it also causes the format to start popping up the above stacktrace/error every time I save. Is this still closed for a reason?
Thanks @OvermindDL1. I'm on vacation now, I will try it when I get back!
Do you also have Elm format enabled via atom-beautify
? Because this plugin has no popup
Ah indeed I do, I will disable that for a while and give it a try again. I did not even know about atom-beautify, did it come with atom or did I install it somehow? >.>
For note, it was set to never auto-beautify, even on save, but I completely disabled it anyway.
Ran atom for a little bit after disabling atom-beautify, the issue happened again with infinite elm-format's spawning. I tried to enable atom-beautify and disable atom-elm-format, but atom-beauty errored about not finding elm-format (it does not even have a place to put its path), so it was not doing anything anyway, disabled again though and re-enable atom-elm-format
Is this resolved?
I'll try tomorrow, message me here then? I usually keep the auto-format-on-save disabled because of the locking-up and I just realized that I've not run elm-format in atom in probably a week now... Poor code formatting... >.>
Can't reproduce, close?
Closing due to inactivity
[Enter steps to reproduce below:]
Atom Version: 1.8.0 System: Mac OS X 10.11.5 Thrown From: elm-format package, v1.2.1
Stack Trace
Uncaught Error: This TextEditor has been destroyed
Commands
Config
Installed Packages