Skip to content
This repository was archived by the owner on Mar 14, 2021. It is now read-only.
This repository was archived by the owner on Mar 14, 2021. It is now read-only.

ghc-mod crash, probably when no cabal file in super directory of project #205

@andrewufrank

Description

@andrewufrank

i have the impression this error occurs twice and seems related to the lack of a cabal file in the super directory of project. it is a mulitpackage project similar in structure to the example (in a single project, not loaded as two projects).

Atom: 1.14.3 x64
Electron: 1.3.13
OS: Debian GNU/Linux
Thrown From: haskell-ghc-mod package 1.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/repo8/litMain/src/Snippets2nt.hs
Args: --
message: Command failed: /home/frank/.local/bin/ghc-mod check /home/frank/Workspace8/repo8/litMain/src/Snippets2nt.hs --
ghc-mod: <command line>: cannot satisfy -package-id litNLP-0.0.4-FmHz13iphM0HijEdxOmASU
    (use -v for more information)

log:
-4.103s: "Trying to run ghc-modi in /home/frank/Workspace8/repo8/litMain"
-4.103s: "Checking for ghc-modi in /home/frank/Workspace8/repo8/litMain"
-4.103s: "Found running ghc-modi instance for /home/frank/Workspace8/repo8/litMain"
-4.103s: "Started interactive action block in /home/frank/Workspace8/repo8/litMain"
-4.102s: "Running ghc-modi command map-file","/home/frank/Workspace8/repo8/litMain/src/Snippets2nt.hs"
-4.102s: "Writing data to stdin..."
-4.101s: "Got response from ghc-modi:\nOK\n"
-4.101s: "Running ghc-modi command type","/home/frank/Workspace8/repo8/litMain/src/Snippets2nt.hs","-c","--",87,49
-3.992s: "ghc-modi said: EXCEPTION: types:"
-3.992s: "ghc-modi said:            <command line>: cannot satisfy -package-id litNLP-0.0.4-FmHz13iphM0HijEdxOmASU"
-3.991s: "ghc-modi said:                (use -v for more information)"
-3.991s: "Got response from ghc-modi:\nOK\n"
-3.991s: "Running ghc-modi command unmap-file","/home/frank/Workspace8/repo8/litMain/src/Snippets2nt.hs"
-3.991s: "Got response from ghc-modi:\nOK\n"
-3.99s: "Ended interactive action block in /home/frank/Workspace8/repo8/litMain"
-3.99s: "Trying to run ghc-modi in /home/frank/Workspace8/repo8/litMain"
-3.99s: "Checking for ghc-modi in /home/frank/Workspace8/repo8/litMain"
-3.99s: "Found running ghc-modi instance for /home/frank/Workspace8/repo8/litMain"
-3.99s: "Started interactive action block in /home/frank/Workspace8/repo8/litMain"
-3.99s: "Running ghc-modi command map-file","/home/frank/Workspace8/repo8/litMain/src/Snippets2nt.hs"
-3.99s: "Writing data to stdin..."
-3.989s: "Got response from ghc-modi:\nOK\n"
-3.989s: "Running ghc-modi command info","/home/frank/Workspace8/repo8/litMain/src/Snippets2nt.hs","--","nlpstate"
-3.88s: "ghc-modi said: EXCEPTION: info:"
-3.88s: "ghc-modi said:                <command line>: cannot satisfy -package-id litNLP-0.0.4-FmHz13iphM0HijEdxOmASU"
-3.879s: "ghc-modi said:                    (use -v for more information)"
-3.879s: "Got response from ghc-modi:\nCannot show info\nOK\n"
-3.879s: "Running ghc-modi command unmap-file","/home/frank/Workspace8/repo8/litMain/src/Snippets2nt.hs"
-3.878s: "Got response from ghc-modi:\nOK\n"
-3.878s: "Ended interactive action block in /home/frank/Workspace8/repo8/litMain"
-0.355s: "Snippets2nt did-save triggered"
-0.355s: "Snippets2nt updating"
-0.355s: "Snippets2nt did-save triggered"
-0.355s: "Snippets2nt updating"
-0.352s: "Running /home/frank/.local/bin/ghc-mod check,/home/frank/Workspace8/repo8/litMain/src/Snippets2nt.hs,-- with opts = ",{"cwd":"/home/frank/Workspace8/repo8/litMain","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","XDG_VTNR":"7","SSH_AUTH_SOCK":"/tmp/ssh-Ba3luyiOtyIi/agent.1676","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":"2","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":"1717","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":":","DESKTOP_STARTUP_ID":"wrapper-1.0/|usr|share|atom|atom/1781-0-santafe_TIME1914397","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/repo8/.stack-work/install/x86_64-linux-nopie/lts-8.2/8.0.2/bin:/home/frank/.stack/snapshots/x86_64-linux-nopie/lts-8.2/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","SESSION_MANAGER":"local/santafe:@/tmp/.ICE-unix/1727,unix/santafe:/tmp/.ICE-unix/1727","_":"/usr/bin/env"},"encoding":"utf-8","maxBuffer":null}
-0.342s: "Running /home/frank/.local/bin/ghc-mod browse,-d,-p,--,Snippets2nt with opts = ",{"cwd":"/home/frank/Workspace8/repo8/litMain","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","XDG_VTNR":"7","SSH_AUTH_SOCK":"/tmp/ssh-Ba3luyiOtyIi/agent.1676","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":"2","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":"1717","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":":","DESKTOP_STARTUP_ID":"wrapper-1.0/|usr|share|atom|atom/1781-0-santafe_TIME1914397","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/repo8/.stack-work/install/x86_64-linux-nopie/lts-8.2/8.0.2/bin:/home/frank/.stack/snapshots/x86_64-linux-nopie/lts-8.2/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","SESSION_MANAGER":"local/santafe:@/tmp/.ICE-unix/1727,unix/santafe:/tmp/.ICE-unix/1727","_":"/usr/bin/env"},"encoding":"utf-8","maxBuffer":null}
-0.331s: "Running /home/frank/.local/bin/ghc-mod browse,-d,-p,--,Snippets2nt with opts = ",{"cwd":"/home/frank/Workspace8/repo8/litMain","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","XDG_VTNR":"7","SSH_AUTH_SOCK":"/tmp/ssh-Ba3luyiOtyIi/agent.1676","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":"2","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":"1717","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":":","DESKTOP_STARTUP_ID":"wrapper-1.0/|usr|share|atom|atom/1781-0-santafe_TIME1914397","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/repo8/.stack-work/install/x86_64-linux-nopie/lts-8.2/8.0.2/bin:/home/frank/.stack/snapshots/x86_64-linux-nopie/lts-8.2/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","SESSION_MANAGER":"local/santafe:@/tmp/.ICE-unix/1727,unix/santafe:/tmp/.ICE-unix/1727","_":"/usr/bin/env"},"encoding":"utf-8","maxBuffer":null}
-0.318s: "Running /home/frank/.local/bin/ghc-mod check,/home/frank/Workspace8/repo8/litMain/src/Snippets2nt.hs,-- with opts = ",{"cwd":"/home/frank/Workspace8/repo8/litMain","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","XDG_VTNR":"7","SSH_AUTH_SOCK":"/tmp/ssh-Ba3luyiOtyIi/agent.1676","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":"2","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":"1717","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":":","DESKTOP_STARTUP_ID":"wrapper-1.0/|usr|share|atom|atom/1781-0-santafe_TIME1914397","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/repo8/.stack-work/install/x86_64-linux-nopie/lts-8.2/8.0.2/bin:/home/frank/.stack/snapshots/x86_64-linux-nopie/lts-8.2/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","SESSION_MANAGER":"local/santafe:@/tmp/.ICE-unix/1727,unix/santafe:/tmp/.ICE-unix/1727","_":"/usr/bin/env"},"encoding":"utf-8","maxBuffer":null}
-0.021s: "ghc-mod: <command line>: cannot satisfy -package-id litNLP-0.0.4-FmHz13iphM0HijEdxOmASU\n    (use -v for more information)\n"
-0.021s: "Running /home/frank/.local/bin/ghc-mod check,/home/frank/Workspace8/repo8/litMain/src/Snippets2nt.hs,-- failed with ",{"killed":false,"code":1,"signal":null,"cmd":"/home/frank/.local/bin/ghc-mod check /home/frank/Workspace8/repo8/litMain/src/Snippets2nt.hs --"}
0s: {"killed":false,"code":1,"signal":null,"cmd":"/home/frank/.local/bin/ghc-mod check /home/frank/Workspace8/repo8/litMain/src/Snippets2nt.hs --"}

