These are chat archives for jruby-gradle/jruby-gradle-plugin

31st
Jul 2015
R. Tyler Croy
@rtyler
Jul 31 2015 07:42
@ysb33r ping
R. Tyler Croy
@rtyler
Jul 31 2015 08:25
@ysb33r it's out <_<
Schalk W. Cronjé
@ysb33r
Jul 31 2015 08:26
\o/
R. Tyler Croy
@rtyler
Jul 31 2015 08:27
site updated
my demo is updated too to use it
so....it at least runs jrubyexec and jrubyjar properly :P
Schalk W. Cronjé
@ysb33r
Jul 31 2015 08:30
Haha
R. Tyler Croy
@rtyler
Jul 31 2015 08:31
I kept JRubyJar`gemDir which basically just asks the prep task for its output dir
the gems configuration still exists by default, wihch my asciidoctor preso works with
Schalk W. Cronjé
@ysb33r
Jul 31 2015 12:09
have you done any announcements for #1.0 yet?
R. Tyler Croy
@rtyler
Jul 31 2015 13:41
@ysb33r I have not sent anything other than a tweet
I need to write an email for the mailing list, despite it being very few people
also blog post
Schalk W. Cronjé
@ysb33r
Jul 31 2015 13:43
so I can tweet about it?
R. Tyler Croy
@rtyler
Jul 31 2015 13:43
@ysb33r oh yeah, I've got no problem with that, I just don't have a formal announcement written
I'm wondering if #167 is going to pass or not, I've had mixed results locally and I can't tell if that's because of cleaning or a timing thing with when the staging dir gets populated
R. Tyler Croy
@rtyler
Jul 31 2015 13:50
@ysb33r I was thinking earlier about combining the docker gradle plugin with the jar plugin earlier
Schalk W. Cronjé
@ysb33r
Jul 31 2015 13:51
a nice little (tested) example file could be useful for people
R. Tyler Croy
@rtyler
Jul 31 2015 14:02
it looks like the dockerfile examples in the gesellix plugin dpn't integrate as well as I want
Schalk W. Cronjé
@ysb33r
Jul 31 2015 14:14
On a different note, in our JRubyExec tasks, does Gradle still set the encoding to something that is not UTF-8?
R. Tyler Croy
@rtyler
Jul 31 2015 14:14
that I'm not sure, will you file a question issue on GH?
let's investigate! :)
Schalk W. Cronjé
@ysb33r
Jul 31 2015 14:14
I’ll run some of the tests and have a look
All good. I just checked.
R. Tyler Croy
@rtyler
Jul 31 2015 14:18
\o/
Schalk W. Cronjé
@ysb33r
Jul 31 2015 14:18
I vaguely remember Dan asking about it, so I might have fixed it at some point.
It is set inside GemUtils
so it works for GEMs at least
still need to check whether it applies to executing hte script itself
Schalk W. Cronjé
@ysb33r
Jul 31 2015 14:25
that works too, but for sake of inconsistency we use UTF-8 when installing the GEM and utf-8 when running the script.
:fire:
Schalk W. Cronjé
@ysb33r
Jul 31 2015 14:38
another side idea. lazybones template for creating a ruby-gradle-jar project
R. Tyler Croy
@rtyler
Jul 31 2015 15:48
@ysb33r lazybones isn't something i've ever uesd before, I'm not sure I fully see the value of it yet
@mkristian I think the issue, as I've seen it, is that jruby-mains might not be doing requiring a jars/setup
I thought that had fixed it in my demo, but I'm seeing this work now, which is weird
rtyler @rtyler checks his sanity
Schalk W. Cronjé
@ysb33r
Jul 31 2015 15:51

@rtyler 1azybones create jruby-jar. Asks some questions. Churn, curn, churn…

Directory layout generated. build.grade generated with all of the basics required to start your project.

A bit like maven archetypes, but not restricted to maven projects.

R. Tyler Croy
@rtyler
Jul 31 2015 15:51
yeah, I get the concept
I don't have many formulaic projects :P
I can see it being very useful for storm topologies though
Schalk W. Cronjé
@ysb33r
Jul 31 2015 15:52
it might be
easy to install too
R. Tyler Croy
@rtyler
Jul 31 2015 16:31
@ysb33r mind taking a look at #167?
Blane Dabney
@raelik
Jul 31 2015 16:41
So I think I found some kind of subtle bug with the JRubyExec task
I have a script that sends a large amount of UTF-8 encoded output over stdout, and when I run it through JRubyExec in gradle (instead of manually on the command line), it will randomly mangle a single surrogate pair in the output
well, I say randomly, I should say in a non-deterministic fashion
R. Tyler Croy
@rtyler
Jul 31 2015 16:44
oooooooo
Blane Dabney
@raelik
Jul 31 2015 16:44
it's the same character in the same place for a given set of output, but if the output changes, even a little, the place where the mangling occurs changes slightly
R. Tyler Croy
@rtyler
Jul 31 2015 16:44
@raelik do you have a repro case I can look at? @ysb33r was asking about encodings early
Blane Dabney
@raelik
Jul 31 2015 16:45
It's really hard to reproduce because it requires a large amount of output for it to show up
and I can't get it to do it reliably
right now it's happening with a specific customer's output, a 90MB csv file
It's this character, btw, that it does it to: http://www.fileformat.info/info/unicode/char/2019/index.htm
so it falls outside the BMP
the strange thing is that it only mangles a single occurrence of it, replacing each byte of that character with 0xefbfbd (the replacement character)
or sometimes two bytes, instead of 3
Blane Dabney
@raelik
Jul 31 2015 16:51
This may actually be a problem with the JavaExec task in gradle itself
rtyler @rtyler heads to dinner
Schalk W. Cronjé
@ysb33r
Jul 31 2015 17:08
JRubyExec correctly sets utf-8 when running the script. (I don't think case matters on the charset name).
Do you actually capture the output of the script in Gradle with a stream?
Blane Dabney
@raelik
Jul 31 2015 18:30
Nope
Schalk W. Cronjé
@ysb33r
Jul 31 2015 19:25
Always that character?
Blane Dabney
@raelik
Jul 31 2015 19:59
there are other multi-byte sequences in the file, but it only mangles that particular one
it does it about 1/3rd of the way through
actually, re-ran it, and now it's doing it twice, once on line 45942, and again on line 617892
Schalk W. Cronjé
@ysb33r
Jul 31 2015 20:04
If you rum gradle with -i it will give the jruby cmdline. It might be worth using that to febug the issue
Blane Dabney
@raelik
Jul 31 2015 20:09
That's the thing, if I run the java command manually, it doesn't do this
it's only when gradle is running it
R. Tyler Croy
@rtyler
Jul 31 2015 21:35
holy shit the @java account retweeted ,my release announcement
@raelik still hanging around?