Cordova-Extension icon indicating copy to clipboard operation
Cordova-Extension copied to clipboard

Waiting with "loading data"

Open lightwalker01 opened this issue 11 years ago • 3 comments

Cordova-Extension: 0.0.7 Brackets: 0.44.0-14876 Cordova: 4.0.0 O.S.: Windows 7 (64bit)

When i open the cordova extension panel, there is only the message "loading data". The project builds well via the cli command. Thanks

lightwalker01 avatar Oct 30 '14 13:10 lightwalker01

If you open the debug window, do you see anything?

cfjedimaster avatar Nov 01 '14 19:11 cfjedimaster

Hi, I had the same issue and found out where the problem was: the execution of the cordova cli commands are meant to be done on a unix-like system, as seen on getPlatforms in CordovaCaller.js:

exec("echo 'cordova platforms' | bash --login", {cwd:directory}, function(error, stdout, stderror) {

Just leaving the command itself makes it runnable on Windows (tested plugins and platforms listing on Windows 8 x64):

exec("cordova platforms", {cwd:directory}, function(error, stdout, stderror) {

Thanks for this nice extension. Regards!

jamaloyes avatar Nov 05 '14 16:11 jamaloyes

Hmm, but I don't think it will work on Linux/OSX though. I could sniff the OS maybe.

cfjedimaster avatar Nov 05 '14 16:11 cfjedimaster