haskell / haskell/haskell-language-server

Detect stack elsewhere than the project root

Open
#1,763 3 comments 0 reactions 0 assignees View on GitHub
build tool: stack can-workaround component: hie-bios level: hard status: needs info type: enhancement
Dominant language
Haskell
Stars
3k
Forks
455
Avg merge
2d 19h
Merged PRs (30d)
11

Description

My project structure is such that my Haskell app is in a subfolder and not the project root. For example:

```
my-haskell-app/stack.yaml
my-haskell-app/package.yaml
my-haskell-app/src/etc...
README.md
etc...
```

When I open vscode to my project root I get a message like this:

> haskell-language-server 0.7.1 for GHC 8.4.3 is not available on Windows_NT

From what I can tell, it's trying to use the system GHC installation instead of stack. Opening the subfolder `my-haskell-app` in vscode gets it to download the correct version of haskell-language-server.

The Haskell extension should work with stack projects that are not directly in vscode's workspace root directory.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.