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
should execute to completion. To try and run check out Yard and execute via:
jruby -Ilib foo.rb > output
If I run this with MRI it runs fine.
Actual Behavior
NameError: undefined local variable or method `basepath' for #<YARD::Serializers::Base:0x5dd6264 @options={}>
serialize at /Users/enebo/work/gems/yard/lib/yard/serializers/file_system_serializer.rb:38
serialize at /Users/enebo/work/gems/yard/templates/default/onefile/html/setup.rb:55
block in with_serializer at /Users/enebo/work/gems/yard/lib/yard/templates/engine.rb:127
capture at /Users/enebo/work/gems/yard/lib/yard/logging.rb:70
with_serializer at /Users/enebo/work/gems/yard/lib/yard/templates/engine.rb:123
serialize_onefile at /Users/enebo/work/gems/yard/templates/default/fulldoc/html/setup.rb:42
init at /Users/enebo/work/gems/yard/templates/default/fulldoc/html/setup.rb:6
initialize at /Users/enebo/work/gems/yard/lib/yard/templates/template.rb:185
new at /Users/enebo/work/gems/yard/lib/yard/templates/template.rb:130
run at /Users/enebo/work/gems/yard/lib/yard/templates/template.rb:135
<top> at foo.rb:26
I originally thought this was a problem with zsuper since I can see html/setup.rb executing a super. On reflection, I think something is resolving the singleton wrongly and executing the previous serializer. How it does this may be getting wrong @Serializer ivar OR it might be in how some of the Object.new and Module.new stuff happens in Yard. We have some open issues regarding constants not getting their own namespace in newly created modules.
The text was updated successfully, but these errors were encountered:
Environment
I went back to at least 9.0.3.0 but I am unsure if this is a regression or somehow is related to a change yard made at some point.
Expected Behavior
The provided script:
should execute to completion. To try and run check out Yard and execute via:
If I run this with MRI it runs fine.
Actual Behavior
I originally thought this was a problem with zsuper since I can see html/setup.rb executing a super. On reflection, I think something is resolving the singleton wrongly and executing the previous serializer. How it does this may be getting wrong @Serializer ivar OR it might be in how some of the Object.new and Module.new stuff happens in Yard. We have some open issues regarding constants not getting their own namespace in newly created modules.
The text was updated successfully, but these errors were encountered: