Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom extension not visible on IDE 4.7.2 #2411

Closed
mariosotil opened this issue Sep 10, 2016 · 2 comments
Closed

Custom extension not visible on IDE 4.7.2 #2411

mariosotil opened this issue Sep 10, 2016 · 2 comments
Labels
kind/question Questions that haven't been identified as being feature requests or bugs.

Comments

@mariosotil
Copy link

I followed the guides about how to create Extensions, but there is something I'm missing because I am still not able to add a Menu option. I tried with code written for other developers, and with projects started from the scratch.

These are the steps to reproduce the problem:

$ git checkout 4.7.2 
$ cd che
$ mvn clean install

In other place, I created a new folder and pulled a repo:

$ cd /home/user
$ mkdir example
$ git clone http://github.com/che-samples/che-ide-extension

I replaced the references into pom.xml, from 4.3.0-RC1-SNAPSHOT for 4.7.2. After that I built it

$ mvn clean install

I got back to the Che source code and installed the dependency in three places:

  • che/assembly/assembly-ide-war/pom.xml

    <dependency>
        <groupId>org.eclipse.che</groupId>
        <artifactId>che-examples-action</artifactId>
    </dependency>
    
  • che/assembly/assembly-ide-war/src/main/resources/org/eclipse/che/ide/IDE.gwt.xml

     <inherits name="examples.MyExtension"/>
    
  • che/pom.xml

        <dependency>
            <groupId>org.eclipse.che</groupId>
            <artifactId>che-examples-action</artifactId>
            <version>${che.version}</version>
        </dependency>
    

Just to be sure, I returned to the che folder and built everything

$ cd /home/user/eclipse/che
$ mvn clean install
$ cd assembly/assembly-main/target/eclipse-che-4.7.2/eclipse-che-4.7.2/
$ bin/che.sh

But the action is not visible at the IDE. What can I do?

@TylerJewell
Copy link

@mariosotil - my guess is that somehow when you are building your assembly, it's not picking up your local JAR file that contains your custom plugin.

A few things:
1: You don't need to build all of che from the root. It's going to spend a lot of cycles unnecessarily. So if you just want to include your plugin, go into /assembly/assembly-main and build it from there.

2: What happens if you replace the ${che.version} to be explicitly 4.7.2? The combination of , and tags that you have in your extension must match identically (case sensitive and all) what youa re including in che/pom.xml. So my guess is that something isn't quite right here and it's not getting picked up.

@TylerJewell TylerJewell added the kind/question Questions that haven't been identified as being feature requests or bugs. label Sep 10, 2016
@mariosotil
Copy link
Author

Hey! It worked! I did this on che/pom.xml

        <dependency>
            <groupId>org.eclipse.che</groupId>
            <artifactId>che-examples-action</artifactId>
            <version>4.7.2</version>
        </dependency>

Thank you so much :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/question Questions that haven't been identified as being feature requests or bugs.
Projects
None yet
Development

No branches or pull requests

2 participants