Closed jugarin-golf closed 8 years ago
This is a copy of the answer on the forum: https://mxforum.mendix.com/questions/8983/Adobe-Brackets--fail-to-create-new-widget#13406
The author, license, package name, and name should only contain a-z and A-Z characters. The copyright should only contain a-z , A-Z and 0-9 characters. The version should only contain 0-9 and / or a . characters. The location should only contain a valid directory path.
- If this doesn't help, please provide a log so we can see where the problem occurs:
- Go to Debug > Show Developer Tools
- In the Developer Tools, open the Console and leave that open
- Now create the widget using the MX Plugin
- If it fails or stalls at 25%, please check the console and see if there any errors. The brackets plugin should provide output on the console, starting with:
MendixGitHubManager.js:xxx nameOfWidget: PackageName - directoryOfWidget:
or
[node-log xx:xx:xx]
Please provide that log so we can see where it fails
Hi JelteMx, I've followed your instruction and I've got this log;
MendixGitHubManager.js:180 nameOfWidget: MyFirstWidget - directoryOfWidget: D:/Projects/Mendix/MyFirstPackage
MendixGitHubManager.js:240 [mendix.wdpforbrackets-github-getUserRepos]
MendixGitHubManager.js:237 [mendix.wdpforbrackets-github-getUser] failed to run GitHub.getUser - Object {}
MendixGitHubManager.js:237 (anonymous function)
thirdparty.min.js:556 j
thirdparty.min.js:556 k.fireWith
/utils/NodeConnection.js:498 NodeConnection._receive
Alright, I have checked this error and this seems to do with the Github API. In your response I don't see an error, but I have reproduced this:
[mendix.wdpforbrackets-github-getUser] failed to run GitHub.getUser -
Object {message: "API rate limit exceeded for xxx.xxx.xxx.xxx. (But her…t. Check out the documentation for more details.)", statusCode: 403, headers: Object}headers: Objectmessage: "API rate limit exceeded for xxx.xxx.xxx.xxx. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)"statusCode: 403
I'll have to check the code to see what we can do about this. From what I see it checks the mendix
user and then the repository of the Boilerplate to get the latest version...
Here's the documentation on Rate limits: https://developer.github.com/v3/#rate-limiting
Unauthenticated requests are associated with your IP address, and not the user making requests.
So either we implement a Github authentication or circumvent the user lookup part.
Thank you for your response, JetleMX.
No problem @jugarin-golf, I'll see what I can do. We will try to implement an access token in the plugin, that would solve the rate limit problem. I hope to update it soon.
In the meantime, are you able to use the Boilerplate itself? If you clone the boilerplate and change the values yourself (name, version, etc), you can point the brackets plugin to the src
folder, that will make it work as well
Yes, thanks. I will try as your suggestion. @JelteMX
Hi there, I'm Jugarin. I tried to do step by step creating my first widget for Mendix but I've got problem after I provided the widget information (Author, License, etc.) and click OK button.The progress bar has been shown with 25% and struck with it. How can I fix it?
Thank you.