-
Notifications
You must be signed in to change notification settings - Fork 144
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
Ability to clear current launch configurations #507
Comments
I agree this is a problem, and an awfully subtle one.
Your proposal is straightforward. A Would you be willing to take a stab at it @djchopp? |
@hidmic Sure, I'll see what I can do. |
Friendly ping @djchopp. |
@hidmic I have an implementation for
As you suggested, the default for now is I am still working out how the |
In principle it sounds great (though I will say that Thanks for pushing @djchopp ! |
Feature request
Feature description
Somewhat related to #313 #501
Consider the following launch file setup:
arg1
with default ofbase_arg
arg1
(same name, different purpose) with default ofext_arg
and is included in the base launch fileUpon running the base launch file,
arg1
within the included launch file will not have its default value ofext_arg
, but rather it will bebase_arg
.By default there is no scoping and the base value of
arg1
will be passed on to the included launch file (overwriting the default). Surrounding the included launch file withPushLaunchConfigurations()
andPopLaunchConfigurations()
will not change this as these do not clear configurations, but only scope modifications to the existing context. Same goes for putting the incude in aGroupAction
. One could push andUnsetLaunchConfiguration('arg_name')
for each configuration they do not want, but this is tedious for included launch files with large numbers of configurations.I would suggest a
ClearContextConfiguration
action that can be called after aPushLaunchConfigurations()
, or as the first action in aGroupAction
. Extremely simple implementation below, but could be expanded to have whitelist and blacklist functionality.Is this feature wanted/inline with recommended design patterns? Is there another way to accomplish this without a new addition?
Its simple enough I could probably do the PR for it.
The text was updated successfully, but these errors were encountered: