Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [che-dev] che plugin, part development

Hello,
 
I used the json example and get it running with a customized view. So this is no longer a problem.
 
But is there a way to build the plugins faster? At the moment I need to shutdown eclipse che, build the sources for around 10 min and restarting eclipse che. After that I can finally see the changes.
 
Thanks,
Tobias
 
Gesendet: Mittwoch, 15. August 2018 um 17:15 Uhr
Von: "Tobias Fox" <TobiasFox@xxxxxxx>
An: che-dev@xxxxxxxxxxx
Cc: "che developer discussions" <che-dev@xxxxxxxxxxx>
Betreff: Re: [che-dev] che plugin, part development
Hello Vitalii,
 
Thank you for your help!
 
After including the gin module in the pom, the error with the import is not existing anymore! :)
 
I checked the pom.xml of the plugin and the packaging is already set to gwt-lib. It is exactly the same file like the pom in this repo https://github.com/che-samples/che-ide-server-extension/blob/master/plugins/plugin-serverservice/plugin-serverservice-ide/pom.xml . I just added the gin dependency.
 
The che-ide-server-extension repo is the basis of my plugin and I added the code from the che docs about the parts.
 
best regards,
Tobias
 
Gesendet: Mittwoch, 15. August 2018 um 15:57 Uhr
Von: "Vitalii Parfonov" <vparfono@xxxxxxxxxx>
An: "che developer discussions" <che-dev@xxxxxxxxxxx>
Betreff: Re: [che-dev] che plugin, part development
Hi

Problem is here
  [ERROR] Line 27: No source code is available for type org.eclipse.che.plugn.parts.ide.helloworldview.HelloWorldPresenter; did you forget to inherit a required module?
Check, please,  pom.xml of your plugin it should have packaging 'gwt-lib' like here.  
About not success imports check on dependency in you pom it must has Gin like here.
 
Ask again if still have problem will help you with pleasure.   
 
On Wed, Aug 15, 2018 at 3:41 PM Tobias Fox <TobiasFox@xxxxxxx> wrote:
Hello,
 
I have a question:
Eclipse Che with local binaries is running and I want to develope a part. So I followed this guide https://www.eclipse.org/che/docs/parts.html
 
When started the mvn build I get this error:
 
--- gwt-maven-plugin:1.0-rc-8:compile (default) @ assembly-ide-war ---
[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 <generate-with class='com.google.gwt.editor.rebind.SimpleBeanEditorDriverGenerator'/>
[INFO]             [WARN] Detected warnings related to 'com.google.gwt.editor.client.SimpleBeanEditorDriver'.   Are validation-api-<version>.jar and validation-api-<version>-sources.jar on the classpath?
[INFO]             Specify -logLevel DEBUG to see all errors.
[INFO]             [WARN] Unknown type 'com.google.gwt.editor.client.SimpleBeanEditorDriver' specified in deferred binding rule
[INFO]    Computing all possible rebind results for 'org.eclipse.che.ide.client.inject.IDEInjector'
[INFO]       Rebinding org.eclipse.che.ide.client.inject.IDEInjector
[INFO]          Checking rule <generate-with class='org.eclipse.che.util.ExtensionRegistryGenerator'/>
[INFO]             Tracing compile failure path for type 'org.eclipse.che.ide.client.inject.IDEInjector'
[INFO]                [ERROR] Errors in 'file:/C:/Users/<username>/Desktop/che_examples/che-ide/che-ide-server-extension/assembly/assembly-ide-war/target/generated-sources/gen/org/eclipse/che/ide/client/inject/IDEInjector.java'
[INFO]                   [ERROR] org.eclipse.che.ide.bootstrap.IdeBootstrap cannot be resolved to a type
[INFO]                [ERROR] Errors in 'jar:file:/C:/Users/<username>/.m2/repository/org/eclipse/che/core/che-core-ide-app/6.10.0-SNAPSHOT/che-core-ide-app-6.10.0-SNAPSHOT.jar!/org/eclipse/che/ide/bootstrap/IdeBootstrap.java'
[INFO]                   [ERROR] org.eclipse.che.ide.bootstrap.ExtensionInitializer cannot be resolved to a type
[INFO]                [ERROR] Errors in 'jar:file:/C:/Users/<username>/.m2/repository/org/eclipse/che/core/che-core-ide-app/6.10.0-SNAPSHOT/che-core-ide-app-6.10.0-SNAPSHOT.jar!/org/eclipse/che/ide/bootstrap/ExtensionInitializer.java'
[INFO]                   [ERROR] org.eclipse.che.ide.client.ExtensionManager cannot be resolved to a type
[INFO]                [ERROR] Errors in 'file:/C:/Users/<username>/Desktop/che_examples/che-ide/che-ide-server-extension/assembly/assembly-ide-war/target/generated-sources/gen/org/eclipse/che/ide/client/ExtensionManager.java'
[INFO]                   [ERROR] org.eclipse.che.sample.ide.ServerServiceExtension cannot be resolved to a type
[INFO]                [ERROR] Errors in 'jar:file:/C:/Users/<username>/Desktop/che_examples/che-ide/che-ide-server-extension/plugins/plugin-serverservice/plugin-serverservice-ide/target/plugin-serverservice-ide-6.10.0-SNAPSHOT.jar!/org/eclipse/che/sample/ide/ServerServiceExtension.java'
[INFO]                   [ERROR] org.eclipse.che.sample.ide.action.MyAction cannot be resolved to a type
[INFO]                [ERROR] Errors in 'jar:file:/C:/Users/<username>/Desktop/che_examples/che-ide/che-ide-server-extension/plugins/plugin-serverservice/plugin-serverservice-ide/target/plugin-serverservice-ide-6.10.0-SNAPSHOT.jar!/org/eclipse/che/sample/ide/action/MyAction.java'
[INFO]                   [ERROR] Line 27: No source code is available for type org.eclipse.che.plugn.parts.ide.helloworldview.HelloWorldPresenter; did you forget to inherit a required module?
[INFO]    [ERROR] Errors in 'org/eclipse/che/ide/client/IDE.java'
[INFO]       [ERROR] Line 24: Failed to resolve 'org.eclipse.che.ide.client.inject.IDEInjector' via deferred binding
 
Further in the MyGinModule i cannot use the class AbstractGinModule. The import is not successfully, although the class exists in the gin folder in the .m2/repository.
 
Do you have any suggestions what I can do?
 
By the way: In the guide I was confused about the name of the Presenter. First you named it HelloWorldPresenter and later MyPartPresenter.
 
best regards,
Tobias
_______________________________________________
che-dev mailing list
che-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/che-dev
 
 
--
Vitalii Parfonov
 
Che IDE Team Lead
_______________________________________________ che-dev mailing list che-dev@xxxxxxxxxxx To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/che-dev
_______________________________________________ che-dev mailing list che-dev@xxxxxxxxxxx To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/che-dev

Back to the top