Plugin.xml corrupt?

Hi, this ist my plugin.xml:

<idea-plugin version="22">   <id>TFSTask integration for PyCharm</id>   <description>Provides integration with TFS and SVN</description>   <name>TFSTask integration for PyCharm</name>   <version>1.0</version>   <description>     This Plugin should help to link workitems   </description>   <change-notes>     <![CDATA[ Add change notes here.<br> <small>most HTML tags may be used</small> ]]>   </change-notes>   <idea-version since-build="109.105"/>   <actions>     <action id="test" text="test" description="test">       <add-to-group group-id="MainMenu" anchor="first"/>     </action>   </actions> </idea-plugin>


But there is no item in the Main Menu.

This is just an example, every action or extension point in the plugin.xml is ignored.
However, entry of the Plugin in File->Settings->Plugins is there.

What is wrong?

12 comments
Comment actions Permalink

I started a new one from scratch and cant declare any functionality in plugin.xml
The action entry is still ignored

<idea-plugin version="2">   <id>com.yourcompany.unique.plugin.id</id>   <name>Plugin display name here</name>   <version>1.0</version>   <vendor email="support@yourcompany.com" url="http://www.yourcompany.com">YourCompany</vendor>   <depends>com.intellij.modules.platform</depends>   <description><![CDATA[       Enter short description for your plugin here.<br>       <small>most HTML tags may be used</small>       ]]></description>   <change-notes><![CDATA[       Add change notes here.<br>       <small>most HTML tags may be used</small>       ]]>   </change-notes>   <!-- please see http://confluence.jetbrains.net/display/IDEADEV/Build+Number+Ranges for description -->   <idea-version since-build="107.105"/>   <!-- please see http://confluence.jetbrains.net/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>   -->   <application-components>     <!-- Add your application components here -->   </application-components>   <project-components>     <!-- Add your project components here -->   </project-components>   <actions>     <!-- Add your actions here -->     <group id="MyPlugin.SampleMenu" text="_Sample Menu" description="Sample menu">     <action id="fsdafsdaf" text="sadfsadf" description="asdfasdfasdf">       <add-to-group group-id="MainMenu" anchor="last"/>     </action>     </group>   </actions>   <extensions defaultExtensionNs="com.intellij">     <!-- Add your extensions here -->   </extensions> </idea-plugin>

0
Comment actions Permalink

Have you actually read the article which I have directed you to?

0
Comment actions Permalink

I did, and i added com.intellij.modules.lang as dependencie. But still no functionality.
I have other Modules in my project which are working with the same settings, but this new one from scratch wont run.

0
Comment actions Permalink

In the plugin.xml you've posted above, the com.intellij.modules.lang dependency is commented out.

0
Comment actions Permalink

After i red the article i've added the dependencie, but it still wont work.

Even if i delete the implementing class, there is no error during runtime.
What is wrong?

<idea-plugin version="2">   <id>com.yourcompany.unique.plugin.id</id>   <name>Plugin display name here</name>   <version>1.0</version>   <vendor email="support@yourcompany.com" url="http://www.yourcompany.com">YourCompany</vendor>   <description><![CDATA[       Enter short description for your plugin here.<br>       <small>most HTML tags may be used</small>       ]]></description>   <change-notes><![CDATA[       Add change notes here.<br>       <small>most HTML tags may be used</small>       ]]>   </change-notes>   <!-- please see http://confluence.jetbrains.net/display/IDEADEV/Build+Number+Ranges for description -->   <idea-version since-build="107.105"/>   <!-- please see http://confluence.jetbrains.net/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>   -->   <depends>com.intellij.modules.lang</depends>   <application-components>     <!-- Add your application components here -->   </application-components>   <project-components>     <!-- Add your project components here -->   </project-components>   <actions>     <!-- Add your actions here -->     <group id="MyPlugin.SampleMenu" text="_Sample Menu" description="Sample menu">     <action id="fsdafsdaf" text="sadfsadf" description="asdfasdfasdf">       <add-to-group group-id="MainMenu" anchor="last"/>     </action>     </group>   </actions>   <extensions defaultExtensionNs="com.intellij">     <!-- Add your extensions here -->   </extensions> </idea-plugin>

0
Comment actions Permalink

This particular plugin.xml won't work because IntelliJ IDEA will fail to load the class "sdfasdf" and therefore will not add your action to the menu.

0
Comment actions Permalink

<idea-plugin version="2">   <id>com.yourcompany.unique.plugin.id</id>   <name>Plugin display name here</name>   <version>1.0</version>   <vendor email="support@yourcompany.com" url="http://www.yourcompany.com">YourCompany</vendor>   <description><![CDATA[       Enter short description for your plugin here.<br>       <small>most HTML tags may be used</small>       ]]></description>   <change-notes><![CDATA[       Add change notes here.<br>       <small>most HTML tags may be used</small>       ]]>   </change-notes>   <!-- please see http://confluence.jetbrains.net/display/IDEADEV/Build+Number+Ranges for description -->   <idea-version since-build="107.105"/>   <!-- please see http://confluence.jetbrains.net/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>   -->   <depends>com.intellij.modules.lang</depends>   <application-components>     <!-- Add your application components here -->   </application-components>   <project-components>     <!-- Add your project components here -->   </project-components>   <actions>     <!-- Add your actions here -->     <group id="MyPlugin.SampleMenu" text="_Sample Menu" description="Sample menu">       <action id="Why.is.it.not.working" text="WhyIsItNotWorking" description="WhyIsItNotWorking?">       <add-to-group group-id="MainMenu" anchor="last"/>     </action>     </group>   </actions>   <extensions defaultExtensionNs="com.intellij">     <!-- Add your extensions here -->   </extensions> </idea-plugin>



import com.intellij.openapi.actionSystem.AnAction; import com.intellij.openapi.actionSystem.AnActionEvent; /** * Created with IntelliJ IDEA. * User: david * Date: 17.10.13 * Time: 12:46 * To change this template use File | Settings | File Templates. */ public class WhyIsItNotWorking extends AnAction {   @Override   public void actionPerformed(AnActionEvent anActionEvent) {     System.out.println("It actually works.");   } }




Teach me master.
0
Comment actions Permalink

*push* please, tell me where i made the mistake!

kind regards
syt

0
Comment actions Permalink

I think you should fill in a effective java class

<group id="MyPlugin.SampleMenu" text="_Sample Menu" description="Sample menu">
      <action id="Why.is.it.not.working" : ; font-size: 14pt; font-family: arial black,avant garde; text-decoration: underline; ">WhyIsItNotWorking" text="WhyIsItNotWorking" description="WhyIsItNotWorking?">
      <add-to-group group-id="MainMenu" anchor="last"/>
    </action>
    </group>


      Example:

<group id="MyPlugin.SampleMenu" text="_Sample Menu" description="Sample menu">
      <action id="YourAcceptableId" : ; font-family: arial black,avant garde; text-decoration: underline; ">com.idea.example.YourClassName" text="WhyIsItNotWorking" description="WhyIsItNotWorking?">
      <add-to-group group-id="MainMenu" anchor="last"/>
    </action>
    </group>
0
Comment actions Permalink

Hi,

I have plugin.xml in my project and added completion contributor in it as follows:

    "<lang.parserDefinition language="CHTML" implementationClass="com.cname.intellij.ide.htmleditor.ChtmlParserDefinition" />"

It is giving error "cannotresolve language with id "CHTML".

 

I have create a language file with CHTML id.

 

Can anyone tell me why it is showing me this error?

 

Thanks

Ishan jain

0
Comment actions Permalink

I had the same message when adding support for new language "cannot resolve language with id... "
It seems like it is not a problem because my plugin compiles and runs correctly. IDEA just says that it is a new language and it does not know if you actually have implemented a Language class

0

Please sign in to leave a comment.