Incorrect name specified in <fileType>, should be EO File, actual Simple File

Answered
0

I am creating an intellij plugin for custom EO language. I made eo.bnf and generated necessary classes for EO's syntax rules

When I ran plugin I got an error. IDE doesn't highlight syntax mistakes

My previous features work fine (for example icons near *.eo files)

I am using Intellij 2021

1 comment
Comment actions Permalink

Hi Stepa,

As the error message suggests, you probably set "Simple File" instead of "EO File" in the <fileType> element's "name" attribute in the plugin.xml descriptor file. This is probably caused by copying the code from the tutorial and not amending all required values.

Values in FileType.getName() and <fileType name="..." .../> must match, so please change it to the value suggested by the error message.

0

Please sign in to leave a comment.