You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 31, 2021. It is now read-only.
1.9.3p392 :003 > s.A1
NoMethodError: undefined method A1' for #<Soroban::Sheet:0x007f844c9ffb28> from /Users/thirdreplicator/.rvm/gems/ruby-1.9.3-p392/gems/soroban-0.5.4/lib/soroban/sheet.rb:29:inmethod_missing'
from (irb):3
from /Users/thirdreplicator/.rvm/rubies/ruby-1.9.3-p392/bin/irb:16:in `
'
1.9.3p392 :004 > s.A1=2
NameError: uninitialized constant Soroban::Sheet::Set
from /Users/thirdreplicator/.rvm/gems/ruby-1.9.3-p392/gems/soroban-0.5.4/lib/soroban/sheet.rb:17:in block in initialize' from /Users/thirdreplicator/.rvm/gems/ruby-1.9.3-p392/gems/soroban-0.5.4/lib/soroban/sheet.rb:144:inyield'
from /Users/thirdreplicator/.rvm/gems/ruby-1.9.3-p392/gems/soroban-0.5.4/lib/soroban/sheet.rb:144:in default' from /Users/thirdreplicator/.rvm/gems/ruby-1.9.3-p392/gems/soroban-0.5.4/lib/soroban/sheet.rb:144:in_clear'
from /Users/thirdreplicator/.rvm/gems/ruby-1.9.3-p392/gems/soroban-0.5.4/lib/soroban/sheet.rb:140:in _set' from /Users/thirdreplicator/.rvm/gems/ruby-1.9.3-p392/gems/soroban-0.5.4/lib/soroban/sheet.rb:129:in_add'
from /Users/thirdreplicator/.rvm/gems/ruby-1.9.3-p392/gems/soroban-0.5.4/lib/soroban/sheet.rb:27:in method_missing' from (irb):4 from /Users/thirdreplicator/.rvm/rubies/ruby-1.9.3-p392/bin/irb:16:in
'
The text was updated successfully, but these errors were encountered:
You can work-around this problem by doing require 'set' prior to requiring Soroban. Alternatively, we've fixed this issue in 0.7.2, so you can update to that and all should be good. Thanks for reporting the issue (we missed it because we use Bundler, and it seems that requires Set and therefore hides this missing dependency).
No worries @atlantageek; was just nice to see you'd made the fix. But yes, if you'd issues a pull request I would have accepted it gratefully.
At the moment I personally would love to implement to_javascript, but there's no pressing need to do that at the moment to support what we're using Soroban for, so other work is coming first I'm afraid.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
s.A1 is throwing an error. Am I doing something wrong? Thank you.
$ irb
1.9.3p392 :001 > require 'soroban'
=> true
1.9.3p392 :002 > s = Soroban::Sheet.new()
=> #<Soroban::Sheet:0x007f844c9ffb28 @logger=nil, @cells={}, @changes={}, @bindings={}>
1.9.3p392 :003 > s.A1
'NoMethodError: undefined method
A1' for #<Soroban::Sheet:0x007f844c9ffb28> from /Users/thirdreplicator/.rvm/gems/ruby-1.9.3-p392/gems/soroban-0.5.4/lib/soroban/sheet.rb:29:in
method_missing'from (irb):3
from /Users/thirdreplicator/.rvm/rubies/ruby-1.9.3-p392/bin/irb:16:in `
1.9.3p392 :004 > s.A1=2
'NameError: uninitialized constant Soroban::Sheet::Set
from /Users/thirdreplicator/.rvm/gems/ruby-1.9.3-p392/gems/soroban-0.5.4/lib/soroban/sheet.rb:17:in
block in initialize' from /Users/thirdreplicator/.rvm/gems/ruby-1.9.3-p392/gems/soroban-0.5.4/lib/soroban/sheet.rb:144:in
yield'from /Users/thirdreplicator/.rvm/gems/ruby-1.9.3-p392/gems/soroban-0.5.4/lib/soroban/sheet.rb:144:in
default' from /Users/thirdreplicator/.rvm/gems/ruby-1.9.3-p392/gems/soroban-0.5.4/lib/soroban/sheet.rb:144:in
_clear'from /Users/thirdreplicator/.rvm/gems/ruby-1.9.3-p392/gems/soroban-0.5.4/lib/soroban/sheet.rb:140:in
_set' from /Users/thirdreplicator/.rvm/gems/ruby-1.9.3-p392/gems/soroban-0.5.4/lib/soroban/sheet.rb:129:in
_add'from /Users/thirdreplicator/.rvm/gems/ruby-1.9.3-p392/gems/soroban-0.5.4/lib/soroban/sheet.rb:27:in
method_missing' from (irb):4 from /Users/thirdreplicator/.rvm/rubies/ruby-1.9.3-p392/bin/irb:16:in
The text was updated successfully, but these errors were encountered: