Skip to content

Return nothing if tool is not on the PATH#309

Merged
fendor merged 1 commit into
haskell:masterfrom
fendor:fix/probe-tools
Aug 11, 2020
Merged

Return nothing if tool is not on the PATH#309
fendor merged 1 commit into
haskell:masterfrom
fendor:fix/probe-tools

Conversation

@fendor

@fendor fendor commented Aug 11, 2020

Copy link
Copy Markdown
Collaborator

As discovered by #306 (comment), I forgot to actually check that a tool is on the path!
Therefore, currently HLS breaks for everyone who built it from source since the commit 0b12fcb and has not every tool installed.

@fendor
fendor requested review from jneira and lukel97 August 11, 2020 09:27
@fendor

fendor commented Aug 11, 2020

Copy link
Copy Markdown
Collaborator Author

cc @horus does this fix it for you?

@lukel97 lukel97 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Whoops, I had it in my head that readProcessWithExitCode would have returned a non zero exit code if it wasn't on the PATH. Too hasty code review lol

@fendor

fendor commented Aug 11, 2020

Copy link
Copy Markdown
Collaborator Author

@bubba I was thinking the same. The problems of having no tests for a new functionality :(

@fendor
fendor merged commit 02a3bac into haskell:master Aug 11, 2020
@horus

horus commented Aug 11, 2020

Copy link
Copy Markdown

cc @horus does this fix it for you?

Yes. I can confirm this PR solved my problem.
Thanks for the quick fix.

@fendor

fendor commented Aug 11, 2020

Copy link
Copy Markdown
Collaborator Author

@horus Thank you for verifying!

pepeiborra pushed a commit to pepeiborra/ide that referenced this pull request Sep 6, 2020
pepeiborra added a commit that referenced this pull request Dec 27, 2020
* code action to insert new definitions
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.

3 participants