Skip to content
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

Setup instructions for development lead to error #2206

Closed
gpoole opened this issue Nov 17, 2021 · 1 comment · Fixed by #2427
Closed

Setup instructions for development lead to error #2206

gpoole opened this issue Nov 17, 2021 · 1 comment · Fixed by #2427
Assignees
Labels
bug Something is broken! Needs: Documentation Needs documentation on support.mozilla.org
Milestone

Comments

@gpoole
Copy link

gpoole commented Nov 17, 2021

Following the instructions currently in the README under "Running Locally" leads to an error when trying to install the extension. The following error is seen after following both methods (about:debugging and web-ext):

There was an error during the temporary add-on installation.
Error details

Extension is invalid

Loading locale file _locales/.github/messages.json: Error: Error while loading 'file:///path/to/multi-account-containers/src/_locales/.github/messages.json' (NS_ERROR_FILE_NOT_FOUND)

Removing _locales/.github fixes the problem.

@D-side
Copy link

D-side commented Feb 12, 2022

Just encountered the same problem, came up with the same solution.
Was helpful to know it's a valid option since I didn't exactly know what I was doing 🙂

There doesn't seem to be an easy way out of this one:

  • GitHub Actions, which the locale submodule relies on, is configured through .github folder at the root of the repository
  • Moving the locales into the subfolder of the module is not an option because (1) there's no way to specify an arbitrary directory with locales, (2) there's no way to use a subfolder of a repository as a submodule
  • I'm not considering symlinks due to limited platform compatibility

That said, I can think of a couple solutions:

  • Making Firefox ignore folder names in _locales of an extension that don't look like language codes
  • Deleting src/_locales/.github as part of the setup instructions, it feels kinda dumb to me, but probably the easiest 🙃

@dannycolin dannycolin self-assigned this Jun 10, 2022
@dannycolin dannycolin linked a pull request Dec 8, 2022 that will close this issue
@dannycolin dannycolin added this to the 8.2 milestone Dec 27, 2022
@dannycolin dannycolin added bug Something is broken! Needs: Documentation Needs documentation on support.mozilla.org labels Jan 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is broken! Needs: Documentation Needs documentation on support.mozilla.org
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants