oowekyala / intellij-javacc

JavaCC and JJTree grammar support for the IntelliJ Platform
https://plugins.jetbrains.com/plugin/11431-javacc
MIT License
44 stars 6 forks source link

Warnings from IDEA about duplicate display names #23

Closed grv87 closed 2 years ago

grv87 commented 2 years ago
WARN - Types.impl.FileTypeManagerImpl -
com.github.oowekyala.ijcc.JavaccFileType@2c240b0d from 'PluginDescriptor(name=JavaCC, id=com.github.oowekyala.javacc, descriptorPath=plugin.xml, path=~\AppData\Roaming\JetBrains\IdeaIC2021.2\plugins\intellij-javacc, version=1.9, package=null)' (class com.github.oowekyala.ijcc.JavaccFileType) and
com.github.oowekyala.ijcc.JjtreeFileType@61a2e2f from 'PluginDescriptor(name=JavaCC, id=com.github.oowekyala.javacc, descriptorPath=plugin.xml, path=~\AppData\Roaming\JetBrains\IdeaIC2021.2\plugins\intellij-javacc, version=1.9, package=null)' (class com.github.oowekyala.ijcc.JjtreeFileType)
 both have the same .getDisplayName(): 'JavaCC'. Please override either one's getDisplayName() to something unique.

WARN - Types.impl.FileTypeManagerImpl -
com.github.oowekyala.ijcc.JjtreeFileType@61a2e2f from 'PluginDescriptor(name=JavaCC, id=com.github.oowekyala.javacc, descriptorPath=plugin.xml, path=~\AppData\Roaming\JetBrains\IdeaIC2021.2\plugins\intellij-javacc, version=1.9, package=null)' (class com.github.oowekyala.ijcc.JjtreeFileType) and
com.github.oowekyala.ijcc.Javacc21FileType@18f2bc5c from 'PluginDescriptor(name=JavaCC, id=com.github.oowekyala.javacc, descriptorPath=plugin.xml, path=~\AppData\Roaming\JetBrains\IdeaIC2021.2\plugins\intellij-javacc, version=1.9, package=null)' (class com.github.oowekyala.ijcc.Javacc21FileType)
 both have the same .getDisplayName(): 'JavaCC'. Please override either one's getDisplayName() to something unique.

I'm not sure whether this is serious. But it's annoying when IDEA is run from command line.

Wosch96 commented 2 years ago

We are also having the same issue but now there is an IDE error shown. Is there any update? IntelliJ made the change that the displayname must be unique in this commit.

oowekyala commented 2 years ago

I'll release a fix this weekend