Error
    at /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.<anonymous> (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

  8x -4:40.9.0 core:backspace (input.hidden-input)
     -4:35.6.0 ide-haskell:close-tooltip (input.hidden-input)
     -4:35.6.0 autocomplete-haskell:conceal-hint-panel (input.hidden-input)
     -4:35.6.0 autocomplete-plus:cancel (input.hidden-input)
     -4:18.1.0 find-and-replace:show (input.hidden-input)
     -4:14.8.0 project-find:show (input.hidden-input)
 11x -2:09.5.0 core:backspace (input.hidden-input)
     -1:58.1.0 editor:newline (input.hidden-input)
     -1:55.6.0 editor:toggle-line-comments (input.hidden-input)
     -1:37.2.0 core:save (input.hidden-input)
  2x -1:37.2.0 ide-haskell:prettify-file (atom-text-editor.editor.is-focused)
     -1:08.1.0 editor:newline (input.hidden-input)
  3x -1:04.1.0 core:backspace (input.hidden-input)
     -0:50.3.0 core:move-down (input.hidden-input)
     -0:17.4.0 core:save (input.hidden-input)
  2x -0:17.4.0 ide-haskell:prettify-file (atom-text-editor.editor)

Non-Core Packages

autocomplete-haskell 0.7.2 
busy 0.7.0 
git-plus 7.3.3 
haskell-ghc-mod 1.19.7 
ide-haskell 1.9.5 
ide-haskell-cabal 1.8.1 
language-haskell 1.12.1 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions