Software Archive
Read-only legacy content

1878 version problems with plugins

Marek_Š_
Beginner
1,025 Views

Hello,

I have problems with 3rd party plugins since I upgraded to version 1878:

1) When I add a plugin from web, it creates a local copy of the plugin and it's displayed between the 3rd party plugins as well after couple of seconds - so I have it there twice. OK, probably I could live with it in case the rest is working.

2) When I try to delete a 3rd party plugin by clicking on white "x" icon, always the first on the list plugin is deleted, doesn't matter, which one I clicked.

3) When the local plugin copy (mentioned in the point 1) ) is among the 3rd party plugins, build randomly fails saying 'Plugin "xyz" failed to install".

I found a workaround - I manually edit XDK file, where all local plugins are changed to their web source. So, I have all plugins there twice, but they are displayed only once on the 3rd party screen and my builds never fail.

In case some screenshot are needed, please, let me know. I am running it on Windows 8.1 x64.

Marek

0 Kudos
7 Replies
Alfredo_R_1
Beginner
1,025 Views

Hello,

Also have this problem with plugins. Its a shame they fix a thing and break another so you can never have a stable, full working product.

What's exactly what you edit on what XDK file?

Thank you, your help will be appreciated.

Alfredo.

0 Kudos
Marek_Š_
Beginner
1,025 Views

Hi,

I edited project_file.XDK, where project_file is name of your project. There is a section, which lists all your plugins in the file. I delete all the references to local plugins at first, but the build didn't work after this at all. So, I took definition of a "github" plugin and I used it for rewriting its local counterpart. It works for me. The example:

I take this:

      {
        "id": "com.megster.cordova.bluetoothserial",
        "version": "",
        "selectedState": "Included",
        "data": {},
        "paramvals": {},
        "dependsOn": [],
        "dependedBy": [],
        "custom": "true",
        "name": "Bluetooth serial",
        "origin": "https://github.com/don/BluetoothSerial.git",
        "originType": "repo",
        "sourceLocation": ""
      }

and using it I replace this:

      {
        "id": "com.megster.cordova.bluetoothserial",
        "version": "0.4.2",
        "selectedState": "Included",
        "data": {},
        "paramvals": {},
        "checksum": "e88237dcce6e2c7f3eea036543097e7b8acd67b51b589828f84781684333caf4",
        "dependsOn": [],
        "dependedBy": [],
        "custom": "true",
        "name": "Bluetooth Serial",
        "origin": "https://github.com/don/BluetoothSerial.git",
        "originType": "repo",
        "sourceLocation": "d:\\data\\zdroje\\PhoneGap\\NavGuide\\ekastelan.src\\www\\plugins\\com.megster.cordova.bluetoothserial"
      }

Marek

0 Kudos
Swati_S_Intel1
Employee
1,025 Views

Hello Marek,

I tried to reproduce the problem you mentioned on Windows and Mac. Including multiple third-party plugins, deleting etc.  works fine at my end. There is a known issue with including featured plugins and a fix is being worked out for that. For this one if you could do a clean install (not through updater) and try to reproduce and let me know the exact steps you followed after you opened the XDK, that will help us debug the issue.

Thanks,

Swati

0 Kudos
Marek_Š_
Beginner
1,025 Views
Hello Swati,
 
thanks for your replay. I made a video for you ;). You can find it on http://youtu.be/Nf82Xf-CmvE. What I did:
 
1) uninstalled XDK and manually deleted any remaining file under my user directory
2) deleted all project related file (fox sure except source codes), especially plugins directory which is now being automatically created in my source root directory
3) installed XDK
4) created new project from existing source codes
 
You can see the rest in my video.
 
1) I add an external plugin (I skipped Standard Cordova Plugins as they are not needed for this demonstration) => the second new one is added automatically after a while (as it's automatically downloaded to the plugins directory, which I mention in step 2) above)
2) Once all 3 are added, I demonstrate build - you can see as the build fails
3) At the end I demonstrate plugin deletion process - you can see, that what I click is not delete and I show you my file system, where you can see, that only 1 from the 3 plugins is deleted from the plugins directory
 
In case I can do anything more for you, please, let me know.
 
Marek
0 Kudos
Marek_Š_
Beginner
1,025 Views

Just to add - I can now repeat it any time using these steps:

1) Remove all plugins from the project using XDK GUI

2) Close XDK

3) Delete plugins directory content manually

4) Start XDK and follow the video from my previous post

0 Kudos
Swati_S_Intel1
Employee
1,025 Views

This issue has been identified and the fix will be available soon. 

Thanks for your patience.

Swati

0 Kudos
Marek_Š_
Beginner
1,025 Views

Great news, thanks a lot!

Marek

0 Kudos
Reply