#1744: load_language "nqp" fails
-------------------------+--------------------------------------------------
 Reporter:  whiteknight  |       Owner:       
     Type:  bug          |      Status:  new  
 Priority:  normal       |   Milestone:       
Component:  none         |     Version:  2.6.0
 Severity:  medium       |    Keywords:  nqp  
     Lang:               |       Patch:       
 Platform:               |  
-------------------------+--------------------------------------------------
 {{{
 .sub "main" :main
     load_language "nqp"
 .end
 }}}

 this fails with error message

 {{{
 "load_language" couldn't find a compiler module for the language 'nqp'
 }}}

 calling the opcode with the argument "nqp-rx" does no better. Since NQP is
 a language compiler, and since it ships with Parrot, I would expect it to
 be loadable using this mechanism, somehow.

 the load_language opcode calls src/packfile.c:Parrot_load_language(),
 which expects to find a "languages/nqp/nqp.pbc" or "library/nqp/nqp.pbc"
 in the installation directory. The NQP PBC is instead located at "library
 /nqp-rx.pbc".

 To make this work and keep compatibility with the current setup, I suggest
 that nqp-rx.pbc be copied (or symlinked, where supported) to
 "languages/nqp/nqp.pbc". Necessary supporting files can be
 copied/symlinked in that same directory too.

-- 
Ticket URL: <https://trac.parrot.org/parrot/ticket/1744>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets

Reply via email to