mendix / WDPForBrackets

Widget Development Plugin for Brackets
3 stars 9 forks source link

We could not clone the AppStoreBoilerPlate.cleanup #19

Closed JelleDekker closed 8 years ago

JelleDekker commented 8 years ago

I'm trying to create a new widget using Brackets, but every time it fails with the same error.

image

Log:

MendixGitHubManager.js:146 []
MendixGitHubManager.js:180 nameOfWidget: TestWidget - directoryOfWidget: D:/
MendixGitHubManager.js:240 [mendix.wdpforbrackets-github-getUserRepos]
MendixGitHubManager.js:202 [mendix.wdpforbrackets-github-repourl]AppStoreWidgetBoilerplate-v2_11_0.zip
MendixGitHubManager.js:203 [mendix.wdpforbrackets-github-repourl]https://api.github.com/repos/mendix/AppStoreWidgetBoilerplate/releases/assets/1019038
MendixGitHubManager.js:204 [mendix.wdpforbrackets-github-_nameOfWidget]TestWidget
MendixGitHubManager.js:205 [mendix.wdpforbrackets-github-_authorName]A
MendixGitHubManager.js:206 [mendix.wdpforbrackets-github-_versionNumber]1
MendixGitHubManager.js:207 [mendix.wdpforbrackets-github-_copyrightName]A
MendixGitHubManager.js:208 [mendix.wdpforbrackets-github-_licenseName]A
MendixGitHubManager.js:209 [mendix.wdpforbrackets-github-_packageOfWidget]Test
NodeDebugUtils.js:117 [node-log 1:37:19 PM] ExternalIO - download url: https://api.github.com/repos/mendix/AppStoreWidgetBoilerplate/releases/assets/1019038
NodeDebugUtils.js:117 [node-log 1:37:19 PM] ExternalIO - save to local: D:/
NodeDebugUtils.js:117 [node-log 1:37:19 PM] ExternalIO - file: AppStoreWidgetBoilerplate-v2_11_0.zip
NodeDebugUtils.js:117 [node-log 1:37:19 PM] ExternalIO - try file exists: AppStoreWidgetBoilerplate-v2_11_0.zip
NodeDebugUtils.js:117 [node-log 1:37:19 PM] ExternalIO - file does not exists: AppStoreWidgetBoilerplate-v2_11_0.zip
NodeDebugUtils.js:117 [node-log 1:37:19 PM] ExternalIO - try to download to new file stream: https://api.github.com/repos/mendix/AppStoreWidgetBoilerplate/releases/assets/1019038 - AppStoreWidgetBoilerplate-v2_11_0.zip
NodeDebugUtils.js:117 [node-log 1:37:19 PM] ExternalIO - options - {"uri":"https://api.github.com/repos/mendix/AppStoreWidgetBoilerplate/releases/assets/1019038","method":"GET","headers":{"User-Agent":"Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36","accept":"application/octet-stream"},"followRedirect":true,"gzip":true}
NodeDebugUtils.js:117 [node-log 1:37:19 PM] ExternalIO - started downloading - D://Test//AppStoreWidgetBoilerplate-v2_11_0.zip
NodeDebugUtils.js:117 [node-log 1:37:22 PM] ExternalIO - file - D://Test//AppStoreWidgetBoilerplate-v2_11_0.zip - was downloaded!
NodeDebugUtils.js:117 [node-log 1:37:22 PM] ExternalIO - file unlinked - D://Test//AppStoreWidgetBoilerplate-v2_11_0.zip
NodeDebugUtils.js:117 [node-log 1:37:22 PM] ExternalIO - unpacked file - D://Test/
NodeDebugUtils.js:117 [node-log 1:37:22 PM] ExternalIO - rename - D://Test//src/WidgetName/ - to - D://Test//src/TestWidget/
NodeDebugUtils.js:114 [node-error 1:37:22 PM] [Launcher] uncaught exception at top level, exiting. Error: ENOENT, rename 'D:\Test\src\PackageName'NodeDebugUtils.js:114 handleLogEvent/utils/EventDispatcher.js:222 trigger/utils/EventDispatcher.js:260 triggerWithArray/utils/NodeConnection.js:479 NodeConnection._receive
NodeDebugUtils.js:114 [node-info 1:37:22 PM] [Server] stopping
/filesystem/FileSystem.js:959 File watchers went offline!
MendixGitHubManager.js:233 [mendix.wdpforbrackets-github] oh no.. cleanup
11/utils/NodeConnection.js:89 WebSocket connection to 'ws://localhost:54473/' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED
JelteMX commented 8 years ago

ENOENT means Error NO ENTtry, basically it's a filesystem problem.

The boilerplate is cloned, but you have no rights from brackets to rename folders. Could you try to run Brackets as an Administrator (Start Menu --> Rightclick on Brackets and select Run as Administrator) and see if the problem remains?

JelleDekker commented 8 years ago

Problem remains when I run as admin.

JelteMX commented 8 years ago

Checked it, got the same issue now. Will look into it.

JelteMX commented 8 years ago

This should be fixed now, there was a problem with the zip-file in the latest release of the AppStoreWidgetBoilerplate. Could you try it again?

JelleDekker commented 8 years ago

It's working now. Thanks!