atom-haskell-archive / haskell-ghc-mod

haskell-ghc-mod atom package
https://atom.io/packages/haskell-ghc-mod
MIT License
69 stars 20 forks source link

ghc-mod crashes and produces warning in atom #201

Open andrewufrank opened 7 years ago

andrewufrank commented 7 years ago

same setup as #199, but i guess a different type of crash:

[Enter steps to reproduce below:]

i edit some variable names in Main.hs - save to check the changes - >

save a change in file litNLP/scr/Main (there are further errors in the code) -- there is no other file open
error pops up
(can be repeated, it pops up even if there are not haskell errors in the file)
same crash after a build.

the file missing (littext-0.1.5-7nQiLhZ2W7HKKsiHrohk7b) is in the outer (stackroot.stack-work) dir.

Atom Version: 1.13.1 Electron Version: 1.3.13 System: Debian GNU/Linux Thrown From: haskell-ghc-mod package, v1.19.7 Stack Trace

Haskell-ghc-mod: ghc-mod command check failed with error Error

At caps: {"version":[5,7,0,0],"fileMap":true,"quoteArgs":true,"optparse":true,"typeConstraints":true,"browseParents":true,"interactiveCaseSplit":true,"importedFrom":false} URI: /home/frank/Workspace8/atomtest/repo8/litNLP/src/Main.hs Args: -- message: Command failed: /home/frank/.local/bin/ghc-mod check /home/frank/Workspace8/atomtest/repo8/litNLP/src/Main.hs -- ghc-mod: : cannot satisfy -package-id littext-0.1.5-7nQiLhZ2W7HKKsiHrohk7b (use -v for more information)

