cedricziel / idea-php-typo3-plugin

TYPO3 CMS Plugins for IntelliJ IDEA / PhpStorm
MIT License
96 stars 8 forks source link

IndexNotReadyException after update to 2021.1 EAP #347

Closed vertexvaar closed 3 years ago

vertexvaar commented 3 years ago

Hi @cedricziel

thank you for your honestly awesome plugin. After updating to the latest PhpStorm EAP i got following exception.

Please change caller according to com.intellij.openapi.project.IndexNotReadyException documentation ``` com.intellij.openapi.project.IndexNotReadyException: Please change caller according to com.intellij.openapi.project.IndexNotReadyException documentation at com.intellij.openapi.project.IndexNotReadyException.create(IndexNotReadyException.java:67) at com.intellij.util.indexing.FileBasedIndexImpl.handleDumbMode(FileBasedIndexImpl.java:697) at com.intellij.util.indexing.FileBasedIndexImpl.ensureUpToDate(FileBasedIndexImpl.java:649) at com.intellij.psi.stubs.StubIndexImpl.getContainingIds(StubIndexImpl.java:495) at com.intellij.psi.stubs.StubIndexImpl.processElements(StubIndexImpl.java:301) at com.intellij.psi.stubs.StubIndex.getElements(StubIndex.java:92) at com.intellij.psi.stubs.StubIndex.getElements(StubIndex.java:80) at com.jetbrains.php.PhpIndexImpl.getElements(PhpIndexImpl.java:554) at com.jetbrains.php.PhpIndexImpl.getByName(PhpIndexImpl.java:965) at com.jetbrains.php.PhpIndexImpl.getByFQN(PhpIndexImpl.java:940) at com.jetbrains.php.PhpIndexImpl.getClassesByFQNInternal(PhpIndexImpl.java:1015) at com.jetbrains.php.PhpIndexImpl.getClassesByFQN(PhpIndexImpl.java:1008) at com.cedricziel.idea.typo3.container.IconProvider.collectIcons(IconProvider.java:76) at com.cedricziel.idea.typo3.container.IconProvider.collect(IconProvider.java:46) at com.cedricziel.idea.typo3.container.IconProvider.getInstance(IconProvider.java:30) at com.cedricziel.idea.typo3.TYPO3CMSProjectComponent.lambda$null$0(TYPO3CMSProjectComponent.java:38) at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:837) at com.cedricziel.idea.typo3.TYPO3CMSProjectComponent.lambda$projectOpened$1(TYPO3CMSProjectComponent.java:37) 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:268) 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.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:668) at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:665) at java.base/java.security.AccessController.doPrivileged(Native Method) at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:665) at java.base/java.lang.Thread.run(Thread.java:834) ```
liayn commented 3 years ago

Confirmed. @cedricziel would be really nice if you could adjust this soonish. Thanks.

cedricziel commented 3 years ago

Please check your plugin versions - this plugin is not yet compatible with 2021.1 and your IDE did download an ancient version that did not have an upper boundary.

Related: https://github.com/cedricziel/idea-php-typo3-plugin/issues/348

liayn commented 3 years ago

@cedricziel I run version 0.2.4. No update has been offered by phpstorm. (also not before the update to the EAP)

EDIT: It may be a dev-version you sent me some time ago to track down an issue. I just realized the version number is a bit out of "range". As the latest seems to be 203.6.1.

cedricziel commented 3 years ago

Your upgrade to 2021.1 effectively downgraded the extension to 0.2.4.

What I can eventually ask JetBrains is to mark the old versions incompatible so the downgrade wouldn't happen.

Would that help?

cedricziel commented 3 years ago

@liayn no, the version is "correct" in a sense. Starting january 2018, I started using the supported platform as version prefix - just as jetbrains do.

Please take a look at https://plugins.jetbrains.com/plugin/9496-typo3-cms-support/versions

203.6.1 is still the most recent version. It is plugin version 0.6.1 for the 203 IDEA platform.

liayn commented 3 years ago

Seems like the 0.2.4 version even works on 2021.1 except the mentioned error here. ;-)

vertexvaar commented 3 years ago

this plugin is not yet compatible with 2021.1

As far as i am concerned ~we can close this issue since you opened~ i will stick to #348

What I can eventually ask JetBrains is to mark the old versions incompatible so the downgrade wouldn't happen. Would that help?

This will prevent further issues of this kind :smile: I checked the Plugin version and it is, as you expected, 0.2.4. I'd suggest to add a github issue template where issuers are asked to enter their phpstorm and plugin version.