-
Notifications
You must be signed in to change notification settings - Fork 383
Fix relative path resolution in group labels (issue #1063) #1186
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
Open
Copilot
wants to merge
5
commits into
master-dev
Choose a base branch
from
copilot/fix-label-path-resolution
base: master-dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
64d554d
Initial plan
Copilot 602232b
Fix relative path resolution in group labels (issue #1063)
Copilot 0d8b214
Address code review feedback - improve documentation and remove debug…
Copilot 0a8f1ca
tests: add complex grouping and relative path normalization tests
sletz fa8ddac
tests: add relative_group_paths_grouped.dsp
sletz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| // Companion test for relative-group-paths.dsp | ||
| // This uses the string literal form that was already working | ||
| // Both tests should produce identical UI structure | ||
|
|
||
| import("stdfaust.lib"); | ||
|
|
||
| // Using explicit path in slider string (already working) | ||
| freq = vslider("../h:FREQ/Freq",200,200,1000,0.01); | ||
|
|
||
| // The freq slider should be shared between V1 and V2 | ||
| process = hgroup("V1", os.osc(freq)), hgroup("V2", os.osc(freq)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| // Regression test for issue #1063: relative paths in group labels | ||
| // https://github.com/grame-cncm/faust/issues/1063 | ||
| // | ||
| // This test verifies that relative path components (.., .) in group labels | ||
| // are resolved correctly against the parent path context. | ||
| // | ||
| // Both forms should produce the same resolved label for the slider: | ||
| // 1. Using explicit path in slider: vslider("../h:FREQ/Freq", ...) | ||
| // 2. Using hgroup with relative path: hgroup("../FREQ", vslider("Freq", ...)) | ||
| // | ||
| // Expected behavior: In both cases, the slider should be shared between | ||
| // V1 and V2 groups, appearing in a FREQ group at the same level as V1/V2. | ||
|
|
||
| import("stdfaust.lib"); | ||
|
|
||
| // Using hgroup with relative path (previously broken, now fixed) | ||
| freq = hgroup("../FREQ", vslider("Freq",200,200,1000,0.01)); | ||
|
|
||
| // The freq slider should be shared between V1 and V2 | ||
| process = hgroup("V1", os.osc(freq)), hgroup("V2", os.osc(freq)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| import("stdfaust.lib"); | ||
|
|
||
| // Explicit path form that previously worked | ||
| freq_explicit = vslider("../h:FREQ/Freq", 200, 200, 1000, 0.01); | ||
| process = hgroup("V1", os.osc(freq_explicit)), hgroup("V2", os.osc(freq_explicit)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| import("stdfaust.lib"); | ||
|
|
||
| // Relative-group form that previously failed: group uses relative path segment | ||
| freq_grouped = hgroup("../FREQ", vslider("Freq", 200, 200, 1000, 0.01)); | ||
| process = hgroup("V1", os.osc(freq_grouped)), hgroup("V2", os.osc(freq_grouped)); |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.