log: -19.453s: "Trying to run ghc-modi in /home/frank/Workspace8/atomtest/repo8/litNLP" -19.453s: "Checking for ghc-modi in /home/frank/Workspace8/atomtest/repo8/litNLP" -19.453s: "Found running ghc-modi instance for /home/frank/Workspace8/atomtest/repo8/litNLP" -19.452s: "Started interactive action block in /home/frank/Workspace8/atomtest/repo8/litNLP" -19.452s: "Running ghc-modi command type","/home/frank/Workspace8/atomtest/repo8/litNLP/src/Main.hs","-c","--",53,44 -19.281s: "ghc-modi said: EXCEPTION: types:" -19.281s: "ghc-modi said: : cannot satisfy -package-id littext-0.1.5-7nQiLhZ2W7HKKsiHrohk7b" -19.28s: "ghc-modi said: (use -v for more information)" -19.28s: "Got response from ghc-modi:\nOK\n" -19.28s: "Ended interactive action block in /home/frank/Workspace8/atomtest/repo8/litNLP" -19.279s: "Trying to run ghc-modi in /home/frank/Workspace8/atomtest/repo8/litNLP" -19.279s: "Checking for ghc-modi in /home/frank/Workspace8/atomtest/repo8/litNLP" -19.279s: "Found running ghc-modi instance for /home/frank/Workspace8/atomtest/repo8/litNLP" -19.279s: "Started interactive action block in /home/frank/Workspace8/atomtest/repo8/litNLP" -19.279s: "Running ghc-modi command info","/home/frank/Workspace8/atomtest/repo8/litNLP/src/Main.hs","--","" -19.15s: "ghc-modi said: EXCEPTION: info:" -19.15s: "ghc-modi said: : cannot satisfy -package-id littext-0.1.5-7nQiLhZ2W7HKKsiHrohk7b" -19.149s: "ghc-modi said: (use -v for more information)" -19.149s: "Got response from ghc-modi:\nCannot show info\nOK\n" -19.149s: "Ended interactive action block in /home/frank/Workspace8/atomtest/repo8/litNLP" -12.875s: "Trying to run ghc-modi in /home/frank/Workspace8/atomtest/repo8/litNLP" -12.875s: "Checking for ghc-modi in /home/frank/Workspace8/atomtest/repo8/litNLP" -12.875s: "Found running ghc-modi instance for /home/frank/Workspace8/atomtest/repo8/litNLP" -12.875s: "Started interactive action block in /home/frank/Workspace8/atomtest/repo8/litNLP" -12.875s: "Running ghc-modi command type","/home/frank/Workspace8/atomtest/repo8/litNLP/src/Main.hs","-c","--",52,52 -12.738s: "ghc-modi said: EXCEPTION: types:" -12.738s: "ghc-modi said: : cannot satisfy -package-id littext-0.1.5-7nQiLhZ2W7HKKsiHrohk7b" -12.738s: "ghc-modi said: (use -v for more information)" -12.738s: "Got response from ghc-modi:\nOK\n" -12.737s: "Ended interactive action block in /home/frank/Workspace8/atomtest/repo8/litNLP" -12.737s: "Trying to run ghc-modi in /home/frank/Workspace8/atomtest/repo8/litNLP" -12.737s: "Checking for ghc-modi in /home/frank/Workspace8/atomtest/repo8/litNLP" -12.737s: "Found running ghc-modi instance for /home/frank/Workspace8/atomtest/repo8/litNLP" -12.737s: "Started interactive action block in /home/frank/Workspace8/atomtest/repo8/litNLP" -12.737s: "Running ghc-modi command info","/home/frank/Workspace8/atomtest/repo8/litNLP/src/Main.hs","--","implemented" -12.621s: "ghc-modi said: EXCEPTION: info:" -12.621s: "ghc-modi said: : cannot satisfy -package-id littext-0.1.5-7nQiLhZ2W7HKKsiHrohk7b" -12.621s: "ghc-modi said: (use -v for more information)" -12.621s: "Got response from ghc-modi:\nCannot show info\nOK\n" -12.621s: "Ended interactive action block in /home/frank/Workspace8/atomtest/repo8/litNLP" -5.201s: "Trying to run ghc-modi in /home/frank/Workspace8/atomtest/repo8/litNLP" -5.201s: "Checking for ghc-modi in /home/frank/Workspace8/atomtest/repo8/litNLP" -5.201s: "Found running ghc-modi instance for /home/frank/Workspace8/atomtest/repo8/litNLP" -5.201s: "Started interactive action block in /home/frank/Workspace8/atomtest/repo8/litNLP" -5.201s: "Running ghc-modi command type","/home/frank/Workspace8/atomtest/repo8/litNLP/src/Main.hs","-c","--",62,34 -5.063s: "ghc-modi said: EXCEPTION: types:" -5.063s: "ghc-modi said: : cannot satisfy -package-id littext-0.1.5-7nQiLhZ2W7HKKsiHrohk7b" -5.063s: "ghc-modi said: (use -v for more information)" -5.062s: "Got response from ghc-modi:\nOK\n" -5.062s: "Ended interactive action block in /home/frank/Workspace8/atomtest/repo8/litNLP" -5.062s: "Trying to run ghc-modi in /home/frank/Workspace8/atomtest/repo8/litNLP" -5.062s: "Checking for ghc-modi in /home/frank/Workspace8/atomtest/repo8/litNLP" -5.062s: "Found running ghc-modi instance for /home/frank/Workspace8/atomtest/repo8/litNLP" -5.062s: "Started interactive action block in /home/frank/Workspace8/atomtest/repo8/litNLP" -5.062s: "Running ghc-modi command info","/home/frank/Workspace8/atomtest/repo8/litNLP/src/Main.hs","--","nlpstate" -4.936s: "ghc-modi said: EXCEPTION: info:" -4.936s: "ghc-modi said: : cannot satisfy -package-id littext-0.1.5-7nQiLhZ2W7HKKsiHrohk7b" -4.936s: "ghc-modi said: (use -v for more information)" -4.936s: "Got response from ghc-modi:\nCannot show info\nOK\n" -4.936s: "Ended interactive action block in /home/frank/Workspace8/atomtest/repo8/litNLP" -0.272s: "Running /home/frank/.local/bin/ghc-mod check,/home/frank/Workspace8/atomtest/repo8/litNLP/src/Main.hs,-- with opts = ",{"cwd":"/home/frank/Workspace8/atomtest/repo8/litNLP","env":{"ATOM_HOME":"/home/frank/.atom","NODE_PATH":"/usr/share/atom/resources/app.asar/exports","NODE_ENV":"production","LS_COLORS":"","XDG_MENU_PREFIX":"xfce-","LANG":"en_US.utf8","DISPLAY":":0.0","CHROME_DESKTOP":"Atom.desktop","XDG_VTNR":"7","SSH_AUTH_SOCK":"/tmp/ssh-ftV7uTtJKboV/agent.1663","CLASSPATH":"pikes-tintop-1.0-SNAPSHOT-jar-with-dependencies.jar:Semafor-3.0-alpha-04.jar:models/stanford-corenlp-3.5.2-models.jar","GLADE_CATALOG_PATH":":","XDG_SESSION_ID":"4","XDG_GREETER_DATA_DIR":"/var/lib/lightdm/data/frank","USER":"frank","GLADE_MODULE_PATH":":","DESKTOP_SESSION":"lightdm-xsession","PWD":"/home/frank","HOME":"/home/frank","SSH_AGENT_PID":"1704","QT_ACCESSIBILITY":"1","XDG_SESSION_TYPE":"x11","XDG_DATA_DIRS":"/usr/share/xfce4:/usr/local/share/:/usr/share/:/usr/share","XDG_SESSION_DESKTOP":"lightdm-xsession","GLADE_PIXMAP_PATH":":","GTK_MODULES":"gail:atk-bridge","SHELL":"/bin/bash","XDG_SEAT_PATH":"/org/freedesktop/DisplayManager/Seat0","XDG_CURRENT_DESKTOP":"XFCE","QT_LINUX_ACCESSIBILITY_ALWAYS_ON":"1","SHLVL":"1","XDG_SEAT":"seat0","LANGUAGE":"en_US:en","GDMSESSION":"lightdm-xsession","LOGNAME":"frank","DBUS_SESSION_BUS_ADDRESS":"unix:path=/run/user/1010/bus","XDG_RUNTIME_DIR":"/run/user/1010","XAUTHORITY":"/home/frank/.Xauthority","XDG_SESSION_PATH":"/org/freedesktop/DisplayManager/Session0","XDG_CONFIG_DIRS":"/etc/xdg","GOOGLE_API_KEY":"AIzaSyAQfxPJiounkhOjODEO5ZieffeBv6yft2Q","PATH":"/home/frank/Workspace8/atomtest/repo8/.stack-work/install/x86_64-linux-nopie/lts-8.1/8.0.2/bin:/home/frank/.stack/snapshots/x86_64-linux-nopie/lts-8.1/8.0.2/bin:/home/frank/.stack/programs/x86_64-linux/ghc-nopie-8.0.2/bin:/home/frank/.local/bin:/home/frank/.local/bin/:/home/frank/ghc-mod-sandbox/bin/:/home/frank/.cabal/bin:/home/frank/Debinstall83/deb9/amd9.bin:/home/frank/.bin:/home/frank/.bin/corenlp:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games","SESSIONMANAGER":"local/santafe:@/tmp/.ICE-unix/1714,unix/santafe:/tmp/.ICE-unix/1714","":"/usr/bin/env"},"encoding":"utf-8","maxBuffer":null} -0.001s: "ghc-mod: : cannot satisfy -package-id littext-0.1.5-7nQiLhZ2W7HKKsiHrohk7b\n (use -v for more information)\n" -0.001s: "Running /home/frank/.local/bin/ghc-mod check,/home/frank/Workspace8/atomtest/repo8/litNLP/src/Main.hs,-- failed with ",{"killed":false,"code":1,"signal":null,"cmd":"/home/frank/.local/bin/ghc-mod check /home/frank/Workspace8/atomtest/repo8/litNLP/src/Main.hs --"} 0s: {"killed":false,"code":1,"signal":null,"cmd":"/home/frank/.local/bin/ghc-mod check /home/frank/Workspace8/atomtest/repo8/litNLP/src/Main.hs --"}

