ionic-brackets icon indicating copy to clipboard operation
ionic-brackets copied to clipboard

Error installing Extension - marked.js not found

Open nileshlg2003 opened this issue 9 years ago • 4 comments

I am trying to install ionic framework extension to my brackets, but Installation failed and error is something to do with marked.js file not found.

Here is the error shown in Developer tools,

Failed to load resource: net::ERR_FILE_NOT_FOUND file:///C:/Users/AppData/Roaming/Brackets/extensions/user/ionic-brackets/lib/marked.js Failed to load resource: net::ERR_FILE_NOT_FOUND

nileshlg2003 avatar Mar 14 '15 08:03 nileshlg2003

What version of brackets are you using? The installation worked for me in 1.1 and 1.2.

You can try to download the extension zip file and install by dragging the zip to the extension manager window.

If it's still not working, try to unzip that file to the extensions folder and reload brackets (make sure that ionic-brackets folder is in the extensions folder).

ozsay avatar Mar 14 '15 10:03 ozsay

I am using Bracket 1.2,

Release 1.2 build 1.2.0-15697 (release 8f82e2a97) build timestamp: Sun Feb 22 2015 22:34:56 GMT-0800

And I tried both the methods you mentioned, there is still error displayed in for this extension in Bracket's extension manager. However I do see Iconic menu in Bracket's menu-bar, it doesn't seem to work. Here is the error from developer tools,

[node-error 2:55:57 PM] /ims/check/v1/token?client_id=bracketsextract1&scope=AdobeID%2Copenid%2Ccreative_cloud%2Ccreative_sdk&locale=en-GB&redirect_uri=brackets-auth%3A%2F%2Fredirectims.html%23from_ims%3Dtrue%26old_hash%3D%26api%3Dcheck%252Ftoken&callback=jQuery213007260120892897248_1426330553603&e4b-target-domain=https%3A%2F%2Fadobeid-na1.services.adobe.com&_=1426330553604 - Error from EventEmitter3.emit(): Error: getaddrinfo ENOTFOUND /ims/adobeid.js:118 A network error has occurred. Are you connected to the internet? /project/ProjectModel.js:1166 Unexpected error refreshing file tree for directory C:/Sites/projects/tmp/ionic-app-base-master/: NotFound undefined

nileshlg2003 avatar Mar 14 '15 10:03 nileshlg2003

Are you still getting the 'marked.js not found' error? Does the file actually exist in that folder?

The last log output seems to have a few errors that some are not related to the extension.

If clicking the ionic menu doesn't open the menu (and you didn't click any of the commands in the menu), then probably the extension had trouble detecting if the project is an ionic project. I found out (by looking at the code) that If brackets throws error when the extension tests for the existence of the www folder, then brackets will show the menu, but no commands will be added.

From what I can tell, only 'C:/Sites/projects/tmp/ionic-app-base-master/: NotFound undefined' can be related to the extension and it caused sometimes by ionic-cli start command changing the project files outside of brackets. The brackets file watcher sometimes detects those changes and report this error.

ozsay avatar Mar 14 '15 12:03 ozsay

Its working now, I created ionic project from command prompt, now I can use Ionic Menu from Brackets pretty well. Thanks.

nileshlg2003 avatar Mar 15 '15 07:03 nileshlg2003