Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

intero fails to initialize if the directory contains spaces #138

Open
mattsawyer77 opened this issue Feb 25, 2018 · 1 comment
Open

intero fails to initialize if the directory contains spaces #138

mattsawyer77 opened this issue Feb 25, 2018 · 1 comment

Comments

@mattsawyer77
Copy link

I keep my haskell src files in iCloud, which means the path to those files is
~/Library/Mobile Documents/com~apple~CloudDocs/src
But it seems Intero can't handle it. When opening a haskell file, I see this in the Intero_compile window:

Invalid argument `Documents/com~apple~CloudDocs/src/haskell/TestProject/stack.yaml'
File does not exist or is not a regular file `--stack-yaml'

Usage: stack [--help] [--version] [--numeric-version] [--hpack-numeric-version]
             [--docker*] [--nix*] ([--verbosity VERBOSITY] | [-v|--verbose] |
             [--silent]) [--[no-]time-in-log] [--stack-root STACK-ROOT]
             [--work-dir WORK-DIR] [--[no-]system-ghc] [--[no-]install-ghc]
             [--arch ARCH] [--ghc-variant VARIANT] [--ghc-build BUILD]
             [-j|--jobs JOBS] [--extra-include-dirs DIR] [--extra-lib-dirs DIR]
             [--with-gcc PATH-TO-GCC] [--with-hpack HPACK]
             [--[no-]skip-ghc-check] [--[no-]skip-msys] [--local-bin-path DIR]
             [--[no-]modify-code-page] [--[no-]allow-different-user]
             [--[no-]dump-logs] [--resolver RESOLVER] [--compiler COMPILER]
             [--[no-]terminal] [--color WHEN] [--terminal-width INT]
             [--stack-yaml STACK-YAML] COMMAND|FILE

[Process exited 1]

I copied my src folder to a location where the directory path doesn't have any spaces, and Intero seems to work fine.

@parsonsmatt
Copy link
Owner

There's a regex that looks at the filepath for the stack.yaml file. It needs to be modified to accept whitespace as a valid character.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants