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

Allow setting the working-dir to absolute directories #6135

Open
psilospore opened this issue Jun 1, 2023 · 1 comment
Open

Allow setting the working-dir to absolute directories #6135

psilospore opened this issue Jun 1, 2023 · 1 comment

Comments

@psilospore
Copy link

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!

@psilospore psilospore changed the title Allowing setting the working-dir to absolute directories Allow setting the working-dir to absolute directories Jun 1, 2023
@mpilgrem
Copy link
Member

mpilgrem commented Jun 1, 2023

@psilospore, I'll look into this further, but I suspect that the specification of Stack's working directory is relative because a working directory is set up for each local package within a local project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants