[jira] [Commented] (CB-13768) cordova-fetch is unable to install from url or file system using package.json

2019-02-15 Thread Raphael (JIRA)


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

Raphael commented on CB-13768:
--

I can't give any timeframe. I'm actually not involved in the current release 
process myself. You can track the progress in above issue or by watching the 
cordova dev mailing list activity.

A backport of the fix is unlikely since it entails some breaking changes.

> cordova-fetch is unable to install from url or file system using package.json
> -
>
> Key: CB-13768
> URL: https://issues.apache.org/jira/browse/CB-13768
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: cordova-fetch
>Reporter: Andrew Crites
>Priority: Critical
>
> This is a big issue in cordova@8 since you can't opt out of cordova-fetch. 
> Using a url such as `github.com` or the file system for a plugin doesn't work 
> with package.json. It still works using config.xml:
> {code}
>  spec="https://github.com/user/cordova-plugin-repo#specific-branch; />
> 
> {code}
> This works when running {{cordova platform add}}. However, if you do not use 
> {{--nosave}} this will update package.json dependencies:
> {code}
> "cordova-plugin-repo": 
> "git+https://github.com/user/cordova-plugin-repo#branch;,
> "local-plugin": "file:src/local-plugin",
> {code}
> If you try to install with package.json like this, you'll get errors for 
> these packages:
> {code}
> Failed to restore plugin "cordova-plugin-repo" from config.xml. You might 
> need to try adding it again. Error: Failed to fetch plugin 
> https://github.com/user/cordova-plugin-repo#branch via registry.
> Probably this is either a connection problem, or plugin spec is incorrect.
>   
>Check your connection and plugin 
> name/version/URL.
> TypeError [ERR_INVALID_ARG_TYPE]: The "url" argument must be of type string. 
> Received type undefined
> Discovered plugin "local-plugin" in config.xml. Adding it to the project
> Failed to restore plugin "local-plugin" from config.xml. You might need to 
> try adding it again. Error: Failed to fetch plugin file:src/local-plugin 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
> {code}



--
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-13768) cordova-fetch is unable to install from url or file system using package.json

2019-02-15 Thread Jon Rista (JIRA)


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

Jon Rista commented on CB-13768:


Any idea what the timeframe to a final release on Cordova 9 is? Is there any 
way to patch Cordova-Fetch 1.x sooner? 

> cordova-fetch is unable to install from url or file system using package.json
> -
>
> Key: CB-13768
> URL: https://issues.apache.org/jira/browse/CB-13768
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: cordova-fetch
>Reporter: Andrew Crites
>Priority: Critical
>
> This is a big issue in cordova@8 since you can't opt out of cordova-fetch. 
> Using a url such as `github.com` or the file system for a plugin doesn't work 
> with package.json. It still works using config.xml:
> {code}
>  spec="https://github.com/user/cordova-plugin-repo#specific-branch; />
> 
> {code}
> This works when running {{cordova platform add}}. However, if you do not use 
> {{--nosave}} this will update package.json dependencies:
> {code}
> "cordova-plugin-repo": 
> "git+https://github.com/user/cordova-plugin-repo#branch;,
> "local-plugin": "file:src/local-plugin",
> {code}
> If you try to install with package.json like this, you'll get errors for 
> these packages:
> {code}
> Failed to restore plugin "cordova-plugin-repo" from config.xml. You might 
> need to try adding it again. Error: Failed to fetch plugin 
> https://github.com/user/cordova-plugin-repo#branch via registry.
> Probably this is either a connection problem, or plugin spec is incorrect.
>   
>Check your connection and plugin 
> name/version/URL.
> TypeError [ERR_INVALID_ARG_TYPE]: The "url" argument must be of type string. 
> Received type undefined
> Discovered plugin "local-plugin" in config.xml. Adding it to the project
> Failed to restore plugin "local-plugin" from config.xml. You might need to 
> try adding it again. Error: Failed to fetch plugin file:src/local-plugin 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
> {code}



--
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-13768) cordova-fetch is unable to install from url or file system using package.json

2019-02-15 Thread Raphael (JIRA)


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

Raphael commented on CB-13768:
--

This issue is resolved in cordova-fetch@2. The fixed version will be contained 
in cordova-cli@9 which is in the (arduous and lengthy) process of being 
released. You can track the progress of the release here: 
https://github.com/apache/cordova/issues/10

> cordova-fetch is unable to install from url or file system using package.json
> -
>
> Key: CB-13768
> URL: https://issues.apache.org/jira/browse/CB-13768
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: cordova-fetch
>Reporter: Andrew Crites
>Priority: Critical
>
> This is a big issue in cordova@8 since you can't opt out of cordova-fetch. 
> Using a url such as `github.com` or the file system for a plugin doesn't work 
> with package.json. It still works using config.xml:
> {code}
>  spec="https://github.com/user/cordova-plugin-repo#specific-branch; />
> 
> {code}
> This works when running {{cordova platform add}}. However, if you do not use 
> {{--nosave}} this will update package.json dependencies:
> {code}
> "cordova-plugin-repo": 
> "git+https://github.com/user/cordova-plugin-repo#branch;,
> "local-plugin": "file:src/local-plugin",
> {code}
> If you try to install with package.json like this, you'll get errors for 
> these packages:
> {code}
> Failed to restore plugin "cordova-plugin-repo" from config.xml. You might 
> need to try adding it again. Error: Failed to fetch plugin 
> https://github.com/user/cordova-plugin-repo#branch via registry.
> Probably this is either a connection problem, or plugin spec is incorrect.
>   
>Check your connection and plugin 
> name/version/URL.
> TypeError [ERR_INVALID_ARG_TYPE]: The "url" argument must be of type string. 
> Received type undefined
> Discovered plugin "local-plugin" in config.xml. Adding it to the project
> Failed to restore plugin "local-plugin" from config.xml. You might need to 
> try adding it again. Error: Failed to fetch plugin file:src/local-plugin 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
> {code}



