Thanks Ismael. I'll try and take a stab at it when I've read more about the eclipse compiler. In the meantime, do you have any pointers? Is it just about finding the right Eclipse JDT compiler options? Thanks,Ron
Sent via the Samsung Galaxy S7 active, an AT&T 4G LTE smartphone -------- Original message --------From: Ismaël Mejía <ieme...@gmail.com> Date: 1/22/18 1:29 AM (GMT-08:00) To: dev@beam.apache.org Subject: Re: Eclipse support Hello, Thanks for bringing this info, I tried to compile with the eclipse compiler and I can confirm that it does not wok, Eclipse's JDT is more annoying about generics so it could be related to this. Filled https://issues.apache.org/jira/browse/BEAM-3508 to track it. Feel free to contribute a fix if you feel like it. Ismaël On Sat, Jan 20, 2018 at 10:20 PM, Ron Gonzalez <zlgonza...@yahoo.com> wrote: > Hello again, > Sorry to keep asking about this, but I can't seem to get Eclipse working > for this project. > > I did mvn eclipse:clean eclipse:eclipse command and I've reduced the > problem now down to the Java generics issues related to autovalue types. I > had to run mvn generate-sources generate-test-sources in each of the > sub-modules to make a lot of the errors in Eclipse go away since after > running mvn -DskipTests clean install, the target/generated-sources and > target/generated-test-sources are empty for some reason. > > Interestingly enough, if I run mvn -Peclipse-jdt -DskipTests clean install > from the command line, I am able to reproduce the same errors that I see in > my Eclipse installation. I am using Eclipse Neon. > > > One such error is: > > @Experimental(Kind.FILESYSTEM) > @Deprecated > public <NewDestinationT> TypedWrite<UserT, NewDestinationT, OutputT> to( > DynamicAvroDestinations<UserT, NewDestinationT, OutputT> > dynamicDestinations) { > return toBuilder() > .setDynamicDestinations((DynamicAvroDestinations) > dynamicDestinations) > .build(); > } > > gives the error of: > > Description Resource Path Location Type > Type mismatch: cannot convert from > AvroIO.TypedWrite<UserT,DestinationT,OutputT> to > AvroIO.TypedWrite<UserT,NewDestinationT,OutputT> AvroIO.java > /beam-sdks-java-core/src/main/java/org/apache/beam/sdk/io line 1007 Java > Problem > > I have 48 errors left and most of these remaining errors are of this kind > (related to Java generics of an auto-valued type). I enabled the Maven > Annotation setting, per the Eclipse tips in the website. > I double-checked the compiling JDK in Eclipse, and it's using my system > JDK, which I assume is being used by the command line compilation, which is > successful. > Does anybody have Eclipse completely compiling for them without errors? Any > tips? > > Thanks, > Ron > > On Wednesday, January 17, 2018, 10:34:48 AM PST, Ted Yu > <yuzhih...@gmail.com> wrote: > > > Have you tried running 'mvn eclipse:eclipse' and importing from the root of > workspace ? > > On Wed, Jan 17, 2018 at 10:32 AM, Ron Gonzalez <zlgonza...@yahoo.com> wrote: > > Hi, > I've been trying this for a couple of days now, but I can't seem to get a > clean Eclipse import. > I refreshed to latest master, got a clean mvn -DskipTests clean install, > ran through the Eclipse setup steps for m2e-apt installation. > I'm getting errors like below. Do you have any tips to get this going? > > Thanks, > Ron > > Description Resource Path Location Type > ACCUMULATING cannot be resolved to a variable WindowingStrategyTranslation. > java /beam-runners-core- construction-java/src/main/ > java/org/apache/beam/runners/ core/construction line 56 Java Problem > AFTER_ALL cannot be resolved to a variable TriggerStateMachines.java > /beam-runners-core-java/src/ main/java/org/apache/beam/ > runners/core/triggers line 34 Java Problem > AFTER_ALL cannot be resolved to a variable TriggerTranslation.java > /beam-runners-core- construction-java/src/main/ > java/org/apache/beam/runners/ core/construction line 241 Java Problem > AFTER_ANY cannot be resolved to a variable TriggerStateMachines.java > /beam-runners-core-java/src/ main/java/org/apache/beam/ > runners/core/triggers line 37 Java Problem > AFTER_ANY cannot be resolved to a variable TriggerTranslation.java > /beam-runners-core- construction-java/src/main/ > java/org/apache/beam/runners/ core/construction line 243 Java Problem > AFTER_EACH cannot be resolved to a variable TriggerStateMachines.java > /beam-runners-core-java/src/ main/java/org/apache/beam/ > runners/core/triggers line 59 Java Problem > AFTER_EACH cannot be resolved to a variable TriggerTranslation.java > /beam-runners-core- construction-java/src/main/ > java/org/apache/beam/runners/ core/construction line 245 Java Problem > AFTER_END_OF_WINDOW cannot be resolved to a variable > TriggerStateMachines.java /beam-runners-core-java/src/ > main/java/org/apache/beam/ runners/core/triggers line 40 Java Problem > AFTER_END_OF_WINDOW cannot be resolved to a variable TriggerTranslation.java > /beam-runners-core- construction-java/src/main/ > java/org/apache/beam/runners/ core/construction line 248 Java Problem > AFTER_PROCESSING_TIME cannot be resolved to a variable > TriggerStateMachines.java /beam-runners-core-java/src/ > main/java/org/apache/beam/ runners/core/triggers line 62 Java Problem > AFTER_PROCESSING_TIME cannot be resolved to a variable > TriggerTranslation.java /beam-runners-core- construction-java/src/main/ > java/org/apache/beam/runners/ core/construction line 276 Java Problem > AFTER_SYNCHRONIZED_PROCESSING_ TIME cannot be resolved to a variable > TriggerStateMachines.java /beam-runners-core-java/src/ > main/java/org/apache/beam/ runners/core/triggers line 45 Java Problem > AFTER_SYNCHRONIZED_PROCESSING_ TIME cannot be resolved to a variable > TriggerTranslation.java /beam-runners-core- construction-java/src/main/ > java/org/apache/beam/runners/ core/construction line 302 Java Problem > ALIGN_TO cannot be resolved to a variable TriggerStateMachines.java > /beam-runners-core-java/src/ main/java/org/apache/beam/ > runners/core/triggers line 94 Java Problem > ALIGN_TO cannot be resolved to a variable TriggerTranslation.java > /beam-runners-core- construction-java/src/main/ > java/org/apache/beam/runners/ core/construction line 281 Java Problem > ALWAYS cannot be resolved to a variable TriggerStateMachines.java > /beam-runners-core-java/src/ main/java/org/apache/beam/ > runners/core/triggers line 51 Java Problem > ALWAYS cannot be resolved to a variable TriggerTranslation.java > /beam-runners-core- construction-java/src/main/ > java/org/apache/beam/runners/ core/construction line 304 Java Problem > ApiServiceDescriptor cannot be resolved GrpcFnServer.java > /beam-runners-java-fn- execution/src/main/java/org/ apache/beam/runners/ > fnexecution line 37 Java Problem > > > > Thanks, > Ron > >