JetBrains / idea-php-dotenv-plugin

environment parameters completion, based on .env file keys
MIT License
166 stars 13 forks source link

Error while indexing ... Dockerfile #8

Closed mastacheata closed 7 years ago

mastacheata commented 7 years ago

Hello,

the plugin seems to have problems when indexing at least certain Dockerfiles on my computer. I'm running the Plugin in PHPStorm 2017.2 on Windows 10 x64.

I'm not really sure wether this isn't ultimately a problem in Jetbrains Dockerfile parser. The problem is caused by your Plugin's Indexing operation, but the exception clearly happens in JetBrains code.

Here's the full error message:

Error while indexing C:\xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\phpmyadmin\Dockerfile To reindex this file IDEA has to be restarted: com.intellij.plugins.docker.dockerFile.parser.psi.DockerFileEnvRegularDeclaration.getEnvRegularValue()Lcom/intellij/plugins/docker/dockerFile/parser/psi/DockerFileEnvRegularValue; java.lang.NoSuchMethodError: com.intellij.plugins.docker.dockerFile.parser.psi.DockerFileEnvRegularDeclaration.getEnvRegularValue()Lcom/intellij/plugins/docker/dockerFile/parser/psi/DockerFileEnvRegularValue; at ru.adelf.idea.dotenv.docker.DockerfilePsiElementsVisitor.visitProperty(DockerfilePsiElementsVisitor.java:30) at ru.adelf.idea.dotenv.docker.DockerfilePsiElementsVisitor.visitElement(DockerfilePsiElementsVisitor.java:22) at com.intellij.psi.impl.PsiElementBase.accept(PsiElementBase.java:274) at com.intellij.plugins.docker.dockerFile.parser.impl.DockerFileEnvRegularDeclarationImpl.accept(DockerFileEnvRegularDeclarationImpl.java:26) at com.intellij.psi.impl.PsiElementBase.acceptChildren(PsiElementBase.java:69) at com.intellij.psi.PsiRecursiveElementVisitor.visitElement(PsiRecursiveElementVisitor.java:40) at ru.adelf.idea.dotenv.docker.DockerfilePsiElementsVisitor.visitElement(DockerfilePsiElementsVisitor.java:25) at com.intellij.psi.impl.PsiElementBase.accept(PsiElementBase.java:274) at com.intellij.plugins.docker.dockerFile.parser.impl.DockerFileEnvCommandImpl.accept(DockerFileEnvCommandImpl.java:26) at com.intellij.psi.impl.source.tree.SharedImplUtil.acceptChildren(SharedImplUtil.java:200) at com.intellij.psi.impl.source.PsiFileImpl.acceptChildren(PsiFileImpl.java:857) at ru.adelf.idea.dotenv.docker.DockerfileVariablesProvider.getElements(DockerfileVariablesProvider.java:29) at ru.adelf.idea.dotenv.indexing.EnvironmentVariablesIndex.lambda$getIndexer$0(EnvironmentVariablesIndex.java:27) at com.intellij.util.indexing.impl.MapReduceIndex.mapInput(MapReduceIndex.java:272) at com.intellij.util.indexing.VfsAwareMapReduceIndex.calculateUpdateData(VfsAwareMapReduceIndex.java:99) at com.intellij.util.indexing.impl.MapReduceIndex.update(MapReduceIndex.java:215) at com.intellij.util.indexing.FileBasedIndexImpl.a(FileBasedIndexImpl.java:1615) at com.intellij.util.indexing.FileBasedIndexImpl.a(FileBasedIndexImpl.java:1551) at com.intellij.openapi.fileTypes.impl.FileTypeManagerImpl.freezeFileTypeTemporarilyIn(FileTypeManagerImpl.java:518) at com.intellij.util.indexing.FileBasedIndexImpl.a(FileBasedIndexImpl.java:1510) at com.intellij.util.indexing.FileBasedIndexImpl.indexFileContent(FileBasedIndexImpl.java:1498) at com.intellij.util.indexing.UnindexedFilesUpdater.a(UnindexedFilesUpdater.java:105) at com.intellij.openapi.project.CacheUpdateRunner$MyRunnable.a(CacheUpdateRunner.java:229) at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1161) at com.intellij.openapi.project.CacheUpdateRunner$MyRunnable.a(CacheUpdateRunner.java:246) at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:170) at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:548) at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:493) at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:94) at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:157) at com.intellij.openapi.project.CacheUpdateRunner$MyRunnable.run(CacheUpdateRunner.java:242) at com.intellij.openapi.application.impl.ApplicationImpl$2.run(ApplicationImpl.java:343) 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:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)

java.lang.NoSuchMethodError: com.intellij.plugins.docker.dockerFile.parser.psi.DockerFileEnvRegularDeclaration.getEnvRegularValue()Lcom/intellij/plugins/docker/dockerFile/parser/psi/DockerFileEnvRegularValue; at ru.adelf.idea.dotenv.docker.DockerfilePsiElementsVisitor.visitProperty(DockerfilePsiElementsVisitor.java:30) at ru.adelf.idea.dotenv.docker.DockerfilePsiElementsVisitor.visitElement(DockerfilePsiElementsVisitor.java:22) at com.intellij.psi.impl.PsiElementBase.accept(PsiElementBase.java:274) at com.intellij.plugins.docker.dockerFile.parser.impl.DockerFileEnvRegularDeclarationImpl.accept(DockerFileEnvRegularDeclarationImpl.java:26) at com.intellij.psi.impl.PsiElementBase.acceptChildren(PsiElementBase.java:69) at com.intellij.psi.PsiRecursiveElementVisitor.visitElement(PsiRecursiveElementVisitor.java:40) at ru.adelf.idea.dotenv.docker.DockerfilePsiElementsVisitor.visitElement(DockerfilePsiElementsVisitor.java:25) at com.intellij.psi.impl.PsiElementBase.accept(PsiElementBase.java:274) at com.intellij.plugins.docker.dockerFile.parser.impl.DockerFileEnvCommandImpl.accept(DockerFileEnvCommandImpl.java:26) at com.intellij.psi.impl.source.tree.SharedImplUtil.acceptChildren(SharedImplUtil.java:200) at com.intellij.psi.impl.source.PsiFileImpl.acceptChildren(PsiFileImpl.java:857) at ru.adelf.idea.dotenv.docker.DockerfileVariablesProvider.getElements(DockerfileVariablesProvider.java:29) at ru.adelf.idea.dotenv.indexing.EnvironmentVariablesIndex.lambda$getIndexer$0(EnvironmentVariablesIndex.java:27) at com.intellij.util.indexing.impl.MapReduceIndex.mapInput(MapReduceIndex.java:272) at com.intellij.util.indexing.VfsAwareMapReduceIndex.calculateUpdateData(VfsAwareMapReduceIndex.java:99) at com.intellij.util.indexing.impl.MapReduceIndex.update(MapReduceIndex.java:215) at com.intellij.util.indexing.FileBasedIndexImpl.a(FileBasedIndexImpl.java:1615) at com.intellij.util.indexing.FileBasedIndexImpl.a(FileBasedIndexImpl.java:1551) at com.intellij.openapi.fileTypes.impl.FileTypeManagerImpl.freezeFileTypeTemporarilyIn(FileTypeManagerImpl.java:518) at com.intellij.util.indexing.FileBasedIndexImpl.a(FileBasedIndexImpl.java:1510) at com.intellij.util.indexing.FileBasedIndexImpl.indexFileContent(FileBasedIndexImpl.java:1498) at com.intellij.util.indexing.UnindexedFilesUpdater.a(UnindexedFilesUpdater.java:105) at com.intellij.openapi.project.CacheUpdateRunner$MyRunnable.a(CacheUpdateRunner.java:229) at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1161) at com.intellij.openapi.project.CacheUpdateRunner$MyRunnable.a(CacheUpdateRunner.java:246) at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:170) at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:548) at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:493) at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:94) at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:157) at com.intellij.openapi.project.CacheUpdateRunner$MyRunnable.run(CacheUpdateRunner.java:242) at com.intellij.openapi.application.impl.ApplicationImpl$2.run(ApplicationImpl.java:343) 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:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)

java.lang.NoSuchMethodError: com.intellij.plugins.docker.dockerFile.parser.psi.DockerFileEnvRegularDeclaration.getEnvRegularValue()Lcom/intellij/plugins/docker/dockerFile/parser/psi/DockerFileEnvRegularValue; at ru.adelf.idea.dotenv.docker.DockerfilePsiElementsVisitor.visitProperty(DockerfilePsiElementsVisitor.java:30) at ru.adelf.idea.dotenv.docker.DockerfilePsiElementsVisitor.visitElement(DockerfilePsiElementsVisitor.java:22) at com.intellij.psi.impl.PsiElementBase.accept(PsiElementBase.java:274) at com.intellij.plugins.docker.dockerFile.parser.impl.DockerFileEnvRegularDeclarationImpl.accept(DockerFileEnvRegularDeclarationImpl.java:26) at com.intellij.psi.impl.PsiElementBase.acceptChildren(PsiElementBase.java:69) at com.intellij.psi.PsiRecursiveElementVisitor.visitElement(PsiRecursiveElementVisitor.java:40) at ru.adelf.idea.dotenv.docker.DockerfilePsiElementsVisitor.visitElement(DockerfilePsiElementsVisitor.java:25) at com.intellij.psi.impl.PsiElementBase.accept(PsiElementBase.java:274) at com.intellij.plugins.docker.dockerFile.parser.impl.DockerFileEnvCommandImpl.accept(DockerFileEnvCommandImpl.java:26) at com.intellij.psi.impl.source.tree.SharedImplUtil.acceptChildren(SharedImplUtil.java:200) at com.intellij.psi.impl.source.PsiFileImpl.acceptChildren(PsiFileImpl.java:857) at ru.adelf.idea.dotenv.docker.DockerfileVariablesProvider.getElements(DockerfileVariablesProvider.java:29) at ru.adelf.idea.dotenv.indexing.EnvironmentVariablesIndex.lambda$getIndexer$0(EnvironmentVariablesIndex.java:27) at com.intellij.util.indexing.impl.MapReduceIndex.mapInput(MapReduceIndex.java:272) at com.intellij.util.indexing.VfsAwareMapReduceIndex.calculateUpdateData(VfsAwareMapReduceIndex.java:99) at com.intellij.util.indexing.impl.MapReduceIndex.update(MapReduceIndex.java:215) at com.intellij.util.indexing.FileBasedIndexImpl.a(FileBasedIndexImpl.java:1615) at com.intellij.util.indexing.FileBasedIndexImpl.a(FileBasedIndexImpl.java:1551) at com.intellij.openapi.fileTypes.impl.FileTypeManagerImpl.freezeFileTypeTemporarilyIn(FileTypeManagerImpl.java:518) at com.intellij.util.indexing.FileBasedIndexImpl.a(FileBasedIndexImpl.java:1510) at com.intellij.util.indexing.FileBasedIndexImpl.indexFileContent(FileBasedIndexImpl.java:1498) at com.intellij.util.indexing.UnindexedFilesUpdater.a(UnindexedFilesUpdater.java:105) at com.intellij.openapi.project.CacheUpdateRunner$MyRunnable.a(CacheUpdateRunner.java:229) at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1161) at com.intellij.openapi.project.CacheUpdateRunner$MyRunnable.a(CacheUpdateRunner.java:246) at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:170) at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:548) at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:493) at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:94) at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:157) at com.intellij.openapi.project.CacheUpdateRunner$MyRunnable.run(CacheUpdateRunner.java:242) at com.intellij.openapi.application.impl.ApplicationImpl$2.run(ApplicationImpl.java:343) 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:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)

And this is the Dockerfile in question:

FROM phpmyadmin/phpmyadmin

ENV PMA_ARBITRARY=1

adelf commented 7 years ago

This bug already fixed in 0.4 version. Please update.

mastacheata commented 7 years ago

Oh, thanks. There was no update notification, but when I browse the Plugins there's an update button.

Am 22.07.2017 um 15:15 schrieb Adel:

This bug already fixed in 0.4 version. Please update.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/adelf/idea-php-dotenv-plugin/issues/8#issuecomment-317183111, or mute the thread https://github.com/notifications/unsubscribe-auth/AArt5WXuq05XHuaboP10zYlFBYhpHL0Fks5sQfYDgaJpZM4OgKwY.