--
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-13768) cordova-fetch is unable to install from url or file system using package.json

2019-02-14 Thread Jon Rista (JIRA)


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

Jon Rista commented on CB-13768:


I've been in the process of updating one of our projects to the latest cordova 
(and ionic). The last time I tried to do that with this app, I ran in to this 
issue. I see it has been marked as resolved, however, it does not appear to be 
so, at least not fully. If I manually install a plugin from the command line, 
with a git+https path, that WILL work. The problem I am now facing is, when I 
prepare the ionic/cordova app on our CI build server, cordova-fetch still seems 
to have a problem restoring the plugin:

 

```Discovered plugin "cordova-plugin-local-notification" in config.xml. Adding 
it to the project
Failed to restore plugin "cordova-plugin-local-notification" from config.xml. 
You might need to try adding it again. Error: Failed to fetch plugin 
git+https://github.com/Steffaan/cordova-plugin-local-notifications.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```

 

This is just the snippet of the cordova-fetch log for this one plugin that 
failed. Cordova fetch is also excruciatingly slow here...it takes 15 minutes 
for it to install about 15 plugins. It used to take about 6 seconds in the past 
with Cordova 6. We have to pay for every minute of build server time we use, 
and these are MacOS containers which are relatively expensive. So these issues 
around cordova-fetch are not only time consuming but also costly for us. 

Is there any way this issue could be resolved so that cordova-fetch will work 
on a CI server, where it is simply reinstalling the plugins we have configured 
in config.xml? And, if possible, could these installs be made significantly 
faster...seconds to install them all, rather than tens of minutes? 

> cordova-fetch is unable to install from url or file system using package.json
> -
>
> Key: CB-13768
> URL: https://issues.apache.org/jira/browse/CB-13768
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: cordova-fetch
>Reporter: Andrew Crites
>Priority: Critical
>
> This is a big issue in cordova@8 since you can't opt out of cordova-fetch. 
> Using a url such as `github.com` or the file system for a plugin doesn't work 
> with package.json. It still works using config.xml:
> {code}
>  spec="https://github.com/user/cordova-plugin-repo#specific-branch; />
> 
> {code}
> This works when running {{cordova platform add}}. However, if you do not use 
> {{--nosave}} this will update package.json dependencies:
> {code}
> "cordova-plugin-repo": 
> "git+https://github.com/user/cordova-plugin-repo#branch;,
> "local-plugin": "file:src/local-plugin",
> {code}
> If you try to install with package.json like this, you'll get errors for 
> these packages:
> {code}
> Failed to restore plugin "cordova-plugin-repo" from config.xml. You might 
> need to try adding it again. Error: Failed to fetch plugin 
> https://github.com/user/cordova-plugin-repo#branch via registry.
> Probably this is either a connection problem, or plugin spec is incorrect.
>   
>Check your connection and plugin 
> name/version/URL.
> TypeError [ERR_INVALID_ARG_TYPE]: The "url" argument must be of type string. 
> Received type undefined
> Discovered plugin "local-plugin" in config.xml. Adding it to the project
> Failed to restore plugin "local-plugin" from config.xml. You might need to 
> try adding it again. Error: Failed to fetch plugin file:src/local-plugin 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
> {code}



--
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-13768) cordova-fetch is unable to install from url or file system using package.json

2018-03-21 Thread Jon Rista (JIRA)

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

Jon Rista commented on CB-13768:


I have experienced this issue as well. This is also for a package we do not 
directly depend on, but which appears to be a dependency of one of our direct 
dependencies (so we cannot remove it, and we have no control over where it 
comes from):

 

```→ cordova plugin add 
git+https://github.com/guyromb/Cordova-open-native-settings.git
Error: Failed to fetch plugin 
git+https://github.com/guyromb/Cordova-open-native-settings.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```

 

This has left us dead in the water for our android builds. 

> cordova-fetch is unable to install from url or file system using package.json
> -
>
> Key: CB-13768
> URL: https://issues.apache.org/jira/browse/CB-13768
> Project: Apache Cordova
>  Issue Type: Bug
>Reporter: Andrew Crites
>Priority: Critical
>
> This is a big issue in cordova@8 since you can't opt out of cordova-fetch. 
> Using a url such as `github.com` or the file system for a plugin doesn't work 
> with package.json. It still works using config.xml:
> {code}
>  spec="https://github.com/user/cordova-plugin-repo#specific-branch; />
> 
> {code}
> This works when running {{cordova platform add}}. However, if you do not use 
> {{--nosave}} this will update package.json dependencies:
> {code}
> "cordova-plugin-repo": 
> "git+https://github.com/user/cordova-plugin-repo#branch;,
> "local-plugin": "file:src/local-plugin",
> {code}
> If you try to install with package.json like this, you'll get errors for 
> these packages:
> {code}
> Failed to restore plugin "cordova-plugin-repo" from config.xml. You might 
> need to try adding it again. Error: Failed to fetch plugin 
> https://github.com/user/cordova-plugin-repo#branch via registry.
> Probably this is either a connection problem, or plugin spec is incorrect.
>   
>Check your connection and plugin 
> name/version/URL.
> TypeError [ERR_INVALID_ARG_TYPE]: The "url" argument must be of type string. 
> Received type undefined
> Discovered plugin "local-plugin" in config.xml. Adding it to the project
> Failed to restore plugin "local-plugin" from config.xml. You might need to 
> try adding it again. Error: Failed to fetch plugin file:src/local-plugin 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
> {code}



--
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