gwt-plugins / gwt-eclipse-plugin

GWT Eclipse Plugin Documentation
http://gwt-plugins.github.io/documentation/
Eclipse Public License 1.0
115 stars 49 forks source link

Project's GWT SDK not detected #456

Open Fuzzo opened 1 year ago

Fuzzo commented 1 year ago

Hello, it looks like the SDK is not detected even if it is in the build path, as the image below shows: image I already trigger a full rebuild. As a consequence, the GWT compile task fails: image

Eclipse 2022-12 v4.26 Plugin v4.0.0

protoism commented 1 year ago

Hi @Fuzzo, I tried with a sample project, and... it is working.

What I did is:

I see you have a fairly complicate project.

If you can replicate, ideally starting from a clean build install, I'll definitely have a look at your issue.

Another interesting check is if the problem is only with gwt-2.10.0 or also with older SDKs

Fuzzo commented 1 year ago

I created a new GWT project with sample code and... it works! So, i compared .project and .classpath files but there are no significant differences, none for what concern the GWT Nature/Classpath of the project. I noticed that the console looks like the following image: image Confirming that for some reasons the SDK is not detected for this project. Any idea of what can i do to diagnose/solve this issue? Thanks

niloc132 commented 1 year ago

@protoism do we need to explicitly package 2.10.0 (see #403)?

@Fuzzo are you using maven (and the m2e plugin) to get GWT 2.10.0? And when you made your new project, did you use GWT 2.10.0?

Fuzzo commented 1 year ago

@niloc132 My GWT SDKs have been set in Window > Preferences > GWT > GWT Settings pointing to a local directories to which I uncompressed the SDK distribution files (once per version). When I made the new project, I left the "default" SDK in the dialog and it chooses 2.10.0 automatically (because it's the default).

protoism commented 1 year ago

@niloc132 gwt 2.10 should not be a problem per se. I don't have problems on simple projects, nor does @Fuzzo . I wonder if there is another SDK brought in by maven (or ivy? what is ivy?).

@Fuzzo if you can try and replicate, we can definitely fix this one.

Do not forget to try with older gwt versions

Fuzzo commented 1 year ago

Sorry for delay, I tried with another project: snap283 snap284 This time I'm running on a Linux Mint VM with Eclipse 2022-12 and GWT SDK v2.9.0. Please tell me how I can help.

protoism commented 1 year ago

Hi @Fuzzo, there are two ways:

I'm willing to investigate, but the information currently provided is simply not enough to start an investigation.

Let me know which one of the two proposals you like the best, I can try and guide you in setting up a debugging environment.

Fuzzo commented 1 year ago

Hello @protoism, as we already tried to reproduce in a simple project with no success, I kindly ask you the instruction to debug Eclipse... thanks!

ngfchristian commented 1 year ago

Hi @Fuzzo, If I may ask, which version of eclipse are you using? Christian Nzhie.

On Fri, Mar 10, 2023 at 3:42 PM Fuzzo @.***> wrote:

Hello @protoism https://github.com/protoism, as we already tried to reproduce in a simple project with no success, I kindly ask you the instruction to debug Eclipse... thanks!

— Reply to this email directly, view it on GitHub https://github.com/gwt-plugins/gwt-eclipse-plugin/issues/456#issuecomment-1463986359, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADTO7QHX3ZBL452QLIYGS5LW3NDVDANCNFSM6AAAAAAVED6JAU . You are receiving this because you are subscribed to this thread.Message ID: @.***>

Fuzzo commented 1 year ago

Hi @ngfchristian, the Eclipse version I'm using is 2022-12.

protoism commented 1 year ago

@Fuzzo will send you instructions shortly, sorry for the delay.

protoism commented 1 year ago

Hi @Fuzzo, sorry for the incredible delay. I created a debugging environment from scratch, without using maven integration, It is not that complicate. Debugging with Eclipse is IMHO a bit messy... but feasible. Let me know what you come up with

Prerequisites

Create a workspace for the plugin

Using the plugin in the debug (target) environment

At this point, we have two eclipse instances working: one workspace contains the GWT plugin code, the second one is blank (I'll call it target), with our GWT plugin available (and debuggable on the first instance)

In the target workspace:

Debugging your issue

The target environment is fully functional. You'll probably need to add some plugins. They should be added to the "gwt-plugin" workspace (not the target one). If after adding plugins to the "gwt-plugin" workspace some dependencies are missing, you may want to recreate the debug configuration

Fuzzo commented 1 year ago

Hi @protoism, I'm also sorry for delay. First of all thank you for the response. I tried to follow the instruciton but I've two problems: 1) Git checked-out projects contains errors image (chenges you see is about the deactivation of Maven nature) 2) The Debug button in the run configuration is disabled image May be I miss something.

Note: I used a fresh Eclipse "IDE for Eclipse Committers" edition as the "J2EE" edition won't let me create a run configuration of the right type "Eclipse Application".