[
https://issues.apache.org/jira/browse/CB-12453?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16082050#comment-16082050
]
ASF GitHub Bot commented on CB-12453:
-------------------------------------
Github user matrosov-nikita commented on the issue:
https://github.com/apache/cordova-android/pull/362
This bug affects user only if project path includes spaces.
Repro steps:
1) Create project in folder with space in name (i.e `C:\my projects\sample`)
2) Run `cordova run android --list`
On [this
line](https://github.com/apache/cordova-android/blob/master/bin/templates/cordova/lib/list-devices.bat#L21)
`%script_path%` already enclosed with double quotes. When we make additional
enclosing, double quotes in the start and end of the script path are collapsed
(""C:\my projects\sample\platforms\android\cordova\lib\list-devices"") and it
leads to error like this: `Error: Cannot find module 'C:\my'`.
> "cordova run --list" throws error when there's a space in user name
> -------------------------------------------------------------------
>
> Key: CB-12453
> URL: https://issues.apache.org/jira/browse/CB-12453
> Project: Apache Cordova
> Issue Type: Bug
> Components: cordova-cli, cordova-windows
> Affects Versions: 6.4.0, 6.5.0
> Environment: Windows 10 64 bit, cordova version 6.5 (not in list?) CLI
> Reporter: Yousif Touma
> Labels: cli, list-devices, windows10
>
> When trying to list available devices to run on, cordova throws an error if
> the user has a space in user name
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]