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

specify where and how to set executable path #593

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ For a general picture about the server configuration, including the project setu

### Path to server executable

If your server is manually installed and not on your path, you can also manually set the path to the executable.
If your server is manually installed and not on your path, you can also [manually](https://code.visualstudio.com/docs/getstarted/settings#_settings-editor) set the path to the executable (not to the `...-wrapper`!) in [settings.json](https://code.visualstudio.com/docs/getstarted/settings#_settingsjson).
Copy link
Member

Choose a reason for hiding this comment

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

Why not the wrapper?

Copy link
Author

Choose a reason for hiding this comment

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

IDK why setting the path to a wrapper triggered a message similar to one from this issue "haskell/haskell-language-server#1342". When I set to just hls binary and reloaded the window, the message disappeared.

Copy link
Member

@hasufell hasufell Apr 27, 2022

Choose a reason for hiding this comment

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

That doesn't seem right. The wrapper should work.


```json
"haskell.serverExecutablePath": "~/.local/bin/haskell-language-server"
Expand All @@ -61,6 +61,7 @@ There are a few placeholders which will be expanded:
- `~`, `${HOME}` and `${home}` will be expanded into your users' home folder.
- `${workspaceFolder}` and `${workspaceRoot}` will expand into your current project root.


#### Security warning

The option has `resource` scope so it can be changed per workspace.
Expand Down