-
Notifications
You must be signed in to change notification settings - Fork 195
Open
Labels
embeddingUses TruffleRuby embedded, i.e., started from Java (so not the standalone)Uses TruffleRuby embedded, i.e., started from Java (so not the standalone)
Description
Background: This Slack conversation.
In the process of migrating from JRuby to TruffleRuby for runnign a script that's embeddef as a Java resource, I realized that calling Context.currentWorkingDirectory()
does not work to change the working directory for the evaluated script. This is the code area of interest.
In JRuby, I used setCurrentDirect()
on the ScriptingContainer
. With TruffleRuby, I'm using currentWorkingDirectory()
on the Context
. But that does not work as the script fails with PolyglotException: Could not locate Gemfile
.
As @eregon mentioned, this seems to be because TruffleRuby does not adhere to Context.currentWorkingDirectory()
correctly and "the working directory is (currently) the native one in TruffleRuby".
Metadata
Metadata
Assignees
Labels
embeddingUses TruffleRuby embedded, i.e., started from Java (so not the standalone)Uses TruffleRuby embedded, i.e., started from Java (so not the standalone)