Closed akjoshi closed 10 years ago
Try using Help > Show Extensions Folder then install there.
The problem mentioned is reproducible. This extension is working correctly in Sprint 30, but not in Sprint 35. None of the methods (url,zip file or inbuilt extension installer) work.
@peey What happens when you place the zip file in the extensions/user
folder manually? When you restart Brackets, does the PhoneGap icon appear in the right-hand toolbar?
If not, could you go to Help > Show Developer Tools, then select the Console view, and reply back with any errors that are listed there?
@peey Also, when you download and install the ZIP manually, make sure:
Oh, figured it out: this broke because of the minification. The extension is doing things like require("widgets/bootstrap-alerts.js")
to load modules directly out of the Brackets source tree, without going through brackets.getModule()
. Apparently this works when the full src structure is present (earlier sprints, or in a dev environment). (I have no idea why it would work, though. I thought extensions run in a Require context where the Require root is set to the root of the extension... it seems to be falling back to the Brackets core root in this case. Aside: @dangoor does that make any sense to you?).
Anyway, it definitely doesn't work in the new world where src is minified... and it wasn't supposed to work before, either :-)
@tpryan Do you have any cycles to look at this? I think you may need to ship a copy of these modules in the PG plugin itself. Because the modules you need aren't used by Brackets core at all, I think they're going to be totally absent from the minified builds.
@peterflynn Yeah, the extension loading configuration sets the baseUrl to the extension. It doesn't seem like it should be somehow finding something elsewhere in the Brackets source tree.
Thanks everyone for investigating further on this issue. Just wondering if there's any fix or workarounds.
I forked it, grabbed the JS files from Bootstrap (my assumption based on the age of this extension was that I should use 2.X) and it now loads w/o error. I haven't tried actually using it (outside of opening the panel), but it loads.
Has this been fixed yet?
I think so - did you check the Extension Manager?
No, the Extension Manager still has version 0.1.0 since the person that posted the extension has not updated the Registry. We are working on implementing an admin panel, so it shouldn't be much longer, but you'll still need to manually install this extensions for now.
It's working now, if I install manually (from github url)
Fixed. Closing.
I cannot get this installed in Brackets - tried both options -a) Install from URL b) downloaded a zip file and placed in www/extensions/user/ directory.