New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Errors installing Theseus on Brackets (sprint 38) #58
Comments
They do seem suspect! Unfortunately, I can't reproduce this with the same version of Brackets on OS X. I'll see if I can't find a computer with Windows. |
@peterflynn and I tried on Windows and neither of us got an error. I tried on Windows 7. Which version of Windows are you using? What kind of generic error do you see? Are you installing from the Extension Manager? A ZIP file downloaded from the extension registry? GitHub? (It won't work from GitHub, but the other two should work.) Have you installed Brackets from source? If so, perhaps your submodules are way out of date? (It might be that an old requirejs is misinterpreting the "text!" prefix for HTML files.) |
Thank you both for taking a look at this! With Brackets from the Sprint 38 .msi, I am installing Theseus from the package manager, which brings up the modal dialog while it downloads the extension: I see this generic error after installing in the lab: I was able to successfully install Theseus at home; maybe in the lab the user profile (%APPDATA%) being on a Windows File Share instead of locally causes a problem?.. but that would be strange since the files seem to be copied over okay (%APPDATA%/Brackets/extensions/user/theseus/). Do I need administrative permissions in order to install extensions? |
How proficient are you at debugging JavaScript? Would you be able to:
(assuming those aren't the same thing; maybe they are) If not, I'll ping brackets-dev and see if anyone else has the means to reproduce your setup. |
@yelper You might also try disabling all your other extensions to see if any of them are causing a problem. It sure does sound like something is wrong with the RequireJS "text" plugin -- it basically appears to be getting ignored. Why that would be (and how it could happen without breaking the stuff in core that depends on it) is a mystery, though... |
I'm not running any other extensions, unfortunately. It seems to be a bug in RequireJS; in require.js (line 1612): url += (ext || (/\?/.test(url) || skipExt ? '' : '.js')); where it tries to convert a named resource to a URL, and a .js suffix is added to those files loaded as text (e.g. var dialogHTML = require("text!./Invitation.html?junk"); ... but it didn't seem to help. |
@yelper I don't think it should even be getting into |
I'm getting a little out of my element here, but I think I found the source of the error. Since the resources are being loaded from a different server (user profile directory is on external server), the second fork of text.js (in I'm not immediately clear what the next steps or how to solve this bug are. It doesn't seem to be an issue with this project anymore. :) Who owns The fetching of the following files (all called originally with
Thanks for bearing through this! I appreciate it. |
@yelper What values are you seeing to the arguments of |
There's probably a problem with the regular expression doing the matching (not being Windows-aware). However, both protocol and hostname have mis-matches in the return from
|
Great sleuthing! I recommend opening an issue on RequireJS and pointing them here. :) |
@yelper Have you been able to find a solution for this? I have a few plugins that have the same issue, and I also have a network path for my AppData folder? Same problems as you when installing certain plugins. Thanks, David |
I haven't found an solution yet, but I'm back on the hunt. I'll let you know what happens or feel free to follow! |
Thanks for the heads up! |
Hi there,
I'm having issues installing Theseus for Brackets through the UI. I'm using Brackets (sprint 38 experimental build 0.38.0-12606 (release 4df8afdad)). The installation prompts a generic error in the Brackets UI, and shows in the extension list as having an 'extension error'.
The Brackets developer log has the following after downloading Theseus and trying to install. I'm new to both projects so I might be missing something simple, but the extra .js extensions seem suspect. The files (sans the .js extensions for the HTML pages) seem to be in the Theseus folder inside the extensions folder.
The text was updated successfully, but these errors were encountered: