Custom language plugin shows as enabled in IntelliJ, but doesn't work

Hello,

I'm new to plugin development, so bear with me. I just wrote a custom language plugin (following these directions), which works when I run it.After I built and deployed the plugin into a .jar file, I installed it in IntelliJ. When I open Settings, it shows up under the list of plugins and is enabled.

However, when I create a file under the file extension I defined (".monkey"), the plugin doesn't appear to be working. There's no syntax highlighting. What am I missing?

I'm running Mac OSX Yosemite 10.10.1, and I'm using IntelliJ Community Edition 14.0.2. I put my .jar file in this directory: ~/Library/Application Support/IdeaIC14 (which I did because of this document).  

Thanks!
Eva

0
7 comments

Please try installing it via Plugin Manager->Install plugin from Disk to make sure it installs into correct directory.

Please also check https://confluence.jetbrains.com/display/IDEADEV/Plugin+Compatibility+with+IntelliJ+Platform+Products and min/max version settings in your plugin.xml

If nothing helps, please attach idea.log from startup.

0

Also please check Settings | File Types and make sure that the .monkey extension is mapped to the file type of your plugin.

0

I tried that but the rules that you can set for Syntax Highlighting in the File Types tab were actually able to overrule (if my plugin is being loaded at all) that ones I wrote for my plugin. Is there a way for me to link my plugin to the file type I create in the File Types tab (besides defining the same file extension in the plugin itself)?

0

idea.log is attached.

Thanks for your help!



Attachment(s):
idea.log.zip
0

I've attached idea.log

Thanks for your help!



Attachment(s):
idea.log.zip
0

com/monkeyscriptplugin/MonkeyScriptFileTypeFactory : Unsupported major.minor version 52.0 [Plugin: com.monkeyscriptplugin]

You must compile your plugin with a JDK version compatible to the one you're using for running IDE. Using Java 6 is recommended for compatibility with Mac systems.

Also please disable JFlex plugin when using GrammarKit (it includes same functionality)

0

That did the trick -- thanks for all your help!!

0

Please sign in to leave a comment.