-
Notifications
You must be signed in to change notification settings - Fork 343
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
Changed --firefox-binary to --firefox #439
Conversation
I noticed that this includes some of your previous changes to the lint tasks but those have already been merged to master. There are a couple ways to fix this. I think the easiest is to pull from the mozilla repo (so you have the latest changes), merge master into your work branch ( |
As you mentioned, the errors are probably due to a variable name that didn't get changed somewhere. I can't spot it by looking at the diff. To solve a problem like this I'd suggest trying to start over and introduce a smaller change, one that does not touch so many functions. One way to do that is to alias export default function run(
{
sourceDir, artifactsDir, firefox, firefoxProfile,
...
}: CmdRunParams,
{
firefoxApp=defaultFirefox,
...
}: CmdRunOptions = {}): Promise<Object> {
// With this declaration the code should function as it did before.
const firefoxBinary = firefox;
} You will need to do undo your changes first. You could use git revert or make a new pull request if that's easier. |
@@ -34,7 +34,7 @@ module.exports = function(grunt) { | |||
grunt.registerTask('test', [ | |||
'build-tests', | |||
'mochaTest', | |||
'lint', | |||
'eslint', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this patch is still lingering because it was removed at the end of your work done on #434 You can manually fix it just by editing this line back to the way it is on master.
Alright, I'll try doing that & make a new PR. Closing this one. |
This is surprising, but I made the required changes to |
You would definitely need to change the old |
Also, another way to minimize your changes to make it easier to see what's going on would be to alias both variables. Example: export default function run(
{
sourceDir, artifactsDir, firefox, firefoxProfile,
...
}: CmdRunParams,
{
firefoxApp=defaultFirefox,
...
}: CmdRunOptions = {}): Promise<Object> {
// With this declaration the code should function as it did before.
const firefoxBinary = firefox;
firefox = firefoxApp;
// Any code below this should run the same way it did before...
} |
I tried to do this, but it throws a |
Instead of redeclaring it, you could also keep the changes confined to only the export default function run(
{
sourceDir, artifactsDir, firefox, firefoxProfile,
...
}: CmdRunParams,
{
firefoxApp=defaultFirefox,
...
}: CmdRunOptions = {}): Promise<Object> {
return getValidatedManifest(sourceDir)
.then((manifestData) => {
return new ExtensionRunner({
...
// This would make the code work like it did before.
firefox: firefoxApp,
firefoxBinary: firefox,
...
});
}).then(...);
} |
Even this doesn't work. Even the slightest change to the |
Fixes #116