Project

General

Profile

Actions

Bug #10698

open

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

Added by Alexander Protsenko over 3 years ago. Updated over 1 year 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)
    }

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

Actions #1

Updated by Alexander Protsenko over 1 year ago

  • Target version changed from 2.5 to 2.6
Actions

Also available in: Atom PDF