[jira] [Commented] (CB-13507) git+https or git+ssh fails when trying to install

2018-03-27 Thread Andrey Caramba (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-13507?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16415748#comment-16415748
 ] 

Andrey Caramba commented on CB-13507:
-

Hello, Warren. Thanks for the answer.

Yes, plugins are installed correctly if I use 2-step installation via git 
clone. It also works if I install plugins with the --nofetch option. But I have 
some git+ssh plugins with node dependencies and with the above methods I need 
to add all these dependencies into my project package.json. Also I'd want to 
use cordova prepare mechanism to simplify my project deployment. And this bug 
greatly complicates my development process.

> git+https or git+ssh fails when trying to install
> -
>
> Key: CB-13507
> URL: https://issues.apache.org/jira/browse/CB-13507
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: AllPlatforms
>Affects Versions: 7.0.2
> Environment: I am selecting 7.0.2 since it's the closest but I am 
> running cordova 7.1.0
> OS: Mac OS X Sierra.
> Although I don't think it has anything to do with cordova-ios and 
> cordova-android, my platform versions are: 
> - android 6.3.0
> - ios 4.5.2
>Reporter: Pablo Caselas
>Priority: Major
> Fix For: 7.0.2
>
>
> I start with adding plugin dependencies with https://.. on package.json 
> (no plugin references on config.xml) and no platforms or plugins installed 
> then I run "cordova platform ios".
> It installs the plugins without any problem, but changes config.xml and 
> package.json plugin references from https to git+https, and ssh to git+ssh.
> Failed to restore plugin "cordova-plugin-document-viewer" from config.xml. 
> You might need to try adding it again. Error: Failed to fetch plugin 
> git+https://github.com/kas84/cordova-plugin-document-viewer.git via registry



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-13507) git+https or git+ssh fails when trying to install

2018-03-23 Thread Andrey Caramba (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-13507?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16411475#comment-16411475
 ] 

Andrey Caramba commented on CB-13507:
-

I tried to console.log plugin_dir after this line 
[https://github.com/apache/cordova-lib/blob/master/src/plugman/fetch.js#L139] 
and got
{code:java}
/Users/andrey/Projects/Cordova/app/plugins/git+ssh:/g...@git.mygitrepos.tld:9022/cordova-plugins/cordova-plugin-fabric.git{code}
for plugins added via git+ssh url

> git+https or git+ssh fails when trying to install
> -
>
> Key: CB-13507
> URL: https://issues.apache.org/jira/browse/CB-13507
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: AllPlatforms
>Affects Versions: 7.0.2
> Environment: I am selecting 7.0.2 since it's the closest but I am 
> running cordova 7.1.0
> OS: Mac OS X Sierra.
> Although I don't think it has anything to do with cordova-ios and 
> cordova-android, my platform versions are: 
> - android 6.3.0
> - ios 4.5.2
>Reporter: Pablo Caselas
>Priority: Major
> Fix For: 7.0.2
>
>
> I start with adding plugin dependencies with https://.. on package.json 
> (no plugin references on config.xml) and no platforms or plugins installed 
> then I run "cordova platform ios".
> It installs the plugins without any problem, but changes config.xml and 
> package.json plugin references from https to git+https, and ssh to git+ssh.
> Failed to restore plugin "cordova-plugin-document-viewer" from config.xml. 
> You might need to try adding it again. Error: Failed to fetch plugin 
> git+https://github.com/kas84/cordova-plugin-document-viewer.git via registry



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-13507) git+https or git+ssh fails when trying to install

2018-03-23 Thread Andrey Caramba (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-13507?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16411446#comment-16411446
 ] 

Andrey Caramba commented on CB-13507:
-

I have the same issue with cordova@7 and cordova@8

OS: Ubuntu 16.04.4 and Mac OS X High Sierra

node: 8.9.1 and 8.10.0

npm: 5.5.1 and 5.6.0

When I'm trying to add plugins with -d key I get next log
{code:java}
Calling plugman.fetch on plugin 
"git+ssh://g...@git.mygitrepos.tld:9022/cordova-plugins/cordova-plugin-clipboard.git"
Running command: npm install 
git+ssh://g...@git.mygitrepos.tld:9022/cordova-plugins/cordova-plugin-clipboard.git
 --production --no-save
