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

HLint config in subfolder not picked up #1260

Open
georgefst opened this issue Jan 25, 2021 · 4 comments
Open

HLint config in subfolder not picked up #1260

georgefst opened this issue Jan 25, 2021 · 4 comments
Labels
can-workaround component: hls-hlint-plugin type: bug Something isn't right: doesn't work as intended, documentation is missing/outdated, etc..

Comments

@georgefst
Copy link
Collaborator

haskell-language-server version: 0.8.0.0 (GHC: 8.10.2) (PATH: /home/gthomas/.cabal/bin/haskell-language-server)
Tool versions found on the $PATH
cabal: 3.2.0.0
stack: Not found
ghc: 8.10.2
VScode

My workspace folder has a haskell subfolder, but .hlint.yaml is only picked up if I move it to the very top level of the project, which is inconvenient. Everything else works fine.

@jneira
Copy link
Member

jneira commented Jan 25, 2021

Only to confirm, if you execute hlint in the cli, cd'ing in the workspace folder, does it work?

@georgefst
Copy link
Collaborator Author

Yes. HLS even works if I open just the subfolder using Add Folder to Workspace.

@jneira jneira added the type: bug Something isn't right: doesn't work as intended, documentation is missing/outdated, etc.. label Jan 25, 2021
@georgefst
Copy link
Collaborator Author

Possibly relatedly, I have essentially the same issue with GHC environment files (they have to be in the root workspace directory, not just the one containing the relevant source file).

Perhaps I should just be using workspaces differently... But it does at least seem like a gotcha worth documenting somewhere - it's confusing when something can be loaded by ghc/ghci but HLS complains about not finding packages.

@alanz
Copy link
Collaborator

alanz commented Jan 27, 2021

For the GHC source I just symlink the hlint config to the top directory. FYI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
can-workaround component: hls-hlint-plugin type: bug Something isn't right: doesn't work as intended, documentation is missing/outdated, etc..
Projects
None yet
Development

No branches or pull requests

3 participants