Error at /home/frank/.atom/packages/haskell-ghc-mod/lib/util.coffee:60:26 at ChildProcess.exithandler (child_process.js:225:5) at emitTwo (events.js:106:13) at ChildProcess.emit (events.js:191:7) at maybeClose (internal/child_process.js:877:16) at Socket. (internal/child_process.js:334:11) at emitOne (events.js:96:13) at Socket.emit (events.js:188:7) at Pipe._handle.close [as _onclose] (net.js:493:12)

Commands

 -9:36.4.0 ide-haskell:prettify-file (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)

14x -9:08.5.0 core:close (input.hidden-input) -8:42.5.0 core:backspace (input.hidden-input) -0:38.8.0 core:copy (input.hidden-input) -0:35.9.0 core:save (input.hidden-input) -0:35.9.0 ide-haskell:prettify-file (atom-text-editor.editor.is-focused) -0:00.3.0 haskell-ghc-mod:check-file (input.hidden-input)

Config

{ "core": { "automaticallyUpdate": false, "closeEmptyWindows": false, "destroyEmptyPanes": false, "packagesWithKeymapsDisabled": [], "projectHome": "ssh://ascona/stFolder/AF/ServerOnly/repo8.git", "telemetryConsent": "no", "themes": [ "atom-light-ui", "atom-light-syntax" ] }, "haskell-ghc-mod": { "additionalPathDirectories": [ "/home/frank/.local/bin" ], "ghcModPath": "/home/frank/.local/bin/ghc-mod", "onSaveLint": false } }

