Describe the problem
When creating my first (internal) plugin, I called it sqlite_proxy. Then I spent literally hours chasing down the build issue because the message is not very clear:
thread 'main' panicked at build.rs:11:6:
failed to run tauri-build: failed to parse JSON: identifiers can only include lowercase ASCII, hyphens which are not leading or trailing, and a single colon if using a prefix at line 16 column 23
It does not identify the .json file that needs fixing; nor specify that identifiers here refers to plugin names. Being new to the plugin ecosystem, I assumed that I simply failed to create some sort of capability file / permission setup. This was not the case. The above error message is a result of #9952, which improved the state of the world, but punted on documentation changes and the underlying issue.
Describe the solution you'd like
I believe there are 3 different levels of fixing this, listed in order of difficulty:
Alternatives considered
No response
Additional context
I personally wouldn't consider the issue fully solved until the restriction is removed; however the interim steps would help mitigate some of the harm.
Describe the problem
When creating my first (internal) plugin, I called it
sqlite_proxy. Then I spent literally hours chasing down the build issue because the message is not very clear:It does not identify the
.jsonfile that needs fixing; nor specify thatidentifiershere refers to plugin names. Being new to the plugin ecosystem, I assumed that I simply failed to create some sort of capability file / permission setup. This was not the case. The above error message is a result of #9952, which improved the state of the world, but punted on documentation changes and the underlying issue.Describe the solution you'd like
I believe there are 3 different levels of fixing this, listed in order of difficulty:
Note: this was already considered in [feat] Better errors when deserializing capabilities #9951:
writing our own deserializer without serde_untagged. I do not know the specific limitations of serde/serde_untagged regarding this. Sharing context on the reasons it's so painful to change might be useful.Alternatives considered
No response
Additional context
I personally wouldn't consider the issue fully solved until the restriction is removed; however the interim steps would help mitigate some of the harm.