Skip to content

Stack IDE nearly starts on Windows #92

@lukexi

Description

@lukexi

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:

$ 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.1156 @(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":"ResponseFatalError","contents":"user error ('C:\\msys64\\usr\\local\\ghc\\bin\\ghc-pkg.exe' exited with an error:\nghc-pkg.exe: C:\\Users\\lukex_000\\AppData\\Roaming\\stack\\snapshots\\x86_64-windows\\lts-3.7\\7.10.2\\pkgdb\\:C:\\msys64\\home\\lukex_000\\Projects\\linear-extra\\.stack-work\\install\\x86_64-windows\\lts-3.7\\7.10.2\\pkgdb\\: getDirectoryContents: invalid argument (The filename, directory name, or volume label syntax is incorrect.)\n)"}
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=-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=-package=base --package-db=C:\Users\lukex_000\AppData\Roaming\stack\snapshots\x86_64-windows\lts-3.7\7.10.2\pkgdb\:C:\msys64\home\lukex_000\Projects\linear-extra\.stack-work\install\x86_64-windows\lts-3.7\7.10.2\pkgdb\

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:

ghc-pkg list --package-db="C:/Users/lukex_000/AppData/Roaming/stack/snapshots/x86_64-windows/lts-3.7/7.10.2/pkgdb/;C:/msys64/home/lukex_000/Projects/linear-extra/.stack-work/install/x86_64-windows/lts-3.7/7.10.2/pkgdb/"
ghc-pkg.exe: C:/Users/lukex_000/AppData/Roaming/stack/snapshots/x86_64-windows/lts-3.7/7.10.2/pkgdb/;C:/msys64/home/lukex_000/Projects/linear-extra/.stack-work/install/x86_64-windows/lts-3.7/7.10.2/pkgdb/: getDirectoryContents: invalid argument (The filename, directory name, or volume label syntax is incorrect.)

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 : )

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions