-
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
Allow mutilple sources for "web-ext run --source-dir=..." #1107
Comments
Hi. I think this will be possible after #830 although that patch was meant more for web extension experiments. It will definitely allow you to install multiple extensions at once though. @rpl is working on that patch but I think he has Android support in the queue for completion first. |
It sounds good! I close this and I'm waiting for the feature. Thanks! |
Actually, I think it would be good to keep this issue open just to make sure this use case is covered. The use case in #830 is for experiments which is a bit of a different case. |
#830 was closed without merging, so the |
I need also need this feature. How do you get by in the meantime? Use case: Selenium IDE is a Firefox extension to register user activity on a page and replay it. It allows plugins which are Firefox extensions themselves. Selenium IDE is a work in progress and while trying developing its own plugin one may want trying implementing new features in Selenium IDE itself. So one may wish to be able to load and debug both extensions at the same time. |
Just as a workaround I'm using a forked version of web-ext. I think it may helps you: https://github.com/piroor/web-ext/wiki/Installation |
Hello,
I'm trying it right away.
Thank you very much,
Carlo.
Il ven 17 gen 2020, 14:22 piroor <notifications@github.com> ha scritto:
… Just as a workaround I'm using a forked version of web-ext. I think it may
helps you: https://github.com/piroor/web-ext/wiki/Installation
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1107?email_source=notifications&email_token=AAMSYF45D2PTRES3CKMXPLTQ6GWKPA5CNFSM4D7FK54KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJHVEEY#issuecomment-575623699>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAMSYF2PBMEOXPNYCSATYGDQ6GWKPANCNFSM4D7FK54A>
.
|
Are there any plans to bring this feature upstream? |
@rpl I would love to take on this issue on your suggestion over at matrix channel. Do you any pointers on where to get started with this? |
@ankushduacodes Sure thing! Follows some initial pointers (there may be more to say, but let's leave additional details to after you started to think about it based on the initial details and you may get some more specific questions and/or a draft pull request):
Let me know if you have more question and/or doubts once you got a chance to look into this initial pointers and think about them a bit. |
Hi @rpl, First and foremost, My apologies for sitting on this issue for too long. In the middle of online exams and now online classes and classwork, I just couldn't squeeze some time out. I hope you will understand :). That being said, I have finally gone through the initial pointers and recommended code, and it makes sense so far. And I have made a draft #2225 to track progress on this issue I have also noticed that when we create the watcher here we are making Confusion(s):
Question: Please let me know If I may have missed some important details related to this issue. |
@ankushduacodes Sure thing, I'm always super happy to see you working on bugs and enhancement to the projects that I work on, and you are a very reliable contributor, but you should also feel absolutely free to pause your contribution whenever you need to and then come back when possible again.
We do have one extension runner per target, and a MultiExtensionTarget that wraps multiple per-target extension runner into a class instance that provide the same interface of the per-target extension runner. If you look to the flow type defined here: web-ext/src/extension-runners/base.js Lines 8 to 40 in 8bd0d13
you'll notice that every per-target extension runner:
My rough idea would be that:
Ideally we may be able to just call on the MultiExtensionTarget instance the
eh, first of all, in my comment there was a typo: I admit that my comment could have been clearer :-P, I could have phrased that in a way simpler way, let me try:
in other words: "if a developer has a config file where sourceDir is a string, then our changes to the option type may likely make that file to not be loaded successfully anymore, and we may have to special case it by converting the string value into an array of strings when we load the file and log a warning"
I know that feeling, when every developer tools in the project (eslint, flow, unit tests etc) are all yelling at you at the same time and there is no direction to take that would "please" all of them at the same time. I can assure you that, while you grow your experience, you will manage to figure out how to focus your attention on a subset of those tools and errors when you need to (which one to focus on chosen with actual reasons, I'll try to explain that below in a bit more detail), and then go back to ensure that "they are all happy again" as one of the final steps. let me try to describe my approach in words:
in other words, "not all the failures you get during this phase are equally important", some could actually be useful to inform you about details that may not work out as you were planning (you want to possibly spot these ones and use those hints to tweak the design), and others may just let you know that there will be more work to make the build green again (and don't need to be handled until you got the design right and you are ready to finalize the patch). To go a bit more into the concrete kind of failures you may get:
Obviously consider all above as my personal preference (actually, it is more like "me trying to describe my personal preferences for dealing with that phase where everything breaks even before I got enough changes to call it a patch" ;-)) and it is not an exact sequence of what every developers should be doing, you'll develop your own personal preferences, just take inspiration from what I described above to bootstrap your own, then you will have to keep tweaking your personal preferences based on your experience. I hope the above list may contain some useful pointers to unblock you on this, but also feel free to reach me on Matrix (as I think that a chat may be a better fit for discussing further about this) and I'll be happy to discuss more about workflows tips and answer any other questions you may have. |
Is this a feature request or a bug?
This is a feature request: I need an ability to load multiple temporary addons at a time.
What is the current behavior?
Now I'm developing two addons treestyletab and multipletab. The treestyletab provides some APIs for other addons, and multipletab provides some features based on these APIs. Because both addons are still in development, APIs are not stable and I have to edit both addons when I find some problems around APIs.
Web-ext now allows me to start Firefox with just a specific in-development addon as a temporary addon, however I need to load two (or more) addons in this case. Such a usage seems impossible for now.
What is the expected or desired behavior?
web-ext
should accept multiple source dirs, like:web-ext run --source-dir=PathToAddonA,PathToAddonB,...
or
web-ext run --source-dir=PathToAddonA --source-dir=PathToAddonB ...
The text was updated successfully, but these errors were encountered: