Skip to content

Normalize instance_id once at the source#162

Merged
sastraxi merged 4 commits into
TreeFallSound:pistomp-v3from
sastraxi:fix/instance-id-slash
Jun 5, 2026
Merged

Normalize instance_id once at the source#162
sastraxi merged 4 commits into
TreeFallSound:pistomp-v3from
sastraxi:fix/instance-id-slash

Conversation

@sastraxi

@sastraxi sastraxi commented Jun 5, 2026

Copy link
Copy Markdown
Collaborator

A plugin's instance_id was inconsistently formatted: sometimes with a leading / from LILV parsing, sometimes without. This meant creating the right REST URLs was a bit error-prone. I tried to fix this earlier, but my fix actually broke snapshot changing (the regression you saw @rreichenbach when reviewing #150).

LCD code had .replace("/", "") hacks to strip slashes that shouldn't have been there, and it felt like we could do better.

The fix: normalize at the single source (LILV parser), add defensive lstrips in Parameter and Plugin, and remove the definsive programming from LCD and WebsocketBridge.

Now instance_id is always canonical ("CollisionDrive", never "/CollisionDrive"), and every consumer can trust it.

Tested on the v1/v3 emulator (the bug was reproducible there, too).

Branch stack

@sastraxi sastraxi merged commit e6ed104 into TreeFallSound:pistomp-v3 Jun 5, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant