-
Notifications
You must be signed in to change notification settings - Fork 339
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
TypeError: Cannot read property 'split' of undefined in Ubuntu #2826
Comments
According to firefox-profile author, the issue might be that web-ext doesn't manage correctly the |
Hi @Sharcoux thanks for investigating this issue, would you be able to attach the full error stack? (eventually passing --verbose to the web-ext command if without it the error stack is omitted). Don't worry if you are unable to, we will try to reproduce it locally and get the full error stack so that we can dig deeper into this issue. |
Sure:
|
The error is in firefox-profile: https://github.com/saadtazi/firefox-profile-js/blob/932b40ea8758f22b938af653709767e50a26b98d/lib/profile_finder.js#L55-L57 When reading the file fails (e.g. due to it not existing), supposedly a callback should be called with the error. At line 56, the logic should not only invoke the callback with the error, but also return. Not returning results in the next line trying to parse non-existing content, which results in the error seen above. |
@Rob--W I just published firefox-profile v4.4.0 that fixes the issue above. I hope this helps. |
fixed by #2897 |
Thanks for the update! |
Is this a feature request or a bug?
Bug
What is the current behavior?
In Ubuntu, run
web-ext run -p <any profile>
. It should fail.What is the expected or desired behavior?
Should run
Version information (for bug reports)
I opened an issue in firefox-profile-js this lib is depending upon that might be the culprit.
The text was updated successfully, but these errors were encountered: