Project

General

Profile

Bug #10698

ArgumentError: wrong number of arguments calling `target` (2 for 0)

Added by Alexander Protsenko 3 months ago.

Status:
New
Priority:
Normal
Category:
Template Processor
Target version:
Start date:
01/29/2021
Due date:
% Done:

0%

Estimated time:
Detected in build:
git
Platform:
Published in build:

Description

В качестве примера используется проект: MicroTESK for Plasma

Диагностика

********************************************************************************
ATTENTION! An unexpected error has occurred:
org.jruby.exceptions.RaiseException: (ArgumentError) wrong number of arguments calling `target` (2 for 0)

The program will be terminated. Please contact us at: 
microtesk-support@ispras.ru
We are sorry for the inconvenience.

Exception stack:

org.jruby.exceptions.RaiseException: (ArgumentError) wrong number of arguments calling `target` (2 for 0)
    at RUBY.pre(D:/WorkProjects/MicroTESK/microtesk-plasma/src/main/arch/plasma/templates/plasma_base.rb:96)
    at org.jruby.RubyBasicObject.instance_eval(org/jruby/RubyBasicObject.java:1594)
    at RUBY.create_preparator(D:/WorkProjects/MicroTESK/microtesk-plasma/build/target/lib/ruby/template.rb:614)
    at RUBY.preparator(D:/WorkProjects/MicroTESK/microtesk-plasma/build/target/lib/ruby/template.rb:566)
    at RUBY.pre(D:/WorkProjects/MicroTESK/microtesk-plasma/src/main/arch/plasma/templates/plasma_base.rb:95)
    at RUBY.generate(D:/WorkProjects/MicroTESK/microtesk-plasma/build/target/lib/ruby/template.rb:1007)
    at RUBY.main(D:\WorkProjects\MicroTESK\microtesk-plasma\build\target\lib\ruby\microtesk.rb:33)
    at org.jruby.RubyHash.each(org/jruby/RubyHash.java:1342)
    at RUBY.main(D:\WorkProjects\MicroTESK\microtesk-plasma\build\target\lib\ruby\microtesk.rb:29)
    at RUBY.(root)(D:\WorkProjects\MicroTESK\microtesk-plasma\build\target\lib\ruby\microtesk.rb:52)

********************************************************************************

Код вызывающий ошибку:

    preparator(:target => 'R') {
      ori target target, value(16, 31)
      sll target, target, 16
      ori target, target, value(0,  15)
    }

Код не вызывающий ошибку:

    preparator(:target => 'R') {
      ori target, target, value(16, 31)
      sll target, target, 16
      ori target, target, value(0,  15)
    }

Нужна корректная диагностика.

No data to display

Also available in: Atom PDF