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.

v2.2.0 freezes my IntelliJ IDEA 2020.1

See original GitHub issue

I have a big solidity project (like 5k lines). After 2.2.0 update I’m no longer able to edit any of my .sol files - IDE just freezes when I start typing. It may unfreeze after some time, but then it freezes again.

And also task manager shows increased resources consumption for IntelliJ.

I’m on Windows 10.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
SerCeMancommented, Jun 27, 2020

Hey, folks! I believe the issue should be fixed in 2.2.1, the version is currently under review in the JB marketplace, in the meantime, you can get the new latest build from here.

1reaction
SerCeMancommented, Jun 24, 2020

@seniorjoinu Thanks! One of the threaddumps from the logs contains the full thread dump which shows where the recursion starts:

11448         at kotlin.sequences.FlatteningSequence$iterator$1.hasNext(Sequences.kt:265)
11449         at kotlin.sequences.FlatteningSequence$iterator$1.ensureItemIterator(Sequences.kt:269)
11450         at kotlin.sequences.FlatteningSequence$iterator$1.hasNext(Sequences.kt:265)
11451         at kotlin.sequences.FlatteningSequence$iterator$1.ensureItemIterator(Sequences.kt:269)
11452         at kotlin.sequences.FlatteningSequence$iterator$1.hasNext(Sequences.kt:265)
11453         at kotlin.sequences.FlatteningSequence$iterator$1.ensureItemIterator(Sequences.kt:269)
11454         at kotlin.sequences.FlatteningSequence$iterator$1.hasNext(Sequences.kt:265)
11455         at kotlin.sequences.FlatteningSequence$iterator$1.ensureItemIterator(Sequences.kt:269)
11456         at kotlin.sequences.FlatteningSequence$iterator$1.hasNext(Sequences.kt:265)
11457         at kotlin.sequences.FlatteningSequence$iterator$1.ensureItemIterator(Sequences.kt:269)
11458         at kotlin.sequences.FlatteningSequence$iterator$1.hasNext(Sequences.kt:265)
11459         at kotlin.sequences.FlatteningSequence$iterator$1.ensureItemIterator(Sequences.kt:269)
11460         at kotlin.sequences.FlatteningSequence$iterator$1.next(Sequences.kt:259)
11461         at kotlin.sequences.FlatteningSequence$iterator$1.next(Sequences.kt:261)
11462         at kotlin.sequences.FlatteningSequence$iterator$1.next(Sequences.kt:261)
11463         at kotlin.sequences.FlatteningSequence$iterator$1.next(Sequences.kt:261)
11464         at kotlin.sequences.FlatteningSequence$iterator$1.next(Sequences.kt:261)
...................
11621         at kotlin.sequences.FlatteningSequence$iterator$1.next(Sequences.kt:261)
11622         at kotlin.sequences.FlatteningSequence$iterator$1.next(Sequences.kt:261)
11623         at kotlin.sequences.FlatteningSequence$iterator$1.next(Sequences.kt:261)
11624         at kotlin.sequences.FlatteningSequence$iterator$1.next(Sequences.kt:261)
11625         at kotlin.sequences.DistinctIterator.computeNext(Sequences.kt:524)
11626         at kotlin.collections.AbstractIterator.tryToComputeNext(AbstractIterator.kt:42)
11627         at kotlin.collections.AbstractIterator.hasNext(AbstractIterator.kt:29)
11628         at kotlin.sequences.FlatteningSequence$iterator$1.ensureItemIterator(Sequences.kt:269)
11629         at kotlin.sequences.FlatteningSequence$iterator$1.hasNext(Sequences.kt:265)
11630         at kotlin.sequences.FilteringSequence$iterator$1.calcNext(Sequences.kt:131)
11631         at kotlin.sequences.FilteringSequence$iterator$1.hasNext(Sequences.kt:156)
11632         at kotlin.sequences.SequencesKt___SequencesKt.toCollection(_Sequences.kt:722)
11633         at kotlin.sequences.SequencesKt___SequencesKt.toMutableList(_Sequences.kt:752)
11634         at kotlin.sequences.SequencesKt___SequencesKt.toList(_Sequences.kt:743)
11635         at me.serce.solidity.lang.resolve.SolResolver.resolveVarLiteral(engine.kt:167)
11636         at me.serce.solidity.lang.resolve.ref.SolFunctionCallReference.resolveFunctionCall(refs.kt:91)
11637         at me.serce.solidity.lang.resolve.ref.SolFunctionCallReference.resolveFunctionCallAndFilter(refs.kt:199)
11638         at me.serce.solidity.lang.resolve.ref.SolFunctionCallReference.multiResolve(refs.kt:194)
11639         at me.serce.solidity.lang.resolve.SolResolver.resolveVarLiteralReference(engine.kt:132)
11640         at me.serce.solidity.lang.resolve.ref.SolVarLiteralReference.multiResolve(refs.kt:20)
11641         at me.serce.solidity.lang.resolve.ref.SolVarLiteralReference.multiResolve(refs.kt:19)
11642         at me.serce.solidity.lang.resolve.ref.SolReferenceBase$multiResolve$1.resolve(SolReferenceBase.kt:21)
11643         at me.serce.solidity.lang.resolve.ref.SolReferenceBase$multiResolve$1.resolve(SolReferenceBase.kt:14)

I’ll take a look into this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Randomly IntelliJ IDEA 2020.1.2 freezes & crashes on Ubuntu ...
Randomly IntelliJ IDEA 2020.1.2 freezes & crashes on Ubuntu 20.04 Kernel 5.4.0-40-generic ; Issue state, Duplicate ; Affected JBR builds, No affected jre...
Read more >
Idea 2020.1 freezes forever when editing code - YouTrack
As of today my intellij ulimate edition became useless due to a freeze similar as above. I can do a single edit task...
Read more >
IntelliJ Idea 2020.1 freezes for 5-20sec while typing - YouTrack
2. Hi,. after updating community edition from 2019.3 to 2020.1 IntelliJ IDEA has significant lag while typing. Using IntelliJ now for more than...
Read more >
IntelliJ IDEA 2020.1 causes intermittent complete system freeze
Following the update from 2019.3.4 to 2020.1, I experience complete system freezes while using IntelliJ IDEA. After about 10m to one hour, during...
Read more >
IntelliJ 2020.1.2: Consistently crashes on macOS Catalina ...
2 consistently crashes each night/morning on my MacBook Pro 2018. I'm up-to-date on both macOS (10.15.5) and IntelliJ (2020.1.2 Ultimate, Build ...
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