Skip to content

Allow setting the working-dir to absolute directories #6135

Open
@psilospore

Description

@psilospore

Hi I raised an issue with HLS and one of the maintainers got back to me and mentioned that to fix the issue I'm having they would need stack to support absolute directories for the work-dir

For cabal, we set the work-dir (called builddir) to ~/.cache/hie-bios/...-dist-newstyle or similar. But Stack doesn't support absolute paths for work-dir (last time we checked). The reasoning for forcing relative paths for work-dir is likely outdated.

So, ideally, I think your best course of action is to raise that issue with stack maintainers (allowing HLS to set the work-dir to some absolute path), maybe even patching stack yourself, and then we can permanently work set the work-dir and you wouldn't need a stack.yaml for development.

Issue: haskell/haskell-language-server#3616

If this sounds correct could you support this? Also I'm willing to help if I can get some pointers, and depending on how complex it is.

Thanks!

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