question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Strange error "Can't start REPL"

See original GitHub issue

This is on plugin beta-52 under IntelliJ IDEA 2019.2.

The test-project that was running fine, started giving this error:

2019-08-05
16:48	Stack REPL couldn't be started for target `Str3Split:lib` due to: cannot satisfy -package hspec-2.6.1

16:48	Package hspec is not in library module names cache

16:48	Stack REPL couldn't be started for target `Str3Split:test:Str3Split-test` due to: cannot satisfy -package Str3Split-0.1.0.0

16:48	Stack REPL couldn't be started for target `Str3Split:test:Str3Split-test` due to: cannot satisfy -package Str3Split-0.1.0.0

16:49	Stack REPL couldn't be started for target `Str3Split:lib` due to: cannot satisfy -package hspec-2.6.1

I still can build it and run successfully, from both standalone terminal, and from within the IDE. I.e., the plugin does build and run it - even though all the Documentation popups and assistants are gone.

This is the build log (from within the IDE):

/Users/ur20980/.local/bin/stack build --exec Str3Split-exe
/Users/ur20980/src/Str3Split/Str3Split.cabal was modified manually. Ignoring /Users/ur20980/src/Str3Split/package.yaml in favor of the cabal file.
If you want to use the package.yaml file instead of the cabal file,
then please delete the cabal file.
call-stack        > using precompiled package
clock             > using precompiled package
colour            > using precompiled package
erf               > using precompiled package
hspec-discover    > using precompiled package
primitive         > using precompiled package
setenv            > using precompiled package
random            > using precompiled package
HUnit             > using precompiled package
ansi-terminal     > using precompiled package
tf-random         > using precompiled package
hspec-expectations> using precompiled package
QuickCheck        > configure
QuickCheck        > Configuring QuickCheck-2.12.6.1...
QuickCheck        > build
QuickCheck        > Preprocessing library for QuickCheck-2.12.6.1..
QuickCheck        > Building library for QuickCheck-2.12.6.1..
QuickCheck        > [ 1 of 16] Compiling Test.QuickCheck.Exception
QuickCheck        > [ 2 of 16] Compiling Test.QuickCheck.Random
QuickCheck        > [ 3 of 16] Compiling Test.QuickCheck.Gen
QuickCheck        > [ 4 of 16] Compiling Test.QuickCheck.Gen.Unsafe
QuickCheck        > [ 5 of 16] Compiling Test.QuickCheck.Arbitrary
QuickCheck        > [ 6 of 16] Compiling Test.QuickCheck.Poly
QuickCheck        > [ 7 of 16] Compiling Test.QuickCheck.Modifiers
QuickCheck        > [ 8 of 16] Compiling Test.QuickCheck.Function
QuickCheck        > [ 9 of 16] Compiling Test.QuickCheck.Text
QuickCheck        > [10 of 16] Compiling Test.QuickCheck.State
QuickCheck        > [11 of 16] Compiling Test.QuickCheck.Property
QuickCheck        > [12 of 16] Compiling Test.QuickCheck.Test
QuickCheck        > [13 of 16] Compiling Test.QuickCheck.Monadic
QuickCheck        > [14 of 16] Compiling Test.QuickCheck.All
QuickCheck        > [15 of 16] Compiling Test.QuickCheck.Features
QuickCheck        > [16 of 16] Compiling Test.QuickCheck
QuickCheck        > copy/register
QuickCheck        > Installing library in /Users/ur20980/.stack/snapshots/x86_64-osx/ba3c3b6458559d897a81b3e482dd5cf6fb91ef01f601b762a677683e0cc4e42b/8.6.5/lib/x86_64-osx-ghc-8.6.5/QuickCheck-2.12.6.1-FurF8Z9cNC7LPdADW0NOg6
QuickCheck        > Registering library for QuickCheck-2.12.6.1..
quickcheck-io     > using precompiled package
hspec-core        > using precompiled package
hspec             > using precompiled package
Str3Split         > configure (lib + exe)
Configuring Str3Split-0.1.0.0...
Str3Split         > build (lib + exe)
Preprocessing library for Str3Split-0.1.0.0..
Building library for Str3Split-0.1.0.0..
[1 of 3] Compiling Lib [Optimisation flags changed]
[2 of 3] Compiling Phoityne.Example.Math [Optimisation flags changed]
[3 of 3] Compiling Paths_Str3Split
Preprocessing executable 'Str3Split-exe' for Str3Split-0.1.0.0..
Building executable 'Str3Split-exe' for Str3Split-0.1.0.0..
[1 of 2] Compiling Main [Lib changed]
[2 of 2] Compiling Paths_Str3Split
Linking .stack-work/dist/x86_64-osx/Cabal-2.4.0.1/build/Str3Split-exe/Str3Split-exe ...
Str3Split         > copy/register
Installing library in /Users/ur20980/src/Str3Split/.stack-work/install/x86_64-osx/ba3c3b6458559d897a81b3e482dd5cf6fb91ef01f601b762a677683e0cc4e42b/8.6.5/lib/x86_64-osx-ghc-8.6.5/Str3Split-0.1.0.0-2MK9QJI88ca8lIo4kiCyOi
Installing executable Str3Split-exe in /Users/ur20980/src/Str3Split/.stack-work/install/x86_64-osx/ba3c3b6458559d897a81b3e482dd5cf6fb91ef01f601b762a677683e0cc4e42b/8.6.5/bin
Registering library for Str3Split-0.1.0.0..
Completed 17 action(s).
Testing complicated 'foldr'
"2d4 fda 81c 8ce 783 aso meF unc"
Testing my 'chunker' (uses 'unfoldr')
["2d","4f","da","81","c8","ce","78","3a","so","me","Fu","nc"]
Testing "splitMore" using 'unfoldr' and 'intercalate'
"2d 4f da 81 c8 ce 78 3a so me Fu nc"
Testing "splitMore" using 'unfoldr' and 'unwords'
"2d 4f da 81 c8 ce 78 3a so me Fu nc"

Process finished with exit code 0

I can only hope that beta-53 would help with this as well as with other issues.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:47 (23 by maintainers)

github_iconTop GitHub Comments

2reactions
rikvdkleijcommented, Aug 15, 2019
1reaction
rikvdkleijcommented, Sep 11, 2019

Perhaps it’s worth trying what you suggested above - replacing :type-at with :info for the library identifiers?

Will do that and also thinking about putting there a title/header.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Weird Error - Replit
I keep getting this error whenever i click building 1 how do i fix this? https://repl.it/@Aidan72/No-name-game.
Read more >
Error Message - Replit
Hi, How to solve this problem now? I was normally creating a Weather Forecast, and I closed the tab and when I opened...
Read more >
Strange ERROR - Replit
I don't know what is hapening but I see to get an error that has nothing to do with my code in "Repl.it"....
Read more >
Weird Error - Replit
I'm working on a chatbot, and it has emotions based on what you say. It's supposed to respond good to things such as...
Read more >
I am getting an error and I want a fix .-. - Replit
I am getting an error and I want a fix .-. ... However, from the picture, your ending double quote looks a bit...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found