22 Mar 2013, 04:35
Generic-user-small

Jooin Kim (15 posts)

in my case, 11 items were foind.. does it matter?

JRuby-Lint version 0.4.1 For more on gem compatibility see http://wiki.jruby.org/C-Extension-Alternatives ./Gemfile:19: [gems, warning] Found gem ‘therubyracer’ which is reported to have some issues: Try using therubyrhino instead. ./app/controllers/company_controller.rb:22: [fork, error] Kernel#fork is not implemented on JRuby. ./config/application.rb:38: [nonatomic, warning] Non-local operator assignment is not guaranteed to be atomic ./config/application.rb:39: [nonatomic, warning] Non-local operator assignment is not guaranteed to be atomic ./config/application.rb:40: [nonatomic, warning] Non-local operator assignment is not guaranteed to be atomic ./config/application.rb:41: [nonatomic, warning] Non-local operator assignment is not guaranteed to be atomic ./config/application.rb:62: [nonatomic, warning] Non-local operator assignment is not guaranteed to be atomic ./config/boot.rb:12: [nonatomic, warning] Non-local operator assignment is not guaranteed to be atomic ./lib/daemons/twitter_stream_daemon.rb:10: [nonatomic, warning] Non-local operator assignment is not guaranteed to be atomic ./spec/spec_helper.rb:10: [nonatomic, warning] Non-local operator assignment is not guaranteed to be atomic Processed 37 file

15 Apr 2013, 06:36
Generic-user-small

Bradford Cottel (6 posts)

I’m also getting those warnings from jrlint (the first two Jooin posted are fixed by following the directions in the book, of course), that is, these warnings:

[nonatomic, warning] Non-local operator assignment is not guaranteed to be atomic

I found this gist enlightening (if not helpful) – still don’t know what to do about them (pretty idiomatic Ruby from what I can tell), but I guess they’re an issue:

https://gist.github.com/headius/4332037/raw/4f213d48a71e926409c8dd1a27e28f357896ab4d/gistfile1

Sure enough, this fixes the gist:

@@foo = @@foo || 1 @baz = @baz && 3 a.b = a.b + 2 a[b] = a[b] - 4

Weird. Guess that idiomatic Ruby confuses the JRuby lint program (and possibly the JRuby parser itself, if the warnings are correct)?

15 Apr 2013, 06:50
Generic-user-small

Bradford Cottel (6 posts)

Here are all the files (in the book’s code) that are reported by the latest version of jrlint – perhaps the code should be updated (or an explanation provided as to why we might not need to worry about these)?

(The jrlint site at github doesn’t provide much help in saying why this message is produced, from a quick glance there: https://github.com/jruby/jruby-lint/blob/master/lib/jruby/lint/checkers/nonatomic.rb …)

Anyway, here are all the warnings:

./JRuby/twitalytics/config/application.rb:38: [nonatomic, warning] Non-local operator assignment is not guaranteed to be atomic ./JRuby/twitalytics/config/application.rb:39: [nonatomic, warning] Non-local operator assignment is not guaranteed to be atomic ./JRuby/twitalytics/config/application.rb:40: [nonatomic, warning] Non-local operator assignment is not guaranteed to be atomic ./JRuby/twitalytics/config/application.rb:41: [nonatomic, warning] Non-local operator assignment is not guaranteed to be atomic ./JRuby/twitalytics/config/application.rb:62: [nonatomic, warning] Non-local operator assignment is not guaranteed to be atomic ./JRuby/twitalytics/config/boot.rb:12: [nonatomic, warning] Non-local operator assignment is not guaranteed to be atomic ./JRuby/twitalytics/lib/daemons/twitter_stream_daemon.rb:10: [nonatomic, warning] Non-local operator assignment is not guaranteed to be atomic ./JRuby/twitalytics/spec/spec_helper.rb:10: [nonatomic, warning] Non-local operator assignment is not guaranteed to be atomic ./Management/twitalytics/config/application.rb:38: [nonatomic, warning] Non-local operator assignment is not guaranteed to be atomic ./Management/twitalytics/config/application.rb:39: [nonatomic, warning] Non-local operator assignment is not guaranteed to be atomic ./Management/twitalytics/config/application.rb:40: [nonatomic, warning] Non-local operator assignment is not guaranteed to be atomic ./Management/twitalytics/config/application.rb:41: [nonatomic, warning] Non-local operator assignment is not guaranteed to be atomic ./Management/twitalytics/config/application.rb:62: [nonatomic, warning] Non-local operator assignment is not guaranteed to be atomic ./Management/twitalytics/config/boot.rb:12: [nonatomic, warning] Non-local operator assignment is not guaranteed to be atomic ./Management/twitalytics/lib/daemons/twitter_stream_daemon.rb:10: [nonatomic, warning] Non-local operator assignment is not guaranteed to be atomic ./Management/twitalytics/spec/spec_helper.rb:10: [nonatomic, warning] Non-local operator assignment is not guaranteed to be atomic ./TorqueBox/cluster/app/controllers/customers_controller.rb:19: [nonatomic, warning] Non-local operator assignment is not guaranteed to be atomic ./TorqueBox/cluster/app/jobs/delete_old_statuses.rb:13: [nonatomic, warning] Non-local operator assignment is not guaranteed to be atomic ./TorqueBox/cluster/app/models/status.rb:13: [nonatomic, warning] Non-local operator assignment is not guaranteed to be atomic ./TorqueBox/cluster/config/application.rb:38: [nonatomic, warning] Non-local operator assignment is not guaranteed to be atomic ./TorqueBox/cluster/config/application.rb:39: [nonatomic, warning] Non-local operator assignment is not guaranteed to be atomic ./TorqueBox/cluster/config/application.rb:40: [nonatomic, warning] Non-local operator assignment is not guaranteed to be atomic ./TorqueBox/cluster/config/application.rb:41: [nonatomic, warning] Non-local operator assignment is not guaranteed to be atomic ./TorqueBox/cluster/config/application.rb:62: [nonatomic, warning] Non-local operator assignment is not guaranteed to be atomic ./TorqueBox/cluster/config/boot.rb:12: [nonatomic, warning] Non-local operator assignment is not guaranteed to be atomic ./TorqueBox/cluster/lib/daemons/twitter_stream_daemon.rb:10: [nonatomic, warning] Non-local operator assignment is not guaranteed to be atomic ./TorqueBox/cluster/spec/spec_helper.rb:10: [nonatomic, warning] Non-local operator assignment is not guaranteed to be atomic ./TorqueBox/twitalytics/app/jobs/delete_old_statuses.rb:13: [nonatomic, warning] Non-local operator assignment is not guaranteed to be atomic ./TorqueBox/twitalytics/app/models/status.rb:13: [nonatomic, warning] Non-local operator assignment is not guaranteed to be atomic ./TorqueBox/twitalytics/config/application.rb:38: [nonatomic, warning] Non-local operator assignment is not guaranteed to be atomic ./TorqueBox/twitalytics/config/application.rb:39: [nonatomic, warning] Non-local operator assignment is not guaranteed to be atomic ./TorqueBox/twitalytics/config/application.rb:40: [nonatomic, warning] Non-local operator assignment is not guaranteed to be atomic ./TorqueBox/twitalytics/config/application.rb:41: [nonatomic, warning] Non-local operator assignment is not guaranteed to be atomic ./TorqueBox/twitalytics/config/application.rb:62: [nonatomic, warning] Non-local operator assignment is not guaranteed to be atomic ./TorqueBox/twitalytics/config/boot.rb:12: [nonatomic, warning] Non-local operator assignment is not guaranteed to be atomic ./TorqueBox/twitalytics/lib/daemons/twitter_stream_daemon.rb:10: [nonatomic, warning] Non-local operator assignment is not guaranteed to be atomic ./TorqueBox/twitalytics/spec/spec_helper.rb:10: [nonatomic, warning] Non-local operator assignment is not guaranteed to be atomic ./Trinidad/ey/config/application.rb:38: [nonatomic, warning] Non-local operator assignment is not guaranteed to be atomic ./Trinidad/ey/config/application.rb:39: [nonatomic, warning] Non-local operator assignment is not guaranteed to be atomic ./Trinidad/ey/config/application.rb:40: [nonatomic, warning] Non-local operator assignment is not guaranteed to be atomic ./Trinidad/ey/config/application.rb:41: [nonatomic, warning] Non-local operator assignment is not guaranteed to be atomic ./Trinidad/ey/config/application.rb:62: [nonatomic, warning] Non-local operator assignment is not guaranteed to be atomic ./Trinidad/ey/config/boot.rb:12: [nonatomic, warning] Non-local operator assignment is not guaranteed to be atomic ./Trinidad/ey/lib/daemons/twitter_stream_daemon.rb:10: [nonatomic, warning] Non-local operator assignment is not guaranteed to be atomic ./Trinidad/ey/spec/spec_helper.rb:10: [nonatomic, warning] Non-local operator assignment is not guaranteed to be atomic ./Trinidad/twitalytics/config/application.rb:38: [nonatomic, warning] Non-local operator assignment is not guaranteed to be atomic ./Trinidad/twitalytics/config/application.rb:39: [nonatomic, warning] Non-local operator assignment is not guaranteed to be atomic ./Trinidad/twitalytics/config/application.rb:40: [nonatomic, warning] Non-local operator assignment is not guaranteed to be atomic ./Trinidad/twitalytics/config/application.rb:41: [nonatomic, warning] Non-local operator assignment is not guaranteed to be atomic ./Trinidad/twitalytics/config/application.rb:62: [nonatomic, warning] Non-local operator assignment is not guaranteed to be atomic ./Trinidad/twitalytics/config/boot.rb:12: [nonatomic, warning] Non-local operator assignment is not guaranteed to be atomic ./Trinidad/twitalytics/lib/daemons/twitter_stream_daemon.rb:10: [nonatomic, warning] Non-local operator assignment is not guaranteed to be atomic ./Trinidad/twitalytics/spec/spec_helper.rb:10: [nonatomic, warning] Non-local operator assignment is not guaranteed to be atomic ./twitalytics/config/application.rb:38: [nonatomic, warning] Non-local operator assignment is not guaranteed to be atomic ./twitalytics/config/application.rb:39: [nonatomic, warning] Non-local operator assignment is not guaranteed to be atomic ./twitalytics/config/application.rb:40: [nonatomic, warning] Non-local operator assignment is not guaranteed to be atomic ./twitalytics/config/application.rb:41: [nonatomic, warning] Non-local operator assignment is not guaranteed to be atomic ./twitalytics/config/application.rb:62: [nonatomic, warning] Non-local operator assignment is not guaranteed to be atomic ./twitalytics/config/boot.rb:12: [nonatomic, warning] Non-local operator assignment is not guaranteed to be atomic ./twitalytics/lib/daemons/twitter_stream_daemon.rb:10: [nonatomic, warning] Non-local operator assignment is not guaranteed to be atomic ./twitalytics/spec/spec_helper.rb:10: [nonatomic, warning] Non-local operator assignment is not guaranteed to be atomic ./Warbler/assetpipeline/config/application.rb:38: [nonatomic, warning] Non-local operator assignment is not guaranteed to be atomic ./Warbler/assetpipeline/config/application.rb:39: [nonatomic, warning] Non-local operator assignment is not guaranteed to be atomic ./Warbler/assetpipeline/config/application.rb:40: [nonatomic, warning] Non-local operator assignment is not guaranteed to be atomic ./Warbler/assetpipeline/config/application.rb:41: [nonatomic, warning] Non-local operator assignment is not guaranteed to be atomic ./Warbler/assetpipeline/config/application.rb:62: [nonatomic, warning] Non-local operator assignment is not guaranteed to be atomic ./Warbler/assetpipeline/config/boot.rb:12: [nonatomic, warning] Non-local operator assignment is not guaranteed to be atomic ./Warbler/assetpipeline/lib/daemons/twitter_stream_daemon.rb:10: [nonatomic, warning] Non-local operator assignment is not guaranteed to be atomic ./Warbler/assetpipeline/spec/spec_helper.rb:10: [nonatomic, warning] Non-local operator assignment is not guaranteed to be atomic ./Warbler/cloudbees/config/application.rb:38: [nonatomic, warning] Non-local operator assignment is not guaranteed to be atomic ./Warbler/cloudbees/config/application.rb:39: [nonatomic, warning] Non-local operator assignment is not guaranteed to be atomic ./Warbler/cloudbees/config/application.rb:40: [nonatomic, warning] Non-local operator assignment is not guaranteed to be atomic ./Warbler/cloudbees/config/application.rb:41: [nonatomic, warning] Non-local operator assignment is not guaranteed to be atomic ./Warbler/cloudbees/config/application.rb:62: [nonatomic, warning] Non-local operator assignment is not guaranteed to be atomic ./Warbler/cloudbees/config/boot.rb:12: [nonatomic, warning] Non-local operator assignment is not guaranteed to be atomic ./Warbler/cloudbees/lib/daemons/twitter_stream_daemon.rb:10: [nonatomic, warning] Non-local operator assignment is not guaranteed to be atomic ./Warbler/cloudbees/spec/spec_helper.rb:10: [nonatomic, warning] Non-local operator assignment is not guaranteed to be atomic ./Warbler/twitalytics/config/application.rb:38: [nonatomic, warning] Non-local operator assignment is not guaranteed to be atomic ./Warbler/twitalytics/config/application.rb:39: [nonatomic, warning] Non-local operator assignment is not guaranteed to be atomic ./Warbler/twitalytics/config/application.rb:40: [nonatomic, warning] Non-local operator assignment is not guaranteed to be atomic ./Warbler/twitalytics/config/application.rb:41: [nonatomic, warning] Non-local operator assignment is not guaranteed to be atomic ./Warbler/twitalytics/config/application.rb:62: [nonatomic, warning] Non-local operator assignment is not guaranteed to be atomic ./Warbler/twitalytics/config/boot.rb:12: [nonatomic, warning] Non-local operator assignment is not guaranteed to be atomic ./Warbler/twitalytics/lib/daemons/twitter_stream_daemon.rb:10: [nonatomic, warning] Non-local operator assignment is not guaranteed to be atomic ./Warbler/twitalytics/spec/spec_helper.rb:10: [nonatomic, warning] Non-local operator assignment is not guaranteed to be atomic Processed 406 files in 3.10 seconds Found 85 items

  You must be logged in to comment