Closed lwdye closed 8 years ago
Does showing symbol information work for you? Because it's symbol info that times out. After one minute of no response no less.
Yes, symbol information is working. Possibly related is that Atom is occasionally unresponsive after a period of inactivity and requires relaunch.
From: Nikolay Yakimov Reply-To: atom-haskell/haskell-ghc-mod Date: Monday, January 11, 2016 at 11:43 AM To: atom-haskell/haskell-ghc-mod Cc: Lester Dye Subject: Re: [haskell-ghc-mod] Haskell-ghc-mod: ghc-mod interactive command info failed with error Timeout (#87)
Does showing symbol information work for you? Because it's symbol info that times out. After one minute of no response no less.
— Reply to this email directly or view it on GitHubhttps://github.com/atom-haskell/haskell-ghc-mod/issues/87#issuecomment-170648740.
It might be related to #89. Let me know if it happens again post 1.5.7
This occurs to me using 1.6.6. It happens whenever I start atom
and it opens to a previously unbuilt Haskell file. It seems like it's kicking off a huge stack
build that causes a timeout.
I'm getting this with 1.11.3
, it's also not feasible for me to use stack exec atom
as I'm a NixOS user.
@seanparsons -- try to run stack built
or stack setup
for your project. It's probably that.
@lierdakil Running them has no effect on this issue.
Okay. Then paste Atom's error report here (or create a new issue)
then paste.
@lierdakil I'm getting the version of that error which refers to this issue: "The error was thrown from the haskell-ghc-mod package. This issue has already been reported."
caps: {"version":[5,5,0,0],"legacyInteractive":true,"fileMap":true,"rootExec":false,"quoteArgs":true,"optparse":true,"typeConstraints":false,"browseParents":false,"interactiveCaseSplit":false}
URI: /home/sean/workspace/project-test/src/Main.hs
Args: --,11,19
message:
log:
-2.262s: Trying to run ghc-modi in /home/sean/workspace/project-test
-2.262s: Checking for ghc-modi in /home/sean/workspace/project-test
-2.262s: Spawning new ghc-modi instance for /home/sean/workspace/project-test with options.cwd = /home/sean/workspace/project-test,options.env = [object Object],options.encoding = utf-8
-2.261s: Spawning new ghc-modi instance for /home/sean/workspace/project-test with options.cwd = /home/sean/workspace/project-test,options.env = [object Object],options.encoding = utf-8
-2.252s: Started interactive action block in /home/sean/workspace/project-test
-2.251s: Running ghc-modi command map-file,/home/sean/workspace/project-test/src/Main.hs
-2.25s: Writing data to stdin...
-0.141s: ghc-modi said: cabal-helper-0.6.3.1-Cabal-1.22.4.0: getLibraryClbi: empty IORef
-0.138s: ghc-modi said: ghc-mod: readCreateProcess: /nix/store/izwpr3aimm4bmfqdsfhkxmqs9a1r5abc-cabal-helper-0.6.3.1/libexec/cabal-helper-wrapper "--with-ghc=/nix/store/4q4974dp1kapkgdvrd06x46f1k8rxcgf-ghc-7.10.2/bin/ghc" "--with-ghc-pkg=/nix/store/4q4974dp1kapkgdvrd06x46f1k8rxcgf-ghc-7.10.2/bin/ghc-pkg" "--with-cabal=cabal" "/home/sean/workspace/project-test" "/home/sean/workspace/project-test/.stack-work/dist/x86_64-linux-nix/Cabal-1.22.4.0" "package-db-stack" "entrypoints" "source-dirs" "ghc-options" "ghc-src-options" "ghc-pkg-options" "ghc-merged-pkg-options" "ghc-lang-options" "licenses" "flags" "config-flags" "non-default-config-flags" "compiler-version" (exit 1): failed
-0.002s: ghc-modi for /home/sean/workspace/project-test ended with 1
-0.001s: ghc-modi for /home/sean/workspace/project-test ended with 1
-0.001s: Running ghc-modi command unmap-file,/home/sean/workspace/project-test/src/Main.hs
0s: ghc-modi crashed
Show Stack Trace
@seanparsons, Atom's algorithm for searching "already reported" issues is pitifully stupid, so... there are a lot of false positives.
Anyway, this is not a timeout issue. Looks like cabal-helper gets horribly confused about NixOS paths or something. I'm not familiar enough with cabal-helper's inner workings to figure out what's going on exactly.
You might want to check if this whole thing works without Atom, by running this in a terminal for example:
ghc-mod type /home/sean/workspace/project-test/src/Main.hs 11 19
If it fails, it would probably be a good idea to report this upstream: https://github.com/DanielG/ghc-mod. Do include ghc-mod debug
and ghc-mod --verbose 7 <command>
output in the report.
If it works from terminal, but not from Atom... Then it will be challenging to catch, since it will probably be some subtle environment difference or something along those lines. Please open a new issue for that though.
This error keeps occurring. I am just normally editing haskell code. Atom Version: 1.8.0 System: Mac OS X 10.11.5 Thrown From: haskell-ghc-mod package, v1.14.6
Haskell-ghc-mod: ghc-mod interactive command info failed with error Timeout
At caps: undefined
URI: /Users/user/Code/haskell-test/src/Main.hs
Args: --,Main
message:
log:
-0.001s: "Trying to run ghc-modi in /Users/user/Code/haskell-test"
-0.001s: "Checking for ghc-modi in /Users/user/Code/haskell-test"
-0.001s: "Found running ghc-modi instance for /Users/user/Code/haskell-test"
0s: "Timeout"
Timeout
at module.exports.Util.mkError (/Users/user/.atom/packages/haskell-ghc-mod/lib/util.coffee:224:15)
at /Users/user/.atom/packages/haskell-ghc-mod/lib/ghc-mod/interactive-process.coffee:82:20
-6:16.9.0 terminal-plus:paste (textarea.)
{
"core": {
"customFileTypes": {
"source.ini": [
".buckconfig",
".flowconfig"
],
"source.json": [
".arcconfig",
"BUCK.autodeps"
],
"source.python": [
"BUCK"
]
},
"disabledPackages": [
"whitespace",
"alignment",
"atom-alignment"
],
"ignoredNames": [
".git",
".hg",
".svn",
".DS_Store",
"._*",
"Thumbs.db",
".live-archive"
],
"projectHome": "/Users/user/Code",
"themes": [
"one-dark-ui",
"monokai"
]
},
"haskell-ghc-mod": {}
}
# User
aligner, v0.22.0
atom-ternjs, v0.14.2
atom-typescript, v8.11.0
autocomplete-haskell, v0.6.5
browser-plus, v0.0.60
build, v0.64.0
busy, v0.5.0
change-case, v0.6.0
color-picker, v2.1.1
editorconfig, v1.4.1
file-icons, v1.7.15
haskell-ghc-mod, v1.14.6
haskell-pointfree, v0.1.3
haxe, v0.8.14
ide-haskell, v1.6.5
ide-haskell-cabal, v1.4.1
ide-haskell-repl, v0.0.23
jshint, v1.8.5
language-elm, v1.5.0
language-haskell, v1.7.17
language-haxe, v0.4.4
language-lisp, v0.2.0
linter, v1.11.14
linter-elm-make, v0.10.0
live-archive, v0.1.15
merge-conflicts, v1.4.4
minimap, v4.24.6
monokai, v0.18.0
navigate, v0.1.15
nuclide-diff-view, vundefined
one-dark-ui, v1.4.0
pdf-view, v0.50.0
pigments, v0.29.2
save-session, vundefined
ssh-config, v0.10.1
symbols-tree-view, v0.13.2
tabs-to-spaces, v1.0.2
terminal-plus, v0.14.5
travis-ci-status, v1.1.1
vim-mode, v0.65.1
vim-surround, v0.8.1
zentabs, v0.8.7
# Dev
No dev packages
[Enter steps to reproduce below:]
It is unclear how to reproduce this.
Running stack exec atom ./
ghc-mod check src/OSI.hs issues no error from shell
Largely everything works fine. Occasionally gcc-mod is throwing this error within atom.
Atom Version: 1.3.3 System: Mac OS X 10.10.5 Thrown From: haskell-ghc-mod package, v1.5.5
Stack Trace
Haskell-ghc-mod: ghc-mod interactive command info failed with error Timeout
Commands
Config
Installed Packages