Apache Cordova for Visual Studio resets VS when importing certain plugins

Edit: I was able to successfully import the plugin from GitHub (Auth0) into VS. The problem seems to be parsing some plugins like the one I am actually trying to install, which is the latest version of OpenTok for Cordova. The latest version is only on GitHub, so I am stuck with this crash.

If you have installed Cordova in Visual Studio 2013 (SP4) or are using the Visual Studio 2015 preview that ships with Apache Cordova VS, it will crash when you try to import a custom Cordova plugin into your project. You can replicate this issue by creating a Cordova project by right clicking confix.xml -> View Designer -> Plugins -> Custom. Trying to import from Github or download and import locally doesn't work. Visual Studio will crash, for example, when typing https://github.com/songz/cordova-plugin-opentok or a .git url with the same error as in this screenshot:

Error Before Crash

An error is reported when opentok crashes:


Task signature:

Problem Event Name: CLR20r3

Problem Signature 01: devenv.exe

Problem Signature 02: 14.0.22310.1

Problem Signature 03: 546094b0

Problem Signature 04: mscorlib

Problem Signature 05: 4.5.27.0

Problem Signature 06: 545ca51f

Problem Signature 07: 48dd

Problem Signature 08:27

Problem Signature 09: System.ArgumentNullException

OS Version: 6.3.9600.2.0.0.256.48

Locale ID: 1033

Additional information 1: 5861

Additional information 2: 5861822e1919d7c014bbb064c64908b2

Additional information 3: a10f

Additional Information 4: a10ff7d2bb2516fdc753f9c34fc3b069


Then Visual Studio will crash and the plugin will never be added. The only plugins you can add are the ones listed under "Core" in VS. I also tried to install them from the command line by first going to the project directory (not the folder with the sln file, of course the folder below that with all the project files) and it says it is not a Cordova project. I also tried to manually download the plugin and add it to the directory I added to the solution and then import it, but it didn't work.

If I knew how to manually use the plugin by importing all files and referencing them somewhere in my project in Cordoba as javascript or xml references, I would not know how to do it (if it is even a solution that works for compiling on Android and IOS and I've tried).

This is a big problem and it destroys me because I really want to use Cordova and this is my first experience. I want to use VS because it is a great development and test / emulation environment and there are no IDEs or the same emulators in Cordova. I don't know of any other IDE for Cordova development where I can import plugins and view my apps, for example in VS (they use special emulators that don't require the use of Android SDK emulators).

Any help would be greatly appreciated. I have no idea what to do. I've posted bug reports here: https://github.com/songz/cordova-plugin-opentok/issues/137 here: https://github.com/alongubkin/phonertc/issues/123 and here: https: // issues.apache.org/jira/browse/CB-8279 . I don't know how it will turn out. I also tried updating Web Essentials in VS2013 but that didn't work either.

Thanks for everything you can think of.

+3


source to share


2 answers


The plugin.xml file does not confirm that I have submitted a pull request to fix it. If you download a plugin and update the file yourself, you should be able to add it from disk by viewing it.



+3


source


I found this link which fixed the situation for the OpenTok plugin which was due to some format issues with the plugin.xml. There are other similar issues with plugin installations in 2013 and 2015, including core plugins. https://github.com/AdamTReineke/cordova-plugin-opentok/blob/481ec3a3f8c46f3d064912add00773422afc5533/plugin.xml



0


source







All Articles