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

Probe tools cli #306

Merged
merged 1 commit into from
Aug 10, 2020
Merged

Probe tools cli #306

merged 1 commit into from
Aug 10, 2020

Conversation

fendor
Copy link
Collaborator

@fendor fendor commented Aug 10, 2020

For making #305 simpler

Example:

> haskell-language-server --probe-tools
haskell-language-server version: 0.3.0.0 (GHC: 8.8.3) (PATH: /home/munin/.cabal/store/ghc-8.8.3/haskell-language-server-0.3.0.0-50ac3c2ce9988216a5f58c897e446f023d24f554e742bcae93fcc77e9a6ded73/bin/haskell-language-server)
Tool versions found on the $PATH
cabal:		3.0.0.0
stack:		2.1.3.1
ghc:		8.8.3
>  haskell-language-server .
haskell-language-server version: 0.3.0.0 (GHC: 8.8.3) (PATH: /home/munin/.cabal/store/ghc-8.8.3/haskell-language-server-0.3.0.0-50ac3c2ce9988216a5f58c897e446f023d24f554e742bcae93fcc77e9a6ded73/bin/haskell-language-server)
(haskell-language-server)Ghcide setup tester in /home/munin/Documents/haskell/hls.
Report bugs at https://github.com/haskell/haskell-language-server/issues

Tool versions found on the $PATH
cabal:		3.0.0.0
stack:		2.1.3.1
ghc:		8.8.3


Step 1/4: Finding files to test in /home/munin/Documents/haskell/hls
Found 467 files
...
<truncated>

Print them to stderr when starting the server.
Adds cli command `--probe-tools` for easier debugging.
Copy link
Member

@Ailrun Ailrun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome!

@fendor fendor merged commit 0b12fcb into haskell:master Aug 10, 2020
@horus
Copy link

horus commented Aug 11, 2020

Correct me if I'm wrong, I think this does not play nicely with projects bootstrapped with stack:

Cradle type: Default
haskell-language-server-wrapper: ghc: readCreateProcessWithExitCode: runInteractiveProcess: exec: does not exist (No such file or directory)

The path to the ghc executable is not necessarily included in $PATH.

@fendor
Copy link
Collaborator Author

fendor commented Aug 11, 2020

@horus Indeed, my mistake, for some reason I assumed this would be covered by readCreateProcessWithExitCode
Fix in progress

pepeiborra pushed a commit to pepeiborra/ide that referenced this pull request Sep 6, 2020
Print them to stderr when starting the server.
Adds cli command `--probe-tools` for easier debugging.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants