Exception on Auto-Suggest :: PhpStorm / Commit Changes screen
See original GitHub issueWhen writing a commit message in PhpStorm, I get the following error any time the auto-suggest list for types or footerTypes appears. (I’ve checked this a few times, and the only difference I’ve seen is the line number reference for ensureItemIterator
(I’ve see Sequences.kt:269
and Sequences.kt:278
.)
java.lang.ClassCastException: class com.github.lppedd.cc.parser.InvalidToken cannot be cast to class com.github.lppedd.cc.parser.ValidToken (com.github.lppedd.cc.parser.InvalidToken and com.github.lppedd.cc.parser.ValidToken are in unnamed module of loader com.intellij.ide.plugins.cl.PluginClassLoader @11f0a234)
at com.github.lppedd.cc.api.DefaultCommitTokenProvider$getFooterValues$4.invoke(DefaultCommitTokenProvider.kt:97)
at com.github.lppedd.cc.api.DefaultCommitTokenProvider$getFooterValues$4.invoke(DefaultCommitTokenProvider.kt:25)
at kotlin.sequences.FilteringSequence$iterator$1.calcNext(Sequences.kt:133)
at kotlin.sequences.FilteringSequence$iterator$1.hasNext(Sequences.kt:156)
at kotlin.sequences.TransformingSequence$iterator$1.hasNext(Sequences.kt:176)
at kotlin.sequences.FilteringSequence$iterator$1.calcNext(Sequences.kt:131)
at kotlin.sequences.FilteringSequence$iterator$1.hasNext(Sequences.kt:156)
at kotlin.sequences.TransformingSequence$iterator$1.hasNext(Sequences.kt:176)
at kotlin.sequences.TransformingSequence$iterator$1.hasNext(Sequences.kt:176)
at kotlin.sequences.FilteringSequence$iterator$1.calcNext(Sequences.kt:131)
at kotlin.sequences.FilteringSequence$iterator$1.hasNext(Sequences.kt:156)
at kotlin.sequences.FlatteningSequence$iterator$1.ensureItemIterator(Sequences.kt:278)
at kotlin.sequences.FlatteningSequence$iterator$1.hasNext(Sequences.kt:265)
at kotlin.sequences.TransformingSequence$iterator$1.hasNext(Sequences.kt:176)
at kotlin.sequences.SequencesKt___SequencesKt.toCollection(_Sequences.kt:716)
at kotlin.sequences.SequencesKt___SequencesKt.toMutableList(_Sequences.kt:746)
at kotlin.sequences.SequencesKt___SequencesKt.toList(_Sequences.kt:737)
at com.github.lppedd.cc.api.DefaultCommitTokenProvider.getCommitFooterValues(DefaultCommitTokenProvider.kt:77)
at com.github.lppedd.cc.completion.providers.FooterValueCompletionProvider$complete$1$1.invoke(FooterValueCompletionProvider.kt:44)
at com.github.lppedd.cc.completion.providers.FooterValueCompletionProvider$complete$1$1.invoke(FooterValueCompletionProvider.kt:27)
at com.github.lppedd.cc.CCExtensionsKt$sam$i$java_util_concurrent_Callable$0.call(CCExtensions.kt)
at com.intellij.openapi.application.ex.ApplicationUtil.lambda$null$1(ApplicationUtil.java:62)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:625)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:570)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:61)
at com.intellij.openapi.application.ex.ApplicationUtil.lambda$runWithCheckCanceled$2(ApplicationUtil.java:60)
at com.intellij.util.RunnableCallable.call(RunnableCallable.java:20)
at com.intellij.util.RunnableCallable.call(RunnableCallable.java:11)
at com.intellij.openapi.application.impl.ApplicationImpl$1.call(ApplicationImpl.java:255)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
I don’t know if this would be helpful (say, if the issue is specific to my setup in some way), but here are the contents of my Help > About screen:
PhpStorm 2020.1
Build #PS-201.6668.153, built on April 13, 2020
Runtime version: 11.0.6+8-b765.25 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Linux 5.3.0-59-generic
GC: ParNew, ConcurrentMarkSweep
Memory: 2014M
Cores: 4
Registry:
run.processes.with.pty=TRUE,
debugger.valueTooltipAutoShowOnSelection=true,
localHistory.daysToKeep=30,
ide.tooltip.initialDelay=209,
ide.balloon.shadow.size=0
Non-Bundled Plugins:
com.github.lppedd.idea-conventional-commit,
ru.adelf.idea.dotenv,
me.mbolotov.cypress,
intellij.prettierJS
Current Desktop: KDE
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Commit Changes dialog | PhpStorm Documentation - JetBrains
Use this dialog to commit (check in) local changes to the repository and, optionally, to create a patch file.
Read more >IntelliJ is becoming unusable, steadily becoming slower and ...
As my project grows, IntelliJ is becoming unusable. ... saying "Move File Exception - Exception when attempting to compute the file change ...
Read more >تويتر \ التغريدات مع الردود بواسطة JetBrains PhpStorm ...
STR 1. Changed my settings directory so that I am using all default settings 2. Disabled all non-bundled plugins 3. The steps to...
Read more >How to commit changes to git in Intellij Idea - YouTube
Please do subscribe my channel: https://www.youtube.com/c/javashastra In this video we will see how to commit and push changes to git ...
Read more >What are non trivial functionalities of IntelliJ IDEA you are using
175 votes, 108 comments. So what functionalities of IDEA you are using that your colleagues are not? (i.e. jshell, httpclient, etc.)
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
@lppedd I haven’t noticed any crashes, and the autocomplete seems more snappy overall. 😄
Fixed with commit 54bb971747ec9ead95c54550f7b52b4a10f961ae.
Thanks!