Trouble deploying plugin - works in sandbox but not when I manually build/install

Hello! I'm a bit new to plugin development so forgive me if I've missed something obvious but I can't seem to deploy a .zip file that actually works. Initially I thought it was just a problem with the plugin that I'm working on but I tried cloning and locally deploying idea-markdown (https://github.com/nicoulaj/idea-markdown) and still ran into the same issue. Both the plugin I'm working on and idea-markdown are language plugins, if that means anything. I'm able to tell they're not working since the icon for .md files remains the intellij default.

I'm able to run the project, the plugin works fine in the sandbox, but when I follow the steps at http://www.jetbrains.org/intellij/sdk/docs/basics/getting_started/deploying_plugin.html the zip file I produce doesnt work at all (when I select Intellij -> Preferences -> Plugins -> Install Plugin From Disk). I've attached the zip being created for reference.

Thanks in advance for any help!



Attachment(s):
idea-markdown.zip
5 comments
Comment actions Permalink

try this:


disable as many plugins as possible - leave only the most essential
disable other plugins which work on the same file extension
invalidate caches &  restart idea

open plugin project
rebuild plugin
prepare for deployment (note the path where .zip or .jar is saved to)
check content of the .zip (it may be empty if build failed)

close any projects
install your plugin from idea welcome screen

restart idea


does this work?

0
Comment actions Permalink

still seeing the same issue after following the steps you listed unfortunately

0
Comment actions Permalink

actually I think this is new: I'm now seeing

12:24:16 PM PluginException: net/nicoulaj/idea/markdown/settings/MarkdownGlobalSettingsConfigurable : Unsupported major.minor version 52.0 [Plugin: net.nicoulaj.idea.markdown]



when i start up intellij. I'll look into this a bit more but this might have helped loads.
0
Comment actions Permalink

maybe try this:

uninstall your plugin

open plugin project

set breakpoint on any exception (maybe set class filter if you can narrow it down to any classes)
run the plugin in debug mode

0
Comment actions Permalink

awesome, thank you. The issue was that I was building with a plugin sdk backed by Java7 when I needed Java6. Thanks! :)

0

Please sign in to leave a comment.