Exception when typing a package name in build-depends stanza of .cabal file
See original GitHub issueRepro: stack new
; open .cabal
file; position caret to the end of base >= ...
line under the library
→ build-depends
; <kbd>Enter</kbd>, <kbd>Shift</kbd><kbd>Tab</kbd>, <kbd>Space</kbd>, type git
Expected: a popup with the list of packages beginning with git
, including github
Instead: no such popup, an exception instead.
Stack trace
java.io.IOException: Stream Closed
at java.io.FileInputStream.readBytes(Native Method)
at java.io.FileInputStream.read(FileInputStream.java:255)
at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:284)
at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:326)
at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:178)
at java.io.InputStreamReader.read(InputStreamReader.java:184)
at java.io.BufferedReader.fill(BufferedReader.java:161)
at java.io.BufferedReader.readLine(BufferedReader.java:324)
at java.io.BufferedReader.readLine(BufferedReader.java:389)
at scala.io.BufferedSource$BufferedLineIterator.hasNext(BufferedSource.scala:74)
at scala.collection.Iterator.toStream(Iterator.scala:1415)
at scala.collection.Iterator.toStream$(Iterator.scala:1414)
at scala.collection.AbstractIterator.toStream(Iterator.scala:1429)
at scala.collection.Iterator.$anonfun$toStream$1(Iterator.scala:1415)
at scala.collection.immutable.Stream$Cons.tail(Stream.scala:1171)
at scala.collection.immutable.Stream$Cons.tail(Stream.scala:1161)
at scala.collection.immutable.Stream$.$anonfun$filteredTail$1(Stream.scala:1258)
at scala.collection.immutable.Stream$Cons.tail(Stream.scala:1171)
at scala.collection.immutable.Stream$Cons.tail(Stream.scala:1161)
at scala.collection.immutable.Stream.$anonfun$map$1(Stream.scala:418)
at scala.collection.immutable.Stream$Cons.tail(Stream.scala:1171)
at scala.collection.immutable.Stream$Cons.tail(Stream.scala:1161)
at scala.collection.immutable.Stream$.$anonfun$filteredTail$1(Stream.scala:1258)
at scala.collection.immutable.Stream$Cons.tail(Stream.scala:1171)
at scala.collection.immutable.Stream$Cons.tail(Stream.scala:1161)
at scala.collection.immutable.Stream$.$anonfun$filteredTail$1(Stream.scala:1258)
at scala.collection.immutable.Stream$Cons.tail(Stream.scala:1171)
at scala.collection.immutable.Stream$Cons.tail(Stream.scala:1161)
at scala.collection.immutable.Stream.$anonfun$map$1(Stream.scala:418)
at scala.collection.immutable.Stream$Cons.tail(Stream.scala:1171)
at scala.collection.immutable.Stream$Cons.tail(Stream.scala:1161)
at scala.collection.immutable.Stream.foreach(Stream.scala:534)
at intellij.haskell.cabal.completion.CabalCompletionContributor$CompletionWrapper.$anonfun$completeExtensions$1(CabalCompletionContributor.scala:47)
at intellij.haskell.cabal.completion.CabalCompletionContributor$CompletionWrapper.$anonfun$completeExtensions$1$adapted(CabalCompletionContributor.scala:42)
at scala.Option.foreach(Option.scala:274)
at intellij.haskell.cabal.completion.CabalCompletionContributor$CompletionWrapper.completeExtensions(CabalCompletionContributor.scala:42)
at intellij.haskell.cabal.completion.CabalCompletionContributor$CompletionWrapper.run(CabalCompletionContributor.scala:36)
at intellij.haskell.cabal.completion.CabalCompletionContributor$$anon$1.addCompletions(CabalCompletionContributor.scala:29)
at com.intellij.codeInsight.completion.CompletionProvider.addCompletionVariants(CompletionProvider.java:36)
at com.intellij.codeInsight.completion.CompletionContributor.fillCompletionVariants(CompletionContributor.java:161)
at com.intellij.codeInsight.completion.CompletionService.getVariantsFromContributors(CompletionService.java:90)
at com.intellij.codeInsight.completion.CompletionResultSet.runRemainingContributors(CompletionResultSet.java:149)
at com.intellij.codeInsight.completion.CompletionResultSet.runRemainingContributors(CompletionResultSet.java:142)
at com.intellij.codeInsight.template.impl.LiveTemplateCompletionContributor$1.addCompletions(LiveTemplateCompletionContributor.java:77)
at com.intellij.codeInsight.completion.CompletionProvider.addCompletionVariants(CompletionProvider.java:36)
at com.intellij.codeInsight.completion.CompletionContributor.fillCompletionVariants(CompletionContributor.java:161)
at com.intellij.codeInsight.completion.CompletionService.getVariantsFromContributors(CompletionService.java:90)
at com.intellij.codeInsight.completion.CompletionService.performCompletion(CompletionService.java:120)
at com.intellij.codeInsight.completion.impl.CompletionServiceImpl.performCompletion(CompletionServiceImpl.java:60)
at com.intellij.codeInsight.completion.CompletionProgressIndicator.calculateItems(CompletionProgressIndicator.java:828)
at com.intellij.codeInsight.completion.CompletionProgressIndicator.runContributors(CompletionProgressIndicator.java:813)
at com.intellij.codeInsight.completion.CodeCompletionHandlerBase.lambda$null$2(CodeCompletionHandlerBase.java:280)
at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1166)
at com.intellij.codeInsight.completion.AsyncCompletion.tryReadOrCancel(CompletionThreading.java:170)
at com.intellij.codeInsight.completion.CodeCompletionHandlerBase.lambda$doComplete$3(CodeCompletionHandlerBase.java:277)
at com.intellij.codeInsight.completion.AsyncCompletion.lambda$null$0(CompletionThreading.java:95)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:164)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:586)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:532)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:86)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:151)
at com.intellij.codeInsight.completion.AsyncCompletion.lambda$startThread$1(CompletionThreading.java:91)
at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:311)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
new-build failure with custom-setup when setup-depends ...
I wonder why the setup script compiled without Cabal in build-depends of the custom-setup section, since it seems to be importing stuff from ......
Read more >haskell - cabal error when building a simple tutorial project
The problem is that your test suite depends on the library haq , but the cabal file does not declare a library component....
Read more >7. Package Description — Cabal 3.4.0.0 User's Guide
A package is identified by a globally-unique package name, which consists of one ... LICENSE cabal-version: 1.12 build-type: Simple library build-depends: ...
Read more >Note: Testing with Cabal, HSpec, HUnit, and QuickCheck
How do we know that the code we write is correct? ... interesting is the file merge.cabal , where we edit the test...
Read more >Insane in the Membrain - Kowainik
Kowainik — Membrain is the Haskell library for type-safe memory units. ... Since the package has such an extraordinary name I feel like...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes, I also noticed that. Fixed it already locally.
That did it, thanks!