Language plugin only works in development environment.

Hey guys, I'm new here!
I just started developing a plugin for the TorqueScript language, but I hit a wall.
The plugin works fine if I click "run" from within IntelliJ, but if I try to deploy it by creating the .jar file, then it just shows up under plugins, but doesn't highlight the files. nor does it add the settings page.

I hope you can help me here as I haven't found anything on the internet so far.

I got the jar file here: https://onedrive.live.com/redir?resid=22CCBF302883D3DA!24635&authkey=!ACc2MwN7yfAZyoM&ithint=file%2cjar
And I don't know what other files would be relevant, but here is my plugin-xml as well:

<idea-plugin version="2">   <id>com.intellij.torquescript</id>   <name>TorqueScript</name>   <version>1.0</version>   <vendor email="lukaspj@outlook.com" url="http://torque3d.wikidot.com">Torque3D</vendor>   <description><![CDATA[       <b>Description tbd</b>     ]]></description>   <change-notes><![CDATA[       <b>First release</b>     ]]>   </change-notes>   <!-- please see http://confluence.jetbrains.com/display/IDEADEV/Build+Number+Ranges for description -->   <idea-version since-build="131"/>   <!-- please see http://confluence.jetbrains.com/display/IDEADEV/Plugin+Compatibility+with+IntelliJ+Platform+Products        on how to target different products -->   <!-- uncomment to enable plugin in all products   -->   <depends>com.intellij.modules.lang</depends>   <extensions defaultExtensionNs="com.intellij">     <!-- Add your extensions here -->       <fileTypeFactory implementation="com.intellij.torquescript.TSFileTypeFactory"/>       <lang.parserDefinition language="TorqueScript" implementationClass="com.intellij.torquescript.TSParserDefinition"/>       <lang.syntaxHighlighterFactory key="TorqueScript" implementationClass="com.intellij.torquescript.TSSyntaxHighlighterFactory"/>     <!-- Settings pages -->       <colorSettingsPage implementation="com.intellij.torquescript.TSColorSettingsPage"/>   </extensions>   <application-components>     <!-- Add your application components here -->   </application-components>   <project-components>     <!-- Add your project components here -->   </project-components>   <actions>     <!-- Add your actions here -->   </actions> </idea-plugin>

I hope you can help me!

5 comments
Comment actions Permalink

For anyone who wants to help, here is the GitHub repo with the source code: https://github.com/lukaspj/TorqueSense

0
Comment actions Permalink

I cannot access the JAR file, could you please upload it somewhere else? How did you create it? Anything in idea.log after installing plugin?


0
Comment actions Permalink

Yes ofc, I attached the .jar file here instead.
Created by clicking: "Build->Prepare Module 'TorqueScriptIDEA' For Deployment"

Thanks for pointing me in the direction of the .log, I've previously searched the install directory for something like it, but didn't know what to look for. Now I at least have an idea of whats going wrong.
The error is: "com.intellij.diagnostic.PluginException: com/intellij/torquescript/TSFileTypeFactory : Unsupported major.minor version 52.0 [Plugin: com.intellij.torquescript]" and I can see that is because it's compiled in Java 8 for no particular reason. I guess I just have to change that to Java 7. I'll try that route now!



Attachment(s):
TorqueScriptIDEA.jar
0
Comment actions Permalink

Yeah, making the plugin compile in Java 7 fixed it. Idk why I ever compiled it in Java 8, stupid mistake.

0
Comment actions Permalink

Lukas, as per answers here: http://devnet.jetbrains.com/thread/457874?tstart=0 you might want to consider compiling against Java 6 as target.

Maybe this should be in the docs / FAQ somewhere?
Hope it helps.

0

Please sign in to leave a comment.