Installed Packages

User

autocomplete-haskell, v0.7.2 (active) git-plus, v7.3.2 (active) haskell-ghc-mod, v1.19.7 (active) ide-haskell, v1.9.4 (active) ide-haskell-cabal, v1.7.5 (active) language-haskell, v1.12.1 (active) atom-dark-syntax, v0.28.0 (inactive) atom-dark-ui, v0.53.0 (inactive) atom-light-syntax, v0.29.0 (active) atom-light-ui, v0.46.0 (active) base16-tomorrow-dark-theme, v1.4.0 (inactive) base16-tomorrow-light-theme, v1.4.0 (inactive) one-dark-ui, v1.8.2 (inactive) one-light-ui, v1.8.2 (inactive) one-dark-syntax, v1.6.0 (inactive) one-light-syntax, v1.6.0 (inactive) solarized-dark-syntax, v1.1.1 (inactive) solarized-light-syntax, v1.1.1 (inactive) about, v1.7.2 (active) archive-view, v0.62.0 (active) autocomplete-atom-api, v0.10.0 (active) autocomplete-css, v0.14.1 (active) autocomplete-html, v0.7.2 (active) autocomplete-plus, v2.33.1 (active) autocomplete-snippets, v1.11.0 (active) autoflow, v0.29.0 (inactive) autosave, v0.23.2 (active) background-tips, v0.26.1 (active) bookmarks, v0.43.2 (active) bracket-matcher, v0.85.1 (active) command-palette, v0.39.1 (inactive) deprecation-cop, v0.55.1 (active) dev-live-reload, v0.47.0 (active) encoding-selector, v0.22.0 (active) exception-reporting, v0.40.0 (active) find-and-replace, v0.204.5 (active) fuzzy-finder, v1.4.0 (active) git-diff, v1.2.0 (active) go-to-line, v0.31.2 (inactive) grammar-selector, v0.48.2 (active) image-view, v0.60.0 (active) incompatible-packages, v0.26.1 (active) keybinding-resolver, v0.35.0 (active) line-ending-selector, v0.5.1 (active) link, v0.31.2 (inactive) markdown-preview, v0.159.3 (active) metrics, v1.1.3 (active) notifications, v0.65.1 (active) open-on-github, v1.2.1 (inactive) package-generator, v1.0.2 (inactive) settings-view, v0.244.0 (active) snippets, v1.0.4 (active) spell-check, v0.68.5 (active) status-bar, v1.6.0 (active) styleguide, v0.48.0 (active) symbols-view, v0.113.1 (inactive) tabs, v0.103.1 (active) timecop, v0.33.2 (active) tree-view, v0.211.1 (active) update-package-dependencies, v0.10.0 (active) welcome, v0.35.1 (active) whitespace, v0.35.0 (active) wrap-guide, v0.39.0 (active) language-c, v0.54.0 (active) language-clojure, v0.22.1 (active) language-coffee-script, v0.48.1 (active) language-csharp, v0.13.0 (active) language-css, v0.40.1 (active) language-gfm, v0.88.0 (active) language-git, v0.15.0 (active) language-go, v0.43.0 (active) language-html, v0.47.1 (active) language-hyperlink, v0.16.1 (active) language-java, v0.24.0 (active) language-javascript, v0.122.0 (active) language-json, v0.18.3 (active) language-less, v0.29.6 (active) language-make, v0.22.2 (active) language-mustache, v0.13.0 (active) language-objective-c, v0.15.1 (active) language-perl, v0.37.0 (active) language-php, v0.37.3 (active) language-property-list, v0.8.0 (active) language-python, v0.45.1 (active) language-ruby, v0.70.2 (active) language-ruby-on-rails, v0.25.1 (active) language-sass, v0.57.0 (active) language-shellscript, v0.23.0 (active) language-source, v0.9.0 (active) language-sql, v0.25.0 (active) language-text, v0.7.1 (active) language-todo, v0.29.1 (active) language-toml, v0.18.1 (active) language-xml, v0.34.12 (active) language-yaml, v0.27.1 (active)

Dev

No dev packages