Support for "ionic cordova run"

Recently we updated our Ionic CLI to v3. Because the CLI changed "ionic run" syntax to "ionic cordova run", I started getting the following error when running a build from the WebStorm configurations menu:
/usr/local/bin/ionic run --emulator --target=Nexus_S_API_22 android -l -c
The run command has been renamed. To find out more, run: ionic cordova run --help

Based on a fixed bug (https://youtrack.jetbrains.com/issue/WEB-27402), WebStorm 2017.2 should support the new "ionic cordova run" command. So I updated WebStorm and it indeed worked for a while, but then recently I was getting the same error again from the configurations menu. Wondering if some files got overwritten and broke WebStorm's support for the new syntax. Could any provide hints as to where I should double-check? Thanks.

15 comments
Comment actions Permalink

https://youtrack.jetbrains.com/issue/WEB-27402 is indeed fixed in 2017.2.

Please attach screenshots of your run configuration and console with error message

0
Comment actions Permalink

Before I updated WebStorm, I got the above error message. After I updated to 2017.2, the same config worked for a few days and it seemed like WebStorm was intercepting the call and translate it into "ionic cordova run" in the background. But now I am getting the same error all over again. Hence the ask.

0
Comment actions Permalink

what is the result of running ionic --version in the built-in terminal? How many ionic installations do you have on your computer? Also, please can you recreate the issue and provide your idea.log (https://intellij-support.jetbrains.com/hc/en-us/articles/207241085-Locating-IDE-log-files)?

0
Comment actions Permalink

I looked at the log, but it contained no entries related to Ionic build. My Ionic version is 3.13.2. Only one Ionic installation. Thanks.

0
Comment actions Permalink

WebStorm runs ionic --version to detect ionic version, and, if v. 3 is detected, uses "ionic cordova run" command to start the app.

Is the issue specific to certain app? Try creating a new ionic project - what command will be used to run it? also, please try starting WebStorm from terminal using open -a /Applications/WebStorm.app - does the problem persist?

0
Comment actions Permalink

Sorry for the late response. Just got the chance to do some experiments as you suggested. Here are the results:

(1) The problem persists in a new Ionic project.

(2) Using open -a /Applications/WebStorm.app didn't make a difference.

Somehow the translation from "ionic run" to "ionic cordova run" after the version detection is broken...

0
Comment actions Permalink

please provide your idea.log (put it on some file server and publish a link)

0
Comment actions Permalink

I have the same problem ¿any update with this issue?

0
Comment actions Permalink

Same here. Seems like that's still a problem in 2017.3.3. Any news from JetBrains on this?

0
Comment actions Permalink

We aren't able to recreate the issue on our end.

idea.log might be helpful

0
Comment actions Permalink

Alright, here's a part of my idea.log. I can't publish the full log here, since it contains project names, but this log is for today. Hope it helps.

https://mega.nz/#!RUJhQKiK!W4kZbOrO0gje6X2KbotMt_3S2hFORR1Pb_Sqk-iC6B8

0
Comment actions Permalink

Nothing in the log unfortunately :(

Anyway I have recreated the issue, looks specific to local package dependencies. Logged as https://youtrack.jetbrains.com/issue/WEB-30906, please follow it for updates

0
Comment actions Permalink

Thanks a lot!

0

Please sign in to leave a comment.