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

Problem building dependencies. #103

Open
MarkHorwedel opened this issue Oct 10, 2019 · 8 comments
Open

Problem building dependencies. #103

MarkHorwedel opened this issue Oct 10, 2019 · 8 comments

Comments

@MarkHorwedel
Copy link

I tried to install Haskelly on a notebook computer running Window 10 home version 1809. When I tried to install the intero, QuickCheck and task-run using the command

stack install intero QuickCheck stack-run

the run aborted with:

src\Main.hs:18:1: error:
Could not find module `Distribution.PackageDescription.Parse'
Perhaps you meant
Distribution.PackageDescription.Parsec (needs flag -package-key Cabal-2.4.0.1)
Distribution.PackageDescription.Parsec (from Cabal-2.4.1.0)
Distribution.PackageDescription.Check (needs flag -package-key Cabal-2.4.0.1)
Use -v to see a list of the files searched for.
|
18 | import Distribution.PackageDescription.Parse
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
What is my recourse?

@MarkHorwedel
Copy link
Author

I can be reached at [email protected]

@JeffGreenlee42
Copy link

JeffGreenlee42 commented Oct 22, 2019

I'm getting this exact same error.. which means that I am getting NONE of the advertised features of Haskelly, other than syntax highlighting. I'm running It on Windows 10 1903 (OS Build 18362.418)

@JeffGreenlee42
Copy link

Here is my output:

PS C:\Users\v-jefg\OneDrive\Programming\Haskell> stack install intero QuickCheck stack-run
WARNING: Ignoring stack-run's bounds on conduit (>1.1 && <1.3); using conduit-1.3.1.1.
Reason: allow-newer enabled.
WARNING: Ignoring stack-run's bounds on conduit-extra (>=1.1 && <1.2); using conduit-extra-1.3.4.
Reason: allow-newer enabled.
stack-run> configure
stack-run> Configuring stack-run-0.1.1.4...
stack-run> build
stack-run> Preprocessing executable 'stack-run' for stack-run-0.1.1.4..
stack-run> Building executable 'stack-run' for stack-run-0.1.1.4..
stack-run> [1 of 1] Compiling Main
stack-run>
stack-run> src\Main.hs:18:1: error:
stack-run> Could not find module `Distribution.PackageDescription.Parse'
stack-run> Perhaps you meant
stack-run> Distribution.PackageDescription.Parsec (needs flag -package-key Cabal-2.4.0.1)
stack-run> Distribution.PackageDescription.Parsec (from Cabal-2.4.1.0)
stack-run> Distribution.PackageDescription.Check (needs flag -package-key Cabal-2.4.0.1)
stack-run> Use -v to see a list of the files searched for.
stack-run> |
stack-run> 18 | import Distribution.PackageDescription.Parse
stack-run> | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
stack-run>

-- While building package stack-run-0.1.1.4 using:
C:\sr\setup-exe-cache\x86_64-windows\Cabal-simple_Z6RU0evB_2.4.0.1_ghc-8.6.5.exe --builddir=.stack-work\dist\e626a42b build --ghc-options " -fdiagnostics-color=always"
Process exited with code: ExitFailure 1
PS C:\Users\v-jefg\OneDrive\Programming\Haskell>

@martrik
Copy link
Collaborator

martrik commented Oct 22, 2019

Hello both. This seems to be an issue with the stack-run installation. Can you try installing just intero with: stack install intero? With intero installed you should be able to get autocomplete and type hover info.

@MarkHorwedel
Copy link
Author

MarkHorwedel commented Oct 22, 2019 via email

@JeffGreenlee42
Copy link

JeffGreenlee42 commented Oct 22, 2019 via email

@JeffGreenlee42
Copy link

JeffGreenlee42 commented Oct 23, 2019 via email

@matheusanmo
Copy link

According to yamadapc/stack-run#17 , stack-run is no longer needed as stack has implemented stack run. Is is the case to drop stack-run as a dependency? Sorry if I'm speaking out of place but I ran into the same problem as OP, and from googling it seems this error is very common and stack run can substitute stack-run.

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

No branches or pull requests

4 participants