Skip to content

Detect stack elsewhere than the project root #1763

Open
@kendfrey

Description

@kendfrey

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions