haskelly-dev / Haskelly

Haskelly is a VS Code extension that provides complete support for casual and expert Haskell development.
https://marketplace.visualstudio.com/items?itemName=UCL.haskelly
GNU General Public License v3.0
152 stars 17 forks source link

Problem building dependencies. #103

Open MarkHorwedel opened 5 years ago

MarkHorwedel commented 5 years ago

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 commented 5 years ago

I can be reached at mshorwedel@verizon.net

JeffGreenlee42 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

I am already getting the auto-complete and type hover information.  I don't remember if I tried what you suggest or not, when I initially reported the problem.

-----Original Message----- From: Martí Serra Vivancos notifications@github.com To: haskelly-dev/Haskelly Haskelly@noreply.github.com Cc: Mark Horwedel mshorwedel@verizon.net; Author author@noreply.github.com Sent: Tue, Oct 22, 2019 10:58 am Subject: Re: [haskelly-dev/Haskelly] Problem building dependencies. (#103)

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.— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

JeffGreenlee42 commented 4 years ago

I hope this is not an entirely idiotic question.. do I need to uninstall anything first before trying this?

Jeff Greenlee

"Music is a higher revelation than all wisdom and philosophy. Music is the electrical soil in which the spirit lives, thinks and invents." Ludwig Van Beethoven

On Tue, Oct 22, 2019 at 11:54 AM Mark Horwedel notifications@github.com wrote:

I am already getting the auto-complete and type hover information. I don't remember if I tried what you suggest or not, when I initially reported the problem.

-----Original Message----- From: Martí Serra Vivancos notifications@github.com To: haskelly-dev/Haskelly Haskelly@noreply.github.com Cc: Mark Horwedel mshorwedel@verizon.net; Author < author@noreply.github.com> Sent: Tue, Oct 22, 2019 10:58 am Subject: Re: [haskelly-dev/Haskelly] Problem building dependencies. (#103)

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.— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/haskelly-dev/Haskelly/issues/103?email_source=notifications&email_token=AFMJ6XNHKIQ42WPTYMB3IVLQP5D7HA5CNFSM4I7GGH42YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEB62ATY#issuecomment-545103951, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFMJ6XJKVJYAFRFNHKOQDVDQP5D7HANCNFSM4I7GGH4Q .

JeffGreenlee42 commented 4 years ago

Ok.. I'm a dufus... I figured half of my problem. In the stack.yaml file, I only had "Package:" and nothing following it. I subsequently found out I need to add at least a "[ ]" (open/closed bracket) for a simple standard library configuration. Now I'm seeing the Haskelly behavior I expected.

Jeff Greenlee

"Music is a higher revelation than all wisdom and philosophy. Music is the electrical soil in which the spirit lives, thinks and invents." Ludwig Van Beethoven

On Tue, Oct 22, 2019 at 3:12 PM Jeff Greenlee banjo1@gmail.com wrote:

I hope this is not an entirely idiotic question.. do I need to uninstall anything first before trying this?

Jeff Greenlee

"Music is a higher revelation than all wisdom and philosophy. Music is the electrical soil in which the spirit lives, thinks and invents." Ludwig Van Beethoven

On Tue, Oct 22, 2019 at 11:54 AM Mark Horwedel notifications@github.com wrote:

I am already getting the auto-complete and type hover information. I don't remember if I tried what you suggest or not, when I initially reported the problem.

-----Original Message----- From: Martí Serra Vivancos notifications@github.com To: haskelly-dev/Haskelly Haskelly@noreply.github.com Cc: Mark Horwedel mshorwedel@verizon.net; Author < author@noreply.github.com> Sent: Tue, Oct 22, 2019 10:58 am Subject: Re: [haskelly-dev/Haskelly] Problem building dependencies. (#103)

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.— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/haskelly-dev/Haskelly/issues/103?email_source=notifications&email_token=AFMJ6XNHKIQ42WPTYMB3IVLQP5D7HA5CNFSM4I7GGH42YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEB62ATY#issuecomment-545103951, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFMJ6XJKVJYAFRFNHKOQDVDQP5D7HANCNFSM4I7GGH4Q .

matheusanmo commented 4 years ago

According to https://github.com/yamadapc/stack-run/issues/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.