Closed georgi26 closed 4 years ago
There is some magic with opal-sprockets
version. As I remember correctly I should not use specific version.
It was ~> 0 but then it was defaulting to very old version something like 0.0.1 probably this is a bug in bundler here is the output:
inesita server
Warning: the running version of Bundler (2.1.2) is older than the version that created the lockfile (2.1.4). We suggest you to upgrade to the version that created the lockfile by running gem install bundler:2.1.4
.
Failed to load WithCLexer, using pure Ruby lexer
Traceback (most recent call last):
19: from /home/georgi/.rvm/gems/ruby-2.7.0/bin/ruby_executable_hooks:24:in <main>' 18: from /home/georgi/.rvm/gems/ruby-2.7.0/bin/ruby_executable_hooks:24:in
eval'
17: from /home/georgi/.rvm/gems/ruby-2.7.0/bin/inesita:23:in <main>' 16: from /home/georgi/.rvm/gems/ruby-2.7.0/bin/inesita:23:in
load'
15: from /home/georgi/.rvm/gems/ruby-2.7.0/gems/inesita-0.9.1/bin/inesita:3:in <top (required)>' 14: from /home/georgi/.rvm/gems/ruby-2.7.0/gems/inesita-0.9.1/bin/inesita:3:in
require'
13: from /home/georgi/.rvm/gems/ruby-2.7.0/gems/inesita-0.9.1/lib/inesita/cli.rb:5:in <top (required)>' 12: from /home/georgi/.rvm/rubies/ruby-2.7.0/lib/ruby/2.7.0/bundler.rb:174:in
require'
11: from /home/georgi/.rvm/rubies/ruby-2.7.0/lib/ruby/2.7.0/bundler/runtime.rb:58:in require' 10: from /home/georgi/.rvm/rubies/ruby-2.7.0/lib/ruby/2.7.0/bundler/runtime.rb:58:in
each'
9: from /home/georgi/.rvm/rubies/ruby-2.7.0/lib/ruby/2.7.0/bundler/runtime.rb:69:in block in require' 8: from /home/georgi/.rvm/rubies/ruby-2.7.0/lib/ruby/2.7.0/bundler/runtime.rb:69:in
each'
7: from /home/georgi/.rvm/rubies/ruby-2.7.0/lib/ruby/2.7.0/bundler/runtime.rb:74:in block (2 levels) in require' 6: from /home/georgi/.rvm/rubies/ruby-2.7.0/lib/ruby/2.7.0/bundler/runtime.rb:74:in
require'
5: from /home/georgi/.rvm/gems/ruby-2.7.0/gems/inesita-0.9.1/lib/inesita.rb:1:in <top (required)>' 4: from /home/georgi/.rvm/gems/ruby-2.7.0/gems/inesita-0.9.1/lib/inesita.rb:1:in
require'
3: from /home/georgi/.rvm/gems/ruby-2.7.0/gems/opal-sprockets-0.0.1/lib/opal-sprockets.rb:1:in <top (required)>' 2: from /home/georgi/.rvm/gems/ruby-2.7.0/gems/opal-sprockets-0.0.1/lib/opal-sprockets.rb:1:in
require'
1: from /home/georgi/.rvm/gems/ruby-2.7.0/gems/opal-sprockets-0.0.1/lib/opal/sprockets/processor.rb:4:in <top (required)>' /home/georgi/.rvm/gems/ruby-2.7.0/gems/opal-sprockets-0.0.1/lib/opal/sprockets/processor.rb:15:in
When i bumped version to ~> 0.4.9 it was fine it seems that Opal::Tilt was renamed to something else
I am planing to use Inesita it is a great framework , i am glad that i can contribute something
I'll double check that. Anyway I'm pretty sure there was a problem with locked opal-sprockets
. Will update to newest bundler first.
OK Got some idea to solve this problem.
The problem is that opal-sprockets
don't support sprockets
4.0
. So when bundler installs sprockets 4.0
it also chooses early version of opal-sprockets
because those versions allows to install with sprockets 4.0
.
We won't to lock opal-sprockets on version 0.4.9
The best way to solve this problem is to blacklist old versions of opal-sprockets.
I think the best way is to resolve version like this:
s.add_dependency 'opal-sprockets', '> 0.3'
And please don't bump inesita
version with this PR.
Sorry my mistake, I mean:
s.add_dependency 'opal-sprockets', '> 0.3'
Version 0.9.2 released! Thanks :beers:
Hello i was trying inesita and there was error with opal-sprockets it was looking for Tilt
/home/georgi/.rvm/gems/ruby-2.7.0/gems/opal-sprockets-0.0.1/lib/opal/sprockets/processor.rb:15:in `': uninitialized constant Opal::Tilt (NameError)
so this is fixing this issue