Skip to content

Does not support spaces in KOTLIN_HOME variable. #414

@c8hallett

Description

@c8hallett

If one wanted to use the kotlin package with Android Studio, the KOTLIN_HOME variable would look something similar to:
export KOTLIN_HOME="/Applications/Android\ Studio.app/Contents/plugins/Kotlin/kotlinc"

However, the execution of the script fails at the presence of the space (even though it's properly escaped).

% echo $KOTLIN_HOME           
/Applications/Android\ Studio.app/Contents/plugins/Kotlin/kotlinc
% kscript createSubModules.kts
bash: /Applications/Android/: No such file or directory
[kscript] [ERROR] Execution of scriplet failed:
[kscript] [ERROR] Command     : 'bash -c /Applications/Android/ Studio.app/Contents/plugins/Kotlin/kotlinc/bin/kotlin  -classpath '[REDACTED]' Main_CreateSubModules '
[kscript] [ERROR] Exit Code   : 127   
[kscript] [ERROR] 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions