-
Notifications
You must be signed in to change notification settings - Fork 4
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
DevMode Blocks until changes are detected using WatchService #2
base: app-building-tools
Are you sure you want to change the base?
DevMode Blocks until changes are detected using WatchService #2
Conversation
-Created a new class, ResourceListener, to collect File changes detected by the WatchService -Previously, DevMode was checking lastModified times every 0.1 seconds
I can answer some questions here.
Update: I see that Colin doesnt use google java code style here. Sorry for confusion. |
@nordligulv Thanks for the quick reply! To be honest, I waited way too long to push the commits in the PR in https://github.com/mbarkley/j2cl-maven-plugin, which probably should have been done as several smaller PR's (or even just pushed straight to master if the commit was small enough). |
Sorry for the long feedback. I started late and it took me a while to get in how things work. Promise to review your changes much quicker now if you have something! |
This is actually GWT code style; Google code style is a bit different: https://google.github.io/styleguide/javaguide.html (e.g. import order have changed a few months ago) I, for one, use Google Java Format so I don't have to care about my writing style or my own preferences. |
Otherwise, this is master at https://github.com/vertispan/closure-compiler, and you can build yourself.
|
|
…sion. The CL also - introduces WasmOpaque (so we can pass char[] to JS back and forth) - fixes various scenarios that ImplementArraysAsClasses wasn't handling. I also tried alternative to WasmOpaque: using "data" for all non-primitive types in extern method signatures. That seemed cleaner at first but didn't go well for 2 reasons: 1. Even it is ok at params, returns are not assignable so got messy around typing. 2. We had also existing externs that affected by the mess is #2. Having an explicit WasmOpaque type ended up being cleaner which enforced both the necessary cast and the unnecessary casts around j.l.Object (which we needed to remove because they were incorrect because native array is not assignable to j.l.Object). PiperOrigin-RevId: 455572885
@niloc132 Since I cannot make a private repo on GitHub, and https://github.com/mbarkley/j2cl-maven-plugin is a completely different app from this, I am pushing my contributions to a different branch of this fork. Few questions:
I cannot run DevMode.java properly since the JRE is not finding some classes (namely
com/google/j2cl/common/Problems
andCompilationLevel.BUNDLE
). Are you using a different fork of closure than the one at https://github.com/google/closure-library and https://github.com/google/closure-compiler? I did verify the file collection process worked (could only do 1 run though since it then crashed)What formatter do you use (so our commits don't contain a bunch of reformatting already formatted code to another format)?
What are the java9/osx issues you mentioned for
FileService
?Will the main maven plugin be developed here or at https://github.com/mbarkley/j2cl-maven-plugin? If it will be developed here, I will port more features that my plugin has to the main app here.