Command finished with error code 0: npm 
install,git+ssh://g...@git.mygitrepos.tld:9022/cordova-plugins/cordova-plugin-clipboard.git,--production,--no-save
(node:58588) UnhandledPromiseRejectionWarning: CordovaError: Failed to fetch 
plugin 
git+ssh://g...@git.mygitrepos.tld:9022/cordova-plugins/cordova-plugin-clipboard.git
 via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
Check your connection and plugin name/version/URL.
Failed to get absolute path to installed module
at /Users/andrey/node_modules/cordova-lib/src/plugman/fetch.js:173:37
at _rejected (/Users/andrey/node_modules/q/q.js:864:24)
at /Users/andrey/node_modules/q/q.js:890:30
at Promise.when (/Users/andrey/node_modules/q/q.js:1142:31)
at Promise.promise.promiseDispatch (/Users/andrey/node_modules/q/q.js:808:41)
at /Users/andrey/node_modules/q/q.js:624:44
at runSingle (/Users/andrey/node_modules/q/q.js:137:13)
at flush (/Users/andrey/node_modules/q/q.js:125:13)
at _combinedTickCallback (internal/process/next_tick.js:131:7)
at process._tickCallback (internal/process/next_tick.js:180:9)
(node:58588) UnhandledPromiseRejectionWarning: Unhandled promise rejection. 
This error originated either by throwing inside of an async function without a 
catch block, or by rejecting a promise which was not handled with .catch(). 
(rejection id: 1)
(node:58588) [DEP0018] DeprecationWarning: Unhandled promise rejections are 
deprecated. In the future, promise rejections that are not handled will 
terminate the Node.js process with a non-zero exit code.
{code}

> git+https or git+ssh fails when trying to install
> -
>
> Key: CB-13507
> URL: https://issues.apache.org/jira/browse/CB-13507
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: AllPlatforms
>Affects Versions: 7.0.2
> Environment: I am selecting 7.0.2 since it's the closest but I am 
> running cordova 7.1.0
> OS: Mac OS X Sierra.
> Although I don't think it has anything to do with cordova-ios and 
> cordova-android, my platform versions are: 
> - android 6.3.0
> - ios 4.5.2
>Reporter: Pablo Caselas
>Priority: Major
> Fix For: 7.0.2
>
>
> I start with adding plugin dependencies with https://.. on package.json 
> (no plugin references on config.xml) and no platforms or plugins installed 
> then I run "cordova platform ios".
> It installs the plugins without any problem, but changes config.xml and 
> package.json plugin references from https to git+https, and ssh to git+ssh.
> Failed to restore plugin "cordova-plugin-document-viewer" from config.xml. 
> You might need to try adding it again. Error: Failed to fetch plugin 
> git+https://github.com/kas84/cordova-plugin-document-viewer.git via registry



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-13009) cordova prepare unnecessarily edits config.xml and package.json

2018-03-21 Thread Andrey Caramba (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-13009?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16408539#comment-16408539
 ] 

Andrey Caramba commented on CB-13009:
-

+100500  I feel hate when I see that my files with all my comments and 
formatting are changed unnecessarily and without demand

> cordova prepare unnecessarily edits config.xml and package.json
> ---
>
> Key: CB-13009
> URL: https://issues.apache.org/jira/browse/CB-13009
> Project: Apache Cordova
>  Issue Type: Improvement
>  Components: cordova-cli
>Affects Versions: 7.0.1
> Environment: Mac OSX 10.12.5
> Node 8.1.2
> npm 5.0.3
>Reporter: Christian Tschanz
>Priority: Minor
>  Labels: tools-next
>
> I crafted my config.xml file by hand (and added comments) to make it more 
> readable and maintainable. I also removed all '^' or '~' from the versions of 
> the engines/plugins to fix the version to one specific one (I will manually 
> test new versions and update if possible). I also removed the '^' from the 
> package.json file it generates.
> When running 'cordova prepare' it will completely re-create the config.xml 
> file and therefore re-format it. It will also re-add the '^' to all versions. 
> It will also add the '^' to the versions in the package.json file.
> This is VERY annoying. Previous versions did not behave like this. They only 
> edited the config.xml if explicitly told to do so. I really, really want to 
> fix the versions to a specific one and don't want it to always add the '^'. I 
> would also prefer it if it the 'prepare' command would not re-create the 
> config.xml file as there is no need for that and it kills all formatting and 
> comments.
> At the moment I hope it respects the 'package-lock' file when installing 
> plugins because I can't have it install newer versions automatically. Sadly 
> many plugins are not as stable and well maintained for such an automatic 
> update to work well in large projects.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org