[Bug 946] New: .rttlua not loaded for exec_file scripts

http://bugs.orocos.org/show_bug.cgi?id=946

Summary: .rttlua not loaded for exec_file scripts
Product: Toolchain
Version: master
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P3
Component: Lua
AssignedTo: orocos-dev [..] ...
ReportedBy: peter [..] ...
CC: orocos-dev [..] ...
Estimated Hours: 0.0

The .rttlua is only loaded for the 'main' .lua file loaded when running
rttscript. Each other script loaded (in other components) does not get .rttlua
parsed, while these scripts need setting up the environment up as well.

Was this intentional that only interactive mode is reading this script ?

[Bug 946] .rttlua not loaded for exec_file scripts

http://bugs.orocos.org/show_bug.cgi?id=946

Markus Klotzbuecher <markus [dot] klotzbuecher [..] ...> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |markus [dot] klotzbuecher [..] ...
| |leuven.be
Resolution| |WONTFIX

[Bug 946] New: .rttlua not loaded for exec_file scripts

On Wed, Apr 18, 2012 at 04:38:10PM +0000, Peter Soetens wrote:
>
> http://bugs.orocos.org/show_bug.cgi?id=946
>
> Summary: .rttlua not loaded for exec_file scripts
> Product: Toolchain
> Version: master
> Platform: All
> OS/Version: All
> Status: NEW
> Severity: normal
> Priority: P3
> Component: Lua
> AssignedTo: orocos-dev [..] ...
> ReportedBy: peter [..] ...
> CC: orocos-dev [..] ...
> Estimated Hours: 0.0
>
>
> The .rttlua is only loaded for the 'main' .lua file loaded when running
> rttscript. Each other script loaded (in other components) does not get .rttlua
> parsed, while these scripts need setting up the environment up as well.
>
> Was this intentional that only interactive mode is reading this script ?

This is intentional. Already now there is a danger of shipping
unportable deployment script because you rely on some functionality
added in the dotfile. I would recommend to use the dotfile only for
loading completion and for adding functions relevant to testing and
debugging.

Markus