Repository navigation
fix: re-home bundled VST paths to a root that actually has the bundle - #1
Merged
Merged
Conversation
_migrate_rehome_bundled_vst_paths rewrote every bundled vst_path to <plugin_dir>/vst on each open. Packaged builds ship WITHOUT that folder (the packs download on demand into <config>/nam_rig_builder/vst), so after any app update or rebuild every pedal/amp/rack VST in every song tone pointed at a folder that doesn't exist, and songs played a bare amp. Now each path goes to the first root that has the bundle (plugin dir, then the download root), falling back to the plugin dir only when neither does. Paths already under the download root are recognised as bundled too. Existence checks are cached per (root, bundle), so ~28k rows cost ~300 stats. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Problem
Song tones lost every VST pedal, amp and rack after an app rebuild or update. Songs played through a bare amp, while the idle chain preset (e.g. "Main Lead") still sounded fine.
_migrate_rehome_bundled_vst_pathsruns on every DB open. It rewrites every bundledvst_pathto<plugin_dir>/vst/<rel>. But packaged builds ship without<plugin_dir>/vst:bundle-slopsmith.shstrips it, and the packs download on demand into<config>/nam_rig_builder/vst(got-feedBack#55). So the migration pointed all ~28k pieces at a folder that doesn't exist.Fix
_downloaded_vst_root().statcalls for the 155 distinct bundles, not 28k.Testing
tests/test_vst_path_rehome.py: the 7 existing tests are unchanged and pass. 4 new tests cover:test_manifest.py,test_watcher_paths.py). None are related.nam_tone.db(27,996 VST pieces), with the plugin dir missingvst/:pedals/FM101.vst3, which is missing from the publishedvst-win-pack-v1(FM101 got Win/Linux binaries in 6f44593, apparently after the pack). With that one bundle added, 0 missing.Follow-up
Republish the Windows VST pack with
FM101.vst3.🤖 Generated with Claude Code