-
-
Notifications
You must be signed in to change notification settings - Fork 44
Mavenize UnicodeTools (#64) #91
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
Conversation
snapshot of disabled tests. I think all of these were not-working under Eclipse.
|
656903a
to
3a2f404
Compare
merge to keep this up to date. Will squash it later into fewer commits. |
379e679
to
78f05c6
Compare
78f05c6
to
796b2ae
Compare
Lots of commits to enable review… some of the commits are bulk renames. Ready, if tests pass… |
todo:
@markusicu |
Added docs |
I don't work on Windows. When I moved the docs into GitHub, I touched that page just lightly, leaving the rest for Laurentiu or whoever else is using Windows. |
todo:
|
51d984b
to
21d2d03
Compare
@echeran I've restructured the commits, should be ready to go I think i'd like to get this in and then start getting folks testing it |
Ok, sounds fine. Kudos for the inclusion of command-line instructions -- this is important because if Maven instructions work at the command line, then pretty much any major IDE can easily import the project and behave similarly without us having a hard dependency on Eclipse. Other IDEs these days are much snappier for Java, in my experience. I tried following along to see if I could follow along with the instructions ( If not in this PR, then soon after, we should try to spruce up the instructions so that even someone like me can follow -- something that takes no more critical thinking than "1) open pouch 2) place in toaster 3) eat" -- I'm happy to help, so feel free to file a followup issue and assign to me. That may or may not help others test out, too. |
Yes exactly this! I use vs code mostly.
I think this mostly has to do with the settings situation. Should be follow up prs. The GitHub actions only exercises one path I was able to make work, may not be the best for testing. Will merge thanks 🎉 |
Oh I did conflict with myself. Oops. |
@markusicu can i get a RSLGTM? |
@markusicu or may I promote @echeran to a comitter? |
@@ -199,7 +199,7 @@ public void remove() { | |||
} | |||
} | |||
|
|||
private final class PrimaryIterable implements Iterable<UCA.Primary> { | |||
public final class PrimaryIterable implements Iterable<UCA.Primary> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why public if we didn't need that before?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this was to work around a JDK issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[ERROR] /Users/srl295/src/unicodetools/unicodetools/src/main/java/org/unicode/text/UCA/WriteCollationData.java:[1805,74] org.unicode.text.UCA.UCA.PrimaryIterable.iterator() is defined in an inaccessible class or interface
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes. getIgnorableAndRegularPrimaries() returns a PrimaryIterable, and WriteCollationData tries to iterate over it. I hate to ask but how did this work before? Maybe getIgnorableAndRegularPrimaries()
should return the interface Iterable<UCA.Primary>
if the class was meant to be kept private?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, it did work this summer when I generated UCA data files several times.
I wonder if a later JDK got stricter? (Since you are upgrading to 11 I think.)
If the call sites don't need to know the specific impl class, then returning Iterable<UCA.Primary>
would be fine.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mostly lgtm
Thanks for all of this work, and also moving the tests to JUnit!
(But now I have to learn a new flavor of JUnit...)
The message on the second commit does not seem to describe the few changes there. Worth fixing? Or squash with the third commit?
There are still some unresolved/unreplied comments/questions from Elango.
👍 just to distinguish, you can use the prior (TestFmwk) style of asserts still if preferred.
|
- disable more tests that did not work previously - fix compile issues - use JDK11 to avoid build issue > unicodetools/unicodetools/src/test/java/org/unicode/propstest/RegexWordBreak.java:[133,44] incompatible types: inference variable T has incompatible equality constraints java.lang.Enum,capture#1 of ? extends java.lang.Enum - improve how CLDR dir is checked out - mkdir Generated/BIN etc when needed - try to generate unicode data on CI - create output dir first - fix Generated path Documentation: - bump CLDR/ICU deps into top level - update docs on how to use maven - add docs on updating CLDR/ICU versions - update workflows to use top level maven file - update docs on setup/updating - pom versions to 1.0.0 Fixes: #64 X-PR-URL: #91
@markusicu @echeran Ok -
|
btw,
being on either side of the Review button on these mega-changes is never a walk in the park, so thank you. I'm optimistic that easier onboarding to this project will really benefit ucd-dev and thus Unicode. |
Also I don't have a "Phase II" planned, so I took out the "Phase I". I think I originally thought there might be some smaller steps, but they didn't make as much sense. Followons will include the deduplicating of code by making UnicodeJsps depend on unicodetools, but that's for #66 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
<configuration> | ||
<systemPropertyVariables> | ||
<!-- These are variables which are picked up by test runs --> | ||
<UVERSION>13.0.0</UVERSION> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
14? later PR?
unicodetools/
to be built with Mavendata.picker
data and classes into source, all other data indata/
is left where it is.Fixes #64