Closed lukexi closed 8 years ago
Aha, the hardcoded ":"s are pretty clear here : ) https://github.com/commercialhaskell/stack/blob/master/src/Stack/Ide.hs
(still not sure why ;s aren't working with ghc-pkg though... it works with passing --package-db multiple times as a last resort)
OK, a little further with this patch https://github.com/lukexi/stack/commit/604a61bf2798da7c83227cb1a432822d7c176702
I now get this error.
lukex_000@Marble MINGW64 ~/Projects/linear-extra
$ stack ide start
Usage: stack-ide.exe [--ghc-option OPT] [--include PATH] [--rts-option OPT]
[--dist-dir DIR] [--dir DIR] [--local-work-dir DIR]
[--ide-backend-tools-path PATH] [--extra-path PATH]
[--package-db DIR] [--keep-tmp-files] [-v|--verbose]
[--version]
Start a new session
Process exited with ExitFailure 1: C:\Users\lukex_000\AppData\Roaming\local\bin\stack-ide.exe --verbose --include=C:\msys64\home\lukex_000\Projects\linear-extra\;C:\msys64\home\lukex_000\Projects\linear-extra\src\;C:\msys64\home\lukex_000\Projects\linear-extra\.stack-work\dist\d96ab9d9\build\autogen\;C:\msys64\home\lukex_000\Projects\linear-extra\.stack-work\dist\d96ab9d9\build\;C:\msys64\home\lukex_000\Projects\linear-extra\;C:\msys64\home\lukex_000\Projects\linear-extra\test\;C:\msys64\home\lukex_000\Projects\linear-extra\.stack-work\dist\d96ab9d9\build\autogen\;C:\msys64\home\lukex_000\Projects\linear-extra\.stack-work\dist\d96ab9d9\build\ --local-work-dir=C:\msys64\home\lukex_000\Projects\linear-extra\ --ide-backend-tools-path=C:\msys64\home\lukex_000\Projects\linear-extra\.stack-work\install\x86_64-windows\lts-3.7\7.10.2\bin\;C:\Users\lukex_000\AppData\Roaming\stack\snapshots\x86_64-windows\lts-3.7\7.10.2\bin\;C:\msys64\usr\local\ghc\mingw\bin;C:\msys64\usr\local\ghc\mingw\lib;C:\msys64\mingw64\bin;C:\msys64\usr\local\bin;C:\msys64\usr\bin;C:\msys64\usr\bin;C:\Program Files\cmder_mini\vendor\conemu-maximus5;C:\Program Files\cmder_mini\vendor\conemu-maximus5\ConEmu;C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\Intel\iCLS Client;C:\Program Files\Intel\iCLS Client;C:\Program Files\Broadcom\Broadcom 802.11 Network Adapter;C:\Program Files (x86)\Python27;C:\Program Files (x86)\Python27\Scripts;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\WIDCOMM\Bluetooth Software;C:\Program Files\WIDCOMM\Bluetooth Software\syswow64;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Microsoft SQL Server\110\Tools\Binn;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit;C:\msys64\usr\local\ghc\bin;C:\Users\lukex_000\AppData\Roaming\local\bin;C:\Users\lukex_000\AppData\Roaming\cabal\bin;C:\Program Files\Sublime Text 3;C:\msys64\usr\bin\site_perl;C:\msys64\usr\bin\vendor_perl;C:\msys64\usr\bin\core_perl --dist-dir=C:\msys64\home\lukex_000\Projects\linear-extra\.stack-work\dist\d96ab9d9\ --ghc-option=-hide-all-packages --ghc-option=-iC:\msys64\home\lukex_000\Projects\linear-extra\ --ghc-option=-iC:\msys64\home\lukex_000\Projects\linear-extra\src\ --ghc-option=-iC:\msys64\home\lukex_000\Projects\linear-extra\.stack-work\dist\d96ab9d9\build\autogen\ --ghc-option=-iC:\msys64\home\lukex_000\Projects\linear-extra\.stack-work\dist\d96ab9d9\build\ --ghc-option=-stubdir=C:\msys64\home\lukex_000\Projects\linear-extra\.stack-work\dist\d96ab9d9\build\ --ghc-option=-optP-include --ghc-option=-optPC:\msys64\home\lukex_000\Projects\linear-extra\.stack-work\dist\d96ab9d9\build\autogen\cabal_macros.h --ghc-option=-package=base --ghc-option=-package=binary-0.7.5.0 --ghc-option=-package=lens-4.12.3 --ghc-option=-package=linear-1.19.1.3 --ghc-option=-rtsopts --ghc-option=-with-rtsopts=-N --ghc-option=-iC:\msys64\home\lukex_000\Projects\linear-extra\ --ghc-option=-iC:\msys64\home\lukex_000\Projects\linear-extra\test\ --ghc-option=-iC:\msys64\home\lukex_000\Projects\linear-extra\.stack-work\dist\d96ab9d9\build\autogen\ --ghc-option=-iC:\msys64\home\lukex_000\Projects\linear-extra\.stack-work\dist\d96ab9d9\build\ --ghc-option=-stubdir=C:\msys64\home\lukex_000\Projects\linear-extra\.stack-work\dist\d96ab9d9\build\ --ghc-option=-optP-include --ghc-option=-optPC:\msys64\home\lukex_000\Projects\linear-extra\.stack-work\dist\d96ab9d9\build\autogen\cabal_macros.h --ghc-option=-package=base --package-db=C:\Users\lukex_000\AppData\Roaming\stack\snapshots\x86_64-windows\lts-3.7\7.10.2\pkgdb\ --package-db=C:\msys64\home\lukex_000\Projects\linear-extra\.stack-work\install\x86_64-windows\lts-3.7\7.10.2\pkgdb\
Not quite sure what to make of that yet; the arguments all look fine.
Aha, ide-backend only expects one --package-db argument and it turns out things work just fine using the platform searchpath separator for the --package-db argument after all. This is the new patch https://github.com/lukexi/stack/commit/09e504927d734f7150cd1c848e0984de81f75e98
I can start up stack-ide now!
It seems to hang here:
lukex_000@Marble MINGW64 ~/Projects/linear-extra
$ stack ide start
{"tag":"ResponseWelcome","contents":[0,1,1]}
{"tag":"ResponseLog","contents":"[Info] Initializing ide-backend session @(ideba_FcNvVmq71td3LXgYeLF4lp:IdeSession.Update .\\IdeSession\\Update.hs:197:3)\n"}
{"tag":"ResponseLog","contents":"[Debug] Session dir = C:\\msys64\\home\\lukex_000\\Projects\\linear-extra\\session.4464 @(ideba_FcNvVmq71td3LXgYeLF4lp:IdeSession.Update .\\IdeSession\\Update.hs:210:3)\n"}
{"tag":"ResponseLog","contents":"[Debug] Dist dir = C:\\msys64\\home\\lukex_000\\Projects\\linear-extra\\.stack-work\\dist\\d96ab9d9\\ @(ideba_FcNvVmq71td3LXgYeLF4lp:IdeSession.Update .\\IdeSession\\Update.hs:212:3)\n"}
{"tag":"ResponseLog","contents":"[Debug] Local working dir = C:\\msys64\\home\\lukex_000\\Projects\\linear-extra\\ @(ideba_FcNvVmq71td3LXgYeLF4lp:IdeSession.Update .\\IdeSession\\Update.hs:219:17)\n"}
{"tag":"ResponseLog","contents":"[Info] Searching for ide-backend-server on this path: C:\\msys64\\home\\lukex_000\\Projects\\linear-extra\\.stack-work\\install\\x86_64-windows\\lts-3.7\\7.10.2\\bin\\:C:\\Users\\lukex_000\\AppData\\Roaming\\stack\\snapshots\\x86_64-windows\\lts-3.7\\7.10.2\\bin\\:C:\\msys64\\usr\\local\\ghc\\mingw\\bin:C:\\msys64\\usr\\local\\ghc\\mingw\\lib:C:\\msys64\\mingw64\\bin:C:\\msys64\\usr\\local\\bin:C:\\msys64\\usr\\bin:C:\\msys64\\usr\\bin:C:\\Program Files\\cmder_mini\\vendor\\conemu-maximus5:C:\\Program Files\\cmder_mini\\vendor\\conemu-maximus5\\ConEmu:C:\\ProgramData\\Oracle\\Java\\javapath:C:\\Program Files (x86)\\Intel\\iCLS Client:C:\\Program Files\\Intel\\iCLS Client:C:\\Program Files\\Broadcom\\Broadcom 802.11 Network Adapter:C:\\Program Files (x86)\\Python27:C:\\Program Files (x86)\\Python27\\Scripts:C:\\Windows\\system32:C:\\Windows:C:\\Windows\\System32\\Wbem:C:\\Windows\\System32\\WindowsPowerShell\\v1.0:C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common:C:\\Program Files\\WIDCOMM\\Bluetooth Software:C:\\Program Files\\WIDCOMM\\Bluetooth Software\\syswow64:C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\DAL:C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\DAL:C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\IPT:C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\IPT:C:\\Program Files\\Microsoft SQL Server\\110\\Tools\\Binn:C:\\Program Files (x86)\\Windows Kits\\8.1\\Windows Performance Toolkit:C:\\msys64\\usr\\local\\ghc\\bin:C:\\Users\\lukex_000\\AppData\\Roaming\\local\\bin:C:\\Users\\lukex_000\\AppData\\Roaming\\cabal\\bin:C:\\Program Files\\Sublime Text 3:C:\\msys64\\usr\\bin\\site_perl:C:\\msys64\\usr\\bin\\vendor_perl:C:\\msys64\\usr\\bin\\core_perl @(ideba_FcNvVmq71td3LXgYeLF4lp:IdeSession.RPC.Client .\\IdeSession\\RPC\\Client.hs:319:5)\n"}
{"tag":"ResponseLog","contents":"[Info] Found ide-backend-server - using this one: C:\\Users\\lukex_000\\AppData\\Roaming\\local\\bin\\ide-backend-server.exe @(ideba_FcNvVmq71td3LXgYeLF4lp:IdeSession.RPC.Client .\\IdeSession\\RPC\\Client.hs:321:5)\n"}
{"tag":"ResponseLog","contents":"[Debug] Recompile required, starting... @(ideba_FcNvVmq71td3LXgYeLF4lp:IdeSession.Update.ExecuteSessionUpdate .\\IdeSession\\Update\\ExecuteSessionUpdate.hs:223:5)\n"}
@dpratt71 thanks for the report in ide-backend — I forgot to post a followup here that if I send a message like RequestGetSourceErrors
I get the same getDirectoryContents: invalid argument
error. I will take a look at this later today and see if I can figure out what's going on. How did you run the trace?
@lukexi, I made a small fix to the Windows build of ide-backend
, see the pull request here. Now, when using your patched version of stack
, stack ide start
doesn't hang but fails one step further down the line. Like so:
{"tag":"ResponseWelcome","contents":[0,1,1]}
{"tag":"ResponseLog","contents":"[Info] Initializing ide-backend session @(ideba_FcNvVmq71td3LXgYeLF4lp:IdeSession.Update .\\IdeSession\\Update.hs:197:3)\n"}
{"tag":"ResponseLog","contents":"[Debug] Session dir = D:\\linear-extra\\session.4796 @(ideba_FcNvVmq71td3LXgYeLF4lp:IdeSession.Update .\\IdeSession\\Update.hs:210:3)\n"}
{"tag":"ResponseLog","contents":"[Debug] Dist dir = D:\\linear-extra\\.stack-work\\dist\\d96ab9d9\\ @(ideba_FcNvVmq71td3LXgYeLF4lp:IdeSession.Update .\\IdeSession\\Update.hs:212:3)\n"}
{"tag":"ResponseLog","contents":"[Debug] Local working dir = D:\\linear-extra\\ @(ideba_FcNvVmq71td3LXgYeLF4lp:IdeSession.Update .\\IdeSession\\Update.hs:219:17)\n"}
{"tag":"ResponseLog","contents":"[Info] Searching for ide-backend-server on this path: D:\\linear-extra\\.stack-work\\install\\x86_64-windows\\lts-3.7\\7.10.2\\bin\\:C:\\Users\\Daniel\\AppData\\Roaming\\stack\\snapshots\\x86_64-windows\\lts-3.7\\7.10.2\\bin\\ @(ideba_FcNvVmq71td3LXgYeLF4lp:IdeSession.RPC.Client .\\IdeSession\\RPC\\Client.hs:319:5)\n"}
{"tag":"ResponseLog","contents":"[Info] Found ide-backend-server - using this one: C:\\Users\\Daniel\\AppData\\Roaming\\local\\bin\\ide-backend-server.exe @(ideba_FcNvVmq71td3LXgYeLF4lp:IdeSession.RPC.Client .\\IdeSession\\RPC\\Client.hs:321:5)\n"}
{"tag":"ResponseLog","contents":"[Debug] Recompile required, starting... @(ideba_FcNvVmq71td3LXgYeLF4lp:IdeSession.Update.ExecuteSessionUpdate .\\IdeSession\\Update\\ExecuteSessionUpdate.hs:223:5)\n"}
{"tag":"ResponseFatalError","contents":"<stdin>: hGetBufSome: resource exhausted (Not enough space)"}
Process exited with ExitFailure 1: C:\Users\Daniel\AppData\Roaming\local\bin\stack-ide.exe
--verbose
--include=D:\linear-extra\;D:\linear-extra\src\;D:\linear-extra\.stack-work\dist\d96ab9d9\build\autogen\;D:\linear-extra\.stack-work\dist\d96ab9d9\build\;D:\linear-extra\;D:\linear-extra\test\;D:\linear-extra\.stack-work\dist\d96ab9d9\build\autogen\;D:\linear-extra\.stack-work\dist\d96ab9d9\build\
--local-work-dir=D:\linear-extra\
--ide-backend-tools-path=D:\linear-extra\.stack-work\install\x86_64-windows\lts-3.7\7.10.2\bin\;C:\Users\Daniel\AppData\Roaming\stack\snapshots\x86_64-windows\lts-3.7\7.10.2\bin\;
--dist-dir=D:\linear-extra\.stack-work\dist\d96ab9d9\
--ghc-option=-hide-all-packages
--ghc-option=-iD:\linear-extra\
--ghc-option=-iD:\linear-extra\src\
--ghc-option=-iD:\linear-extra\.stack-work\dist\d96ab9d9\build\autogen\
--ghc-option=-iD:\linear-extra\.stack-work\dist\d96ab9d9\build\
--ghc-option=-stubdir=D:\linear-extra\.stack-work\dist\d96ab9d9\build\
--ghc-option=-package=base
--ghc-option=-package=binary-0.7.5.0
--ghc-option=-package=lens-4.12.3
--ghc-option=-package=linear-1.19.1.3
--ghc-option=-rtsopts
--ghc-option=-with-rtsopts=-N
--ghc-option=-iD:\linear-extra\
--ghc-option=-iD:\linear-extra\test\
--ghc-option=-iD:\linear-extra\.stack-work\dist\d96ab9d9\build\autogen\
--ghc-option=-iD:\linear-extra\.stack-work\dist\d96ab9d9\build\
--ghc-option=-stubdir=D:\linear-extra\.stack-work\dist\d96ab9d9\build\
--ghc-option=-package=base
--package-db=C:\Users\Daniel\AppData\Roaming\stack\snapshots\x86_64-windows\lts-3.7\7.10.2\pkgdb\;D:\linear-extra\.stack-work\install\x86_64-windows\lts-3.7\7.10.2\pkgdb\
@ncreep interesting! I've got this now:
lukex_000@Marble MINGW64 ~/Projects/linear-extra
$ stack ide start linear-extra
{"tag":"ResponseWelcome","contents":[0,1,1]}
{"tag":"ResponseLog","contents":"[Info] Initializing ide-backend session @(ideba_FcNvVmq71td3LXgYeLF4lp:IdeSession.Update .\\IdeSession\\Update.hs:197:3)\n"}
{"tag":"ResponseLog","contents":"[Debug] Session dir = C:\\msys64\\home\\lukex_000\\Projects\\linear-extra\\session.10208 @(ideba_FcNvVmq71td3LXgYeLF4lp:IdeSession.Update .\\IdeSession\\Update.hs:210:3)\n"}
{"tag":"ResponseLog","contents":"[Debug] Dist dir = C:\\msys64\\home\\lukex_000\\Projects\\linear-extra\\.stack-work\\dist\\d96ab9d9\\ @(ideba_FcNvVmq71td3LXgYeLF4lp:IdeSession.Update .\\IdeSession\\Update.hs:212:3)\n"}
{"tag":"ResponseLog","contents":"[Debug] Local working dir = C:\\msys64\\home\\lukex_000\\Projects\\linear-extra\\ @(ideba_FcNvVmq71td3LXgYeLF4lp:IdeSession.Update .\\IdeSession\\Update.hs:219:17)\n"}
{"tag":"ResponseLog","contents":"[Info] Searching for ide-backend-server on this path: C:\\msys64\\home\\lukex_000\\Projects\\linear-extra\\.stack-work\\install\\x86_64-windows\\lts-3.7\\7.10.2\\bin\\:C:\\Users\\lukex_000\\AppData\\Roaming\\stack\\snapshots\\x86_64-windows\\lts-3.7\\7.10.2\\bin\\:C:\\msys64\\usr\\local\\ghc\\mingw\\bin:C:\\msys64\\usr\\local\\ghc\\mingw\\lib:C:\\msys64\\mingw64\\bin:C:\\msys64\\usr\\local\\bin:C:\\msys64\\usr\\bin:C:\\msys64\\usr\\bin:C:\\Program Files\\cmder_mini\\vendor\\conemu-maximus5:C:\\Program Files\\cmder_mini\\vendor\\conemu-maximus5\\ConEmu:C:\\ProgramData\\Oracle\\Java\\javapath:C:\\Program Files (x86)\\Intel\\iCLS Client:C:\\Program Files\\Intel\\iCLS Client:C:\\Program Files\\Broadcom\\Broadcom 802.11 Network Adapter:C:\\Program Files (x86)\\Python27:C:\\Program Files (x86)\\Python27\\Scripts:C:\\Windows\\system32:C:\\Windows:C:\\Windows\\System32\\Wbem:C:\\Windows\\System32\\WindowsPowerShell\\v1.0:C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common:C:\\Program Files\\WIDCOMM\\Bluetooth Software:C:\\Program Files\\WIDCOMM\\Bluetooth Software\\syswow64:C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\DAL:C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\DAL:C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\IPT:C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\IPT:C:\\Program Files\\Microsoft SQL Server\\110\\Tools\\Binn:C:\\Program Files (x86)\\Windows Kits\\8.1\\Windows Performance Toolkit:C:\\msys64\\usr\\local\\ghc\\bin:C:\\Users\\lukex_000\\AppData\\Roaming\\local\\bin:C:\\Users\\lukex_000\\AppData\\Roaming\\cabal\\bin:C:\\Program Files\\Sublime Text 3:C:\\msys64\\usr\\bin\\site_perl:C:\\msys64\\usr\\bin\\vendor_perl:C:\\msys64\\usr\\bin\\core_perl @(ideba_FcNvVmq71td3LXgYeLF4lp:IdeSession.RPC.Client .\\IdeSession\\RPC\\Client.hs:319:5)\n"}
{"tag":"ResponseLog","contents":"[Info] Found ide-backend-server - using this one: C:\\Users\\lukex_000\\AppData\\Roaming\\local\\bin\\ide-backend-server.exe @(ideba_FcNvVmq71td3LXgYeLF4lp:IdeSession.RPC.Client .\\IdeSession\\RPC\\Client.hs:321:5)\n"}
ide-backend-server.exe: warning: _tzset from msvcrt is linked instead of __imp__tzset
{"tag":"ResponseLog","contents":"[Debug] Recompile required, starting... @(ideba_FcNvVmq71td3LXgYeLF4lp:IdeSession.Update.ExecuteSessionUpdate .\\IdeSession\\Update\\ExecuteSessionUpdate.hs:223:5)\n"}
{"tag":"RequestGetSourceErrors", "contents":[]}
{"tag":"ResponseGetSourceErrors","contents":[{"errorSpan":{"tag":"TextSpan","contents":"<no location info>"},"errorKind":"KindError","errorMsg":"module `Paths_linear_extra' is defined in multiple files: C:\\msys64\\home\\lukex_000\\Projects\\linear-extra\\.stack-work\\dist\\d96ab9d9\\build\\autogen\\Paths_linear_extra.hs\n
C:\\msys64\\home\\lukex_000\\Projects\\linear-extra\\.stack-work\\dist\\x86_64-windows\\Cabal-1.22.4.0\\build\\autogen\\Paths_linear_extra.hs"}]}
@ncreep I can't reproduce your error but I wonder if re-enabling buffering in https://github.com/commercialhaskell/stack-ide/blob/master/stack-ide/src/main/Main.hs#L58 has any effect? (commenting out that line should do the trick)
@lukexi, even with buffering enabled, I still get the same error. A quick search shows similar issues with lazy bytestrings on Windows 64 bit (see here). But the code that actually throws the exception uses strict bytestrings. So I still have no idea what's going on.
Are you running a 32 or 64 bit machine?
Hmm weird. I'm on 64bit. I'll see what else I can figure out too!
@ncreep do you mind opening a second issue for that one, by the way?
I've gotten further (nearly all the way!) - after deleting .stack-work/
:
{"tag":"ResponseWelcome","contents":[0,1,1]}
{"tag":"ResponseLog","contents":"[Info] Initializing ide-backend session @(ideba_F6bAQFcZd5YGI7e12HY89O:IdeSession.Update .\\IdeSession\\Update.hs:197:3)\n"}
{"tag":"ResponseLog","contents":"[Debug] Session dir = C:\\msys64\\home\\lukex_000\\Projects\\linear-extra\\session.9128 @(ideba_F6bAQFcZd5YGI7e12HY89O:IdeSession.Update .\\IdeSession\\Update.hs:210:3)\n"}
{"tag":"ResponseLog","contents":"[Debug] Dist dir = C:\\msys64\\home\\lukex_000\\Projects\\linear-extra\\.stack-work\\dist\\d96ab9d9\\ @(ideba_F6bAQFcZd5YGI7e12HY89O:IdeSession.Update .\\IdeSession\\Update.hs:212:3)\n"}
{"tag":"ResponseLog","contents":"[Debug] Local working dir = C:\\msys64\\home\\lukex_000\\Projects\\linear-extra\\ @(ideba_F6bAQFcZd5YGI7e12HY89O:IdeSession.Update .\\IdeSession\\Update.hs:219:17)\n"}
{"tag":"ResponseLog","contents":"[Info] Searching for ide-backend-server on this path: C:\\msys64\\home\\lukex_000\\Projects\\linear-extra\\.stack-work\\install\\x86_64-windows\\lts-3.7\\7.10.2\\bin\\:C:\\Users\\lukex_000\\AppData\\Roaming\\stack\\snapshots\\x86_64-windows\\lts-3.7\\7.10.2\\bin\\:C:\\msys64\\usr\\local\\ghc\\mingw\\bin:C:\\msys64\\usr\\local\\ghc\\mingw\\lib:C:\\msys64\\mingw64\\bin:C:\\msys64\\usr\\local\\bin:C:\\msys64\\usr\\bin:C:\\msys64\\usr\\bin:C:\\Program Files\\cmder_mini\\vendor\\conemu-maximus5:C:\\Program Files\\cmder_mini\\vendor\\conemu-maximus5\\ConEmu:C:\\ProgramData\\Oracle\\Java\\javapath:C:\\Program Files (x86)\\Intel\\iCLS Client:C:\\Program Files\\Intel\\iCLS Client:C:\\Program Files\\Broadcom\\Broadcom 802.11 Network Adapter:C:\\Program Files (x86)\\Python27:C:\\Program Files (x86)\\Python27\\Scripts:C:\\Windows\\system32:C:\\Windows:C:\\Windows\\System32\\Wbem:C:\\Windows\\System32\\WindowsPowerShell\\v1.0:C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common:C:\\Program Files\\WIDCOMM\\Bluetooth Software:C:\\Program Files\\WIDCOMM\\Bluetooth Software\\syswow64:C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\DAL:C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\DAL:C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\IPT:C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\IPT:C:\\Program Files\\Microsoft SQL Server\\110\\Tools\\Binn:C:\\Program Files (x86)\\Windows Kits\\8.1\\Windows Performance Toolkit:C:\\msys64\\usr\\local\\ghc\\bin:C:\\Users\\lukex_000\\AppData\\Roaming\\local\\bin:C:\\Users\\lukex_000\\AppData\\Roaming\\cabal\\bin:C:\\Program Files\\Sublime Text 3:C:\\msys64\\usr\\bin\\site_perl:C:\\msys64\\usr\\bin\\vendor_perl:C:\\msys64\\usr\\bin\\core_perl @(ideba_F6bAQFcZd5YGI7e12HY89O:IdeSession.RPC.Client .\\IdeSession\\RPC\\Client.hs:319:5)\n"}
{"tag":"ResponseLog","contents":"[Info] Found ide-backend-server - using this one: C:\\Users\\lukex_000\\AppData\\Roaming\\local\\bin\\ide-backend-server.exe @(ideba_F6bAQFcZd5YGI7e12HY89O:IdeSession.RPC.Client .\\IdeSession\\RPC\\Client.hs:321:5)\n"}
ide-backend-server.exe: warning: _tzset from msvcrt is linked instead of __imp__tzset
{"tag":"ResponseLog","contents":"[Debug] Recompile required, starting... @(ideba_F6bAQFcZd5YGI7e12HY89O:IdeSession.Update.ExecuteSessionUpdate .\\IdeSession\\Update\\ExecuteSessionUpdate.hs:223:5)\n"}
{"tag":"RequestGetSourceErrors", "contents":[]}
{"tag":"ResponseGetSourceErrors","contents":[{"errorSpan":{"tag":"TextSpan","contents":"<no location info>"},"errorKind":"KindError","errorMsg":"module `Main' is defined in multiple files: C:\\msys64\\home\\lukex_000\\Projects\\linear-extra\\Setup.hs\n
C:\\msys64\\home\\lukex_000\\Projects\\linear-extra\\test\\Spec.hs"}]}
So it seems to be trying to load Setup.hs as part of the project now. I'm not sure what would cause this... @snoyberg @chrisdone @mgsloan any ideas??
Removing Spec.hs gives:
{"tag":"ResponseWelcome","contents":[0,1,1]}
{"tag":"ResponseLog","contents":"[Info] Initializing ide-backend session @(ideba_F6bAQFcZd5YGI7e12HY89O:IdeSession.Update .\\IdeSession\\Update.hs:197:3)\n"}
{"tag":"ResponseLog","contents":"[Debug] Session dir = C:\\msys64\\home\\lukex_000\\Projects\\linear-extra\\session.5872 @(ideba_F6bAQFcZd5YGI7e12HY89O:IdeSession.Update .\\IdeSession\\Update.hs:210:3)\n"}
{"tag":"ResponseLog","contents":"[Debug] Dist dir = C:\\msys64\\home\\lukex_000\\Projects\\linear-extra\\.stack-work\\dist\\d96ab9d9\\ @(ideba_F6bAQFcZd5YGI7e12HY89O:IdeSession.Update .\\IdeSession\\Update.hs:212:3)\n"}
{"tag":"ResponseLog","contents":"[Debug] Local working dir = C:\\msys64\\home\\lukex_000\\Projects\\linear-extra\\ @(ideba_F6bAQFcZd5YGI7e12HY89O:IdeSession.Update .\\IdeSession\\Update.hs:219:17)\n"}
{"tag":"ResponseLog","contents":"[Info] Searching for ide-backend-server on this path: C:\\msys64\\home\\lukex_000\\Projects\\linear-extra\\.stack-work\\install\\x86_64-windows\\lts-3.7\\7.10.2\\bin\\:C:\\Users\\lukex_000\\AppData\\Roaming\\stack\\snapshots\\x86_64-windows\\lts-3.7\\7.10.2\\bin\\:C:\\msys64\\usr\\local\\ghc\\mingw\\bin:C:\\msys64\\usr\\local\\ghc\\mingw\\lib:C:\\msys64\\mingw64\\bin:C:\\msys64\\usr\\local\\bin:C:\\msys64\\usr\\bin:C:\\msys64\\usr\\bin:C:\\Program Files\\cmder_mini\\vendor\\conemu-maximus5:C:\\Program Files\\cmder_mini\\vendor\\conemu-maximus5\\ConEmu:C:\\ProgramData\\Oracle\\Java\\javapath:C:\\Program Files (x86)\\Intel\\iCLS Client:C:\\Program Files\\Intel\\iCLS Client:C:\\Program Files\\Broadcom\\Broadcom 802.11 Network Adapter:C:\\Program Files (x86)\\Python27:C:\\Program Files (x86)\\Python27\\Scripts:C:\\Windows\\system32:C:\\Windows:C:\\Windows\\System32\\Wbem:C:\\Windows\\System32\\WindowsPowerShell\\v1.0:C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common:C:\\Program Files\\WIDCOMM\\Bluetooth Software:C:\\Program Files\\WIDCOMM\\Bluetooth Software\\syswow64:C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\DAL:C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\DAL:C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\IPT:C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\IPT:C:\\Program Files\\Microsoft SQL Server\\110\\Tools\\Binn:C:\\Program Files (x86)\\Windows Kits\\8.1\\Windows Performance Toolkit:C:\\msys64\\usr\\local\\ghc\\bin:C:\\Users\\lukex_000\\AppData\\Roaming\\local\\bin:C:\\Users\\lukex_000\\AppData\\Roaming\\cabal\\bin:C:\\Program Files\\Sublime Text 3:C:\\msys64\\usr\\bin\\site_perl:C:\\msys64\\usr\\bin\\vendor_perl:C:\\msys64\\usr\\bin\\core_perl @(ideba_F6bAQFcZd5YGI7e12HY89O:IdeSession.RPC.Client .\\IdeSession\\RPC\\Client.hs:319:5)\n"}
{"tag":"ResponseLog","contents":"[Info] Found ide-backend-server - using this one: C:\\Users\\lukex_000\\AppData\\Roaming\\local\\bin\\ide-backend-server.exe @(ideba_F6bAQFcZd5YGI7e12HY89O:IdeSession.RPC.Client .\\IdeSession\\RPC\\Client.hs:321:5)\n"}
ide-backend-server.exe: warning: _tzset from msvcrt is linked instead of __imp__tzset
{"tag":"ResponseLog","contents":"[Debug] Recompile required, starting... @(ideba_F6bAQFcZd5YGI7e12HY89O:IdeSession.Update.ExecuteSessionUpdate .\\IdeSession\\Update\\ExecuteSessionUpdate.hs:223:5)\n"}
{"tag":"RequestGetSourceErrors", "contents":[]}
{"tag":"ResponseGetSourceErrors","contents":[{"errorSpan":{"tag":"ProperSpan","contents":{"spanFromLine":1,"spanFilePath":"Setup.hs","spanToColumn":27,"spanFromColumn":8,"spanToLine":1}},"errorKind":"KindError","errorMsg":"Could not find module `Distribution.Simple'\nIt is a member of the hidden package `Cabal-1.22.4.0'.\nUse -v to see a list of the files searched for."}]}
and removing Setup.hs finally succeeds, giving
{"tag":"ResponseWelcome","contents":[0,1,1]}
{"tag":"ResponseLog","contents":"[Info] Initializing ide-backend session @(ideba_F6bAQFcZd5YGI7e12HY89O:IdeSession.Update .\\IdeSession\\Update.hs:197:3)\n"}
{"tag":"ResponseLog","contents":"[Debug] Session dir = C:\\msys64\\home\\lukex_000\\Projects\\linear-extra\\session.9928 @(ideba_F6bAQFcZd5YGI7e12HY89O:IdeSession.Update .\\IdeSession\\Update.hs:210:3)\n"}
{"tag":"ResponseLog","contents":"[Debug] Dist dir = C:\\msys64\\home\\lukex_000\\Projects\\linear-extra\\.stack-work\\dist\\d96ab9d9\\ @(ideba_F6bAQFcZd5YGI7e12HY89O:IdeSession.Update .\\IdeSession\\Update.hs:212:3)\n"}
{"tag":"ResponseLog","contents":"[Debug] Local working dir = C:\\msys64\\home\\lukex_000\\Projects\\linear-extra\\ @(ideba_F6bAQFcZd5YGI7e12HY89O:IdeSession.Update .\\IdeSession\\Update.hs:219:17)\n"}
{"tag":"ResponseLog","contents":"[Info] Searching for ide-backend-server on this path: C:\\msys64\\home\\lukex_000\\Projects\\linear-extra\\.stack-work\\install\\x86_64-windows\\lts-3.7\\7.10.2\\bin\\:C:\\Users\\lukex_000\\AppData\\Roaming\\stack\\snapshots\\x86_64-windows\\lts-3.7\\7.10.2\\bin\\:C:\\msys64\\usr\\local\\ghc\\mingw\\bin:C:\\msys64\\usr\\local\\ghc\\mingw\\lib:C:\\msys64\\mingw64\\bin:C:\\msys64\\usr\\local\\bin:C:\\msys64\\usr\\bin:C:\\msys64\\usr\\bin:C:\\Program Files\\cmder_mini\\vendor\\conemu-maximus5:C:\\Program Files\\cmder_mini\\vendor\\conemu-maximus5\\ConEmu:C:\\ProgramData\\Oracle\\Java\\javapath:C:\\Program Files (x86)\\Intel\\iCLS Client:C:\\Program Files\\Intel\\iCLS Client:C:\\Program Files\\Broadcom\\Broadcom 802.11 Network Adapter:C:\\Program Files (x86)\\Python27:C:\\Program Files (x86)\\Python27\\Scripts:C:\\Windows\\system32:C:\\Windows:C:\\Windows\\System32\\Wbem:C:\\Windows\\System32\\WindowsPowerShell\\v1.0:C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common:C:\\Program Files\\WIDCOMM\\Bluetooth Software:C:\\Program Files\\WIDCOMM\\Bluetooth Software\\syswow64:C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\DAL:C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\DAL:C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\IPT:C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\IPT:C:\\Program Files\\Microsoft SQL Server\\110\\Tools\\Binn:C:\\Program Files (x86)\\Windows Kits\\8.1\\Windows Performance Toolkit:C:\\msys64\\usr\\local\\ghc\\bin:C:\\Users\\lukex_000\\AppData\\Roaming\\local\\bin:C:\\Users\\lukex_000\\AppData\\Roaming\\cabal\\bin:C:\\Program Files\\Sublime Text 3:C:\\msys64\\usr\\bin\\site_perl:C:\\msys64\\usr\\bin\\vendor_perl:C:\\msys64\\usr\\bin\\core_perl @(ideba_F6bAQFcZd5YGI7e12HY89O:IdeSession.RPC.Client .\\IdeSession\\RPC\\Client.hs:319:5)\n"}
{"tag":"ResponseLog","contents":"[Info] Found ide-backend-server - using this one: C:\\Users\\lukex_000\\AppData\\Roaming\\local\\bin\\ide-backend-server.exe @(ideba_F6bAQFcZd5YGI7e12HY89O:IdeSession.RPC.Client .\\IdeSession\\RPC\\Client.hs:321:5)\n"}
ide-backend-server.exe: warning: _tzset from msvcrt is linked instead of __imp__tzset
{"tag":"ResponseLog","contents":"[Debug] Recompile required, starting... @(ideba_F6bAQFcZd5YGI7e12HY89O:IdeSession.Update.ExecuteSessionUpdate .\\IdeSession\\Update\\ExecuteSessionUpdate.hs:223:5)\n"}
{"tag":"RequestGetSourceErrors", "contents":[]}
{"tag":"ResponseGetSourceErrors","contents":[]}
and to be sure, introducing a source error works!
{"tag":"ResponseWelcome","contents":[0,1,1]}
{"tag":"ResponseLog","contents":"[Info] Initializing ide-backend session @(ideba_F6bAQFcZd5YGI7e12HY89O:IdeSession.Update .\\IdeSession\\Update.hs:197:3)\n"}
{"tag":"ResponseLog","contents":"[Debug] Session dir = C:\\msys64\\home\\lukex_000\\Projects\\linear-extra\\session.10440 @(ideba_F6bAQFcZd5YGI7e12HY89O:IdeSession.Update .\\IdeSession\\Update.hs:210:3)\n"}
{"tag":"ResponseLog","contents":"[Debug] Dist dir = C:\\msys64\\home\\lukex_000\\Projects\\linear-extra\\.stack-work\\dist\\d96ab9d9\\ @(ideba_F6bAQFcZd5YGI7e12HY89O:IdeSession.Update .\\IdeSession\\Update.hs:212:3)\n"}
{"tag":"ResponseLog","contents":"[Debug] Local working dir = C:\\msys64\\home\\lukex_000\\Projects\\linear-extra\\ @(ideba_F6bAQFcZd5YGI7e12HY89O:IdeSession.Update .\\IdeSession\\Update.hs:219:17)\n"}
{"tag":"ResponseLog","contents":"[Info] Searching for ide-backend-server on this path: C:\\msys64\\home\\lukex_000\\Projects\\linear-extra\\.stack-work\\install\\x86_64-windows\\lts-3.7\\7.10.2\\bin\\:C:\\Users\\lukex_000\\AppData\\Roaming\\stack\\snapshots\\x86_64-windows\\lts-3.7\\7.10.2\\bin\\:C:\\msys64\\usr\\local\\ghc\\mingw\\bin:C:\\msys64\\usr\\local\\ghc\\mingw\\lib:C:\\msys64\\mingw64\\bin:C:\\msys64\\usr\\local\\bin:C:\\msys64\\usr\\bin:C:\\msys64\\usr\\bin:C:\\Program Files\\cmder_mini\\vendor\\conemu-maximus5:C:\\Program Files\\cmder_mini\\vendor\\conemu-maximus5\\ConEmu:C:\\ProgramData\\Oracle\\Java\\javapath:C:\\Program Files (x86)\\Intel\\iCLS Client:C:\\Program Files\\Intel\\iCLS Client:C:\\Program Files\\Broadcom\\Broadcom 802.11 Network Adapter:C:\\Program Files (x86)\\Python27:C:\\Program Files (x86)\\Python27\\Scripts:C:\\Windows\\system32:C:\\Windows:C:\\Windows\\System32\\Wbem:C:\\Windows\\System32\\WindowsPowerShell\\v1.0:C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common:C:\\Program Files\\WIDCOMM\\Bluetooth Software:C:\\Program Files\\WIDCOMM\\Bluetooth Software\\syswow64:C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\DAL:C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\DAL:C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\IPT:C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\IPT:C:\\Program Files\\Microsoft SQL Server\\110\\Tools\\Binn:C:\\Program Files (x86)\\Windows Kits\\8.1\\Windows Performance Toolkit:C:\\msys64\\usr\\local\\ghc\\bin:C:\\Users\\lukex_000\\AppData\\Roaming\\local\\bin:C:\\Users\\lukex_000\\AppData\\Roaming\\cabal\\bin:C:\\Program Files\\Sublime Text 3:C:\\msys64\\usr\\bin\\site_perl:C:\\msys64\\usr\\bin\\vendor_perl:C:\\msys64\\usr\\bin\\core_perl @(ideba_F6bAQFcZd5YGI7e12HY89O:IdeSession.RPC.Client .\\IdeSession\\RPC\\Client.hs:319:5)\n"}
{"tag":"ResponseLog","contents":"[Info] Found ide-backend-server - using this one: C:\\Users\\lukex_000\\AppData\\Roaming\\local\\bin\\ide-backend-server.exe @(ideba_F6bAQFcZd5YGI7e12HY89O:IdeSession.RPC.Client .\\IdeSession\\RPC\\Client.hs:321:5)\n"}
ide-backend-server.exe: warning: _tzset from msvcrt is linked instead of __imp__tzset
{"tag":"ResponseLog","contents":"[Debug] Recompile required, starting... @(ideba_F6bAQFcZd5YGI7e12HY89O:IdeSession.Update.ExecuteSessionUpdate .\\IdeSession\\Update\\ExecuteSessionUpdate.hs:223:5)\n"}
{"tag":"RequestGetSourceErrors", "contents":[]}
{"tag":"ResponseGetSourceErrors","contents":[{"errorSpan":{"tag":"ProperSpan","contents":{"spanFromLine":11,"spanFilePath":"src\\Linear\\Extra.hs","spanToColumn":2,"spanFromColumn":1,"spanToLine":11}},"errorKind":"KindError","errorMsg":"Parse error: naked expression at top level\nPerhaps you intended to use TemplateHaskell"}]}
So we're super close now : )
Oh, awesome news, this was just me being out of date and failing to heed https://github.com/commercialhaskell/stack-ide/issues/81
I've tested manually following that and everything works perfectly, so I've just got to update stack-ide-sublime to implement the new scheme. Yahooo and thanks @ncreep for the amazing work on ide-backend - we'll figure out your odd issue next : )
Howdy! I'm trying out the rad new ide-backend Windows support. I've gotten stack-ide to build now after updating the ide-backend submodule to the latest (awesome!!) but it fails currently with this error:
What's the proper way to pass multiple package databases to ghc-pkg's --package-db argument on Windows?
I get the same thing with a quoted semicolon:
I'll be super pumped to get this working as I've been nearly entirely diverted to Windows dev recently and have been thus without my beloved stack-ide-sublime : )