mikebowler / jirametrics

A tool to extract data from Jira and either generate reports or export to CSV files
Apache License 2.0
36 stars 1 forks source link

LoadError: no such file to load -- ./lib/jirametrics/css_variable #25

Closed SimoneCusimano closed 5 months ago

SimoneCusimano commented 5 months ago

It seems that something with the new css file is required and the tool crashes.

I'm using v2.1.0.

Below are the logs: `LoadError: no such file to load -- ./lib/jirametrics/css_variable ←[0;31m require at org/jruby/RubyKernel.java:1175←[0m require at [...]/jruby-dist-9.4.6.0-bin.tar/jruby-9.4.6.0/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:85←[0m

at [...]/jruby-dist-9.4.6.0-bin.tar/jruby-9.4.6.0/lib/ruby/gems/shared/gems/jirametrics-2.1.0/lib/jirametrics/chart_base.rb:3←[0m ←[0;36m require at org/jruby/RubyKernel.java:1175←[0m require at [...]/jruby-dist-9.4.6.0-bin.tar/jruby-9.4.6.0/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:85←[0m load_config at [...]/jruby-dist-9.4.6.0-bin.tar/jruby-9.4.6.0/lib/ruby/gems/shared/gems/jirametrics-2.1.0/lib/jirametrics.rb:48←[0m go at [...]/jruby-dist-9.4.6.0-bin.tar/jruby-9.4.6.0/lib/ruby/gems/shared/gems/jirametrics-2.1.0/lib/jirametrics.rb:26←[0m run at [...]/jruby-dist-9.4.6.0-bin.tar/jruby-9.4.6.0/lib/ruby/gems/shared/gems/thor-1.2.2/lib/thor/command.rb:27←[0m invoke_command at [...]/jruby-dist-9.4.6.0-bin.tar/jruby-9.4.6.0/lib/ruby/gems/shared/gems/thor-1.2.2/lib/thor/invocation.rb:127←[0m dispatch at [...]/jruby-dist-9.4.6.0-bin.tar/jruby-9.4.6.0/lib/ruby/gems/shared/gems/thor-1.2.2/lib/thor.rb:392←[0m start at [...]/jruby-dist-9.4.6.0-bin.tar/jruby-9.4.6.0/lib/ruby/gems/shared/gems/thor-1.2.2/lib/thor/base.rb:485←[0m
at [...]/jruby-dist-9.4.6.0-bin.tar/jruby-9.4.6.0/lib/ruby/gems/shared/gems/jirametrics-2.1.0/bin/jirametrics:5←[0m ←[0;36m load at org/jruby/RubyKernel.java:1211←[0m
at [...]/jruby-dist-9.4.6.0-bin.tar/jruby-9.4.6.0/bin/jirametrics:25←[0m`
mikebowler commented 5 months ago

Looking into this. I haven't been able to reproduce it yet.

mikebowler commented 5 months ago

I found a way to reproduce it, and have deployed 2.1.1 to fix that. Please try with that version.

That's embarrassing, although it did find a problem with my testing process so I suppose I can count that as a win ;-)

mikebowler commented 5 months ago

I've now confirmed the problem on three other machines beyond yours and 2.1.1 fixes it on all of those machines, so I'm going to close this ticket. If it didn't fix it for you then please let me know.

SimoneCusimano commented 5 months ago

Many thanks Mike!

Anyway, is there somewhere in the wiki an example of how I can use it?

mikebowler commented 5 months ago

That's on the todo list for today. ;-) In general, the report now directly supports light/dark mode as set by your operating system. If you put the machine in dark mode (done from Settings on a mac. Not sure how other OS's do it) then you'll see the new colour scheme. Back to light mode and it will go back to what you're used to. It just works out of the box.

If you want to customize those new colours in either light or dark mode then you'll need to create your own CSS file and override the appropriate variables or styles. That what I'll be documenting later today.