cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-8532) Adding Windows Plugin Failed with "Cannot read property 'text' of null"
Date Wed, 19 Aug 2015 23:01:45 GMT

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

ASF subversion and git services commented on CB-8532:
-----------------------------------------------------

Commit 4fad20d1531e13a24d1f6b3565ea7ef4765e3287 in cordova-lib's branch refs/heads/master
from daserge
[ https://git-wip-us.apache.org/repos/asf?p=cordova-lib.git;h=4fad20d ]

CB-8532 Adding Windows Plugin Failed with "Cannot read property 'text' of null"
Updated elementtree API according 0.1.6 release. This closes #277


> Adding Windows Plugin Failed with "Cannot read property 'text' of null"
> -----------------------------------------------------------------------
>
>                 Key: CB-8532
>                 URL: https://issues.apache.org/jira/browse/CB-8532
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CordovaLib
>         Environment: Windows 8.1
> VisualStudio 2013
> cordova 4.2.0
> cordova windows platform 3.8.0
> npm 1.4.28
> node v0.10.35
>            Reporter: Ingo Bruell
>              Labels: patch
>   Original Estimate: 0.5h
>  Remaining Estimate: 0.5h
>
> I created a plugin which references a VisualStudio project file in the plugin.xml via
<framework src .../>.
> If I add the plugin I get the trace:
> {quote}
> $ cordova plugins add ../enCordovaDeviceLocatorPlugin/
> Installing "de.enexoma.cordova.plugin.devicelocator" for windows
> Error during processing of action! Attempting to revert...
> Failed to install 'de.enexoma.cordova.plugin.devicelocator':TypeError: Uh oh!
> Cannot read property 'text' of null
>     at Object.jsproj.addProjectReference (c:\Users\ibruell\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\util\windows\jsproj.js:185:74)
>     at module.exports.framework.install (c:\Users\ibruell\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\plugman\platforms\windows.js:116:30)
>     at Object.ActionStack.process (c:\Users\ibruell\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\plugman\util\action-stack.js:72:25)
>     at handleInstall (c:\Users\ibruell\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\plugman\install.js:591:20)
>     at c:\Users\ibruell\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\plugman\install.js:340:28
>     at _fulfilled (c:\Users\ibruell\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:787:54)
>     at self.promiseDispatch.done (c:\Users\ibruell\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:816:30)
>     at Promise.promise.promiseDispatch (c:\Users\ibruell\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:749:13)
>     at c:\Users\ibruell\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:509:49
>     at flush (c:\Users\ibruell\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:108:17)
> TypeError: Uh oh!
> Cannot read property 'text' of null
>     at Object.jsproj.addProjectReference (c:\Users\ibruell\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\util\windows\jsproj.js:185:74)
>     at module.exports.framework.install (c:\Users\ibruell\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\plugman\platforms\windows.js:116:30)
>     at Object.ActionStack.process (c:\Users\ibruell\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\plugman\util\action-stack.js:72:25)
>     at handleInstall (c:\Users\ibruell\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\plugman\install.js:591:20)
>     at c:\Users\ibruell\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\plugman\install.js:340:28
>     at _fulfilled (c:\Users\ibruell\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:787:54)
>     at self.promiseDispatch.done (c:\Users\ibruell\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:816:30)
>     at Promise.promise.promiseDispatch (c:\Users\ibruell\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:749:13)
>     at c:\Users\ibruell\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:509:49
>     at flush (c:\Users\ibruell\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:108:17)
> {quote}
> The script "node_modules\cordova\node_modules\cordova-lib\src\util\windows\jsproj.js"
tries to find a Node "PropertyGroup/ProjectName" which does not exists in my project. I changed
the script to search "PropertyGroup/AssemblyName" which works.
> I do not know much about the VisualStudio project files. Maybe both elements should be
searched.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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


Mime
View raw message