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

Indexing stack sub-project fails to find dist directory #13

Closed
pwaller opened this issue Nov 13, 2018 · 1 comment
Closed

Indexing stack sub-project fails to find dist directory #13

pwaller opened this issue Nov 13, 2018 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@pwaller
Copy link

pwaller commented Nov 13, 2018

I have a number of cabal packages which live within a stack project.

MyProjectFoo/stack.yaml
MyProjectFoo/MyProjectFoo.cabal
MyProjectFoo/bar/bar.cabal
MyProjectFoo/baz/baz.cabal

I'm new to Haskell, stack and cabal, so things are a little confusing. Indexing works fine on MyProjectFoo, but fails on the subprojects bar and baz because it fails to find the dist directory and setup-config.

In this issue I found that using --dist $(stack path --dist-dir) from the bar or baz directory works.

Would it be reasonable for the indexer to use this if there exists a stack.yaml at any level in the filesystem above the current working directory?

Moved from #4 (comment).

@alexwl
Copy link
Owner

alexwl commented Nov 13, 2018

Yes, I think it would be reasonable to check for the presence of stack.yaml in the parent directories.

I will add that logic to haskell-code-indexer.

@alexwl alexwl self-assigned this Nov 13, 2018
@alexwl alexwl added the enhancement New feature or request label Nov 13, 2018
@alexwl alexwl closed this as completed in 9fa6772 Nov 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants