GWT Error
Hi,
I have fallowed your embedjs sample without issues, then I change the package name from org.eclipse.che.sample and now I cannot compile this module and I don't know why
[INFO] Che IDE :: GWT App ................................. FAILURE [ 51.504 s]
[ERROR] Line 30: No source code is available for type org.eclipse.che.plugin.vfos.menu.VfOsMenuViewExtension; did you forget to inherit a required module?
Are you able to help me please?
Can you share your source code somewhere on Github?
Hi @skabashnyuk ,
My issue is related with a plugin -> che-plugin-vfos-menu-ide
https://github.com/mstavares/che_issue
Did you follow some guide or made a sample from one of this projects https://github.com/che-samples ? Looks like you have very old fork of che? Am I right?
Hi @skabashnyuk
Yes, you guys sent me a tutorial from embedjs
Can you point me on that comment? AFAIK this is https://github.com/che-samples/che-plugin-embedjs sample. And It doesn't contain the whole Che repository.
https://github.com/eclipse/che/issues/10046
@mstavares are you sure https://github.com/che-samples/che-plugin-embedjs has something in common with https://github.com/mstavares/che_issue? Can you fork again https://github.com/che-samples/che-plugin-embedjs and put your changes as separate commit?
Yes, it is. Please, look at plugins/plugin-vfos/che-plugin-vfos-menu
@mstavares you do not need to build the entire Che.
Just fork https://github.com/che-samples/che-plugin-embedjs
Change package name and make sure it is changed here to https://github.com/che-samples/che-plugin-embedjs/blob/master/assembly/assembly-ide-war/pom.xml#L38
@eivantsov I already changed the package name but I still having the same issue.
[INFO] Compiling module org.eclipse.che.ide.IDE
[INFO] Ignored 92 units with compilation errors in first pass.
[INFO] Compile with -strict or with -logLevel set to TRACE or DEBUG to see all errors.
[INFO] Computing all possible rebind results for 'com.google.gwt.useragent.client.UserAgentAsserter'
[INFO] Rebinding com.google.gwt.useragent.client.UserAgentAsserter
[INFO] Checking rule
assembly-ide-war
<dependency>
<groupId>org.eclipse.che.plugin.vfos</groupId>
<artifactId>che-plugin-vfos-menu-ide</artifactId>
<version>6.7.0-SNAPSHOT</version>
<type>gwt-lib</type>
</dependency>
My package name is:
package org.eclipse.che.plugin.vfos.menu.view;
can you fork now https://github.com/che-samples/che-plugin-embedjs with 6.10.0-snapshot version and apply your changes as separate commit?
@skabashnyuk
Done, but remains with the same error
INFO] --- gwt-maven-plugin:1.0-rc-8:compile (default-compile) @ che-ide-gwt-app ---
[INFO] Compiling module org.eclipse.che.ide.IDE
[INFO] Ignored 92 units with compilation errors in first pass.
[INFO] Compile with -strict or with -logLevel set to TRACE or DEBUG to see all errors.
[INFO] Computing all possible rebind results for 'com.google.gwt.useragent.client.UserAgentAsserter'
[INFO] Rebinding com.google.gwt.useragent.client.UserAgentAsserter
[INFO] Checking rule
I have used that sample and then I changed the package name
can you share your new fork?
@mstavares have you changed it here too https://github.com/che-samples/che-plugin-embedjs/blob/master/pom.xml#L67?
Try text search across the project to see where the old artifact name might be.
@skabashnyuk
I didn't change nothing on your sample code, I just tried to change the package name and the same error remains.
@eivantsov
Mine is like this:
<dependency>
<groupId>org.eclipse.che.plugin</groupId>
<artifactId>plugin-embedjs-ide</artifactId>
<version>${che.version}</version>
</dependency>
<dependency>
<groupId>org.eclipse.che.plugin</groupId>
<artifactId>plugin-embedjs-ide</artifactId>
<version>${che.version}</version>
<type>gwt-lib</type>
</dependency>
Should I remove this one?
<dependency>
<groupId>org.eclipse.che.plugin</groupId>
<artifactId>plugin-embedjs-ide</artifactId>
<version>${che.version}</version>
</dependency>
Perhaps this should be changed too https://github.com/che-samples/che-plugin-embedjs/blob/master/plugins/plugin-embedjs/plugin-embedjs-ide/pom.xml#L58
Closing the issue. Feel free to reopen if the issue persists