[Linux] Set run config to run external tool but it doesn't run (it runs from tools->external tools menu)
Hi! I have created a shell script that starts the Android Emulator, to test my React Native projects. The shell script works fine.
By changing the Exec line of the .desktop file to run WS, it can access env vars just fine Exec=bash -ic "/home/martin/webstorm/bin/webstorm.sh" %f
I've added that shell script to the External Tools setting, and the tool works just fine if I run it from tools->external tools menu
I've set my run config to Before launch: External tool, Activate tool window and select my external tool from with the + button
When running the project by pressing the play button, there's no Android Emulator at all!
Specs:
WebStorm 2016.3.4
Build #WS-163.13906.20, built on March 7, 2017
JRE: 1.8.0_112-release-408-b6 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Please sign in to leave a comment.
what does your tool look like? please attach screenshot.
Note also that adding your tool to 'before launch' section of run configuration likely won't work: tools launched from run configuration need to return an exit code - the main process is waiting for return code to start. This is the way 'before launch' is designed - it's supposed to be used to run some sort of pre-processing before running the main process. And emulator is not supposed to exit before your main process starts, isn't it?
Ohhh...I see so I must run my tool from eternal tools menu. I'm sending the code anyway
RunAVDNexus6.sh:
#!/bin/bash
/home/martin/Android/Android/Sdk/emulator/emulator64-x86 -avd Nexus_6_API_23