Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not support spaces in KOTLIN_HOME variable. #414

Open
c8hallett opened this issue Jan 11, 2024 · 0 comments
Open

Does not support spaces in KOTLIN_HOME variable. #414

c8hallett opened this issue Jan 11, 2024 · 0 comments

Comments

@c8hallett
Copy link

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] 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant