Skip to content

Conversation

WSH032
Copy link
Contributor

@WSH032 WSH032 commented Jun 14, 2025

ref: tauri-apps/tauri#13597 (comment)

It seems that tauri-apps/tauri#13597 will not be merged soon, so this PR temporarily suppresses these errors as a mitigation.

@WSH032 WSH032 requested a review from a team as a code owner June 14, 2025 17:22
@Legend-Master
Copy link
Contributor

I honestly think we should figure out why it tries to write to that file which it shouldn't instead of ignoring the error

@WSH032
Copy link
Contributor Author

WSH032 commented Jun 16, 2025

I completely agree with this. But unfortunately, I haven't had time to investigate the issue recently.
I'm not sure about the progress of tauri-apps/tauri#13597, but the pytauri documentation has been broken for a long time. So, since we can't fully resolve it in the short term, I think we should at least provide some kind of workaround for now.
I believe this is better than doing nothing and leaving the error on docs.rs.

@FabianLars
Copy link
Member

i think we simply have to re-release all the plugins. For reference, here's the output of the diff command from the notification plugin's schema.json file in the cargo registry.

52c52
<           "description": "Human-readable description of what the permission does. Tauri convention is to use `<h4>` headings in markdown content for Tauri documentation generation purposes.",
---
>           "description": "Human-readable description of what the permission does. Tauri convention is to use <h4> headings in markdown content for Tauri documentation generation purposes.",
114c114
<           "description": "Human-readable description of what the permission does. Tauri internal convention is to use `<h4>` headings in markdown content for Tauri documentation generation purposes.",
---
>           "description": "Human-readable description of what the permission does. Tauri internal convention is to use <h4> headings in markdown content for Tauri documentation generation purposes.",
300,301c300
<           "const": "allow-batch",
<           "markdownDescription": "Enables the batch command without any pre-configured scope."
---
>           "const": "allow-batch"
306,307c305
<           "const": "deny-batch",
<           "markdownDescription": "Denies the batch command without any pre-configured scope."
---
>           "const": "deny-batch"
312,313c310
<           "const": "allow-cancel",
<           "markdownDescription": "Enables the cancel command without any pre-configured scope."
---
>           "const": "allow-cancel"
318,319c315
<           "const": "deny-cancel",
<           "markdownDescription": "Denies the cancel command without any pre-configured scope."
---
>           "const": "deny-cancel"
324,325c320
<           "const": "allow-check-permissions",
<           "markdownDescription": "Enables the check_permissions command without any pre-configured scope."
---
>           "const": "allow-check-permissions"
330,331c325
<           "const": "deny-check-permissions",
<           "markdownDescription": "Denies the check_permissions command without any pre-configured scope."
---
>           "const": "deny-check-permissions"
336,337c330
<           "const": "allow-create-channel",
<           "markdownDescription": "Enables the create_channel command without any pre-configured scope."
---
>           "const": "allow-create-channel"
342,343c335
<           "const": "deny-create-channel",
<           "markdownDescription": "Denies the create_channel command without any pre-configured scope."
---
>           "const": "deny-create-channel"
348,349c340
<           "const": "allow-delete-channel",
<           "markdownDescription": "Enables the delete_channel command without any pre-configured scope."
---
>           "const": "allow-delete-channel"
354,355c345
<           "const": "deny-delete-channel",
<           "markdownDescription": "Denies the delete_channel command without any pre-configured scope."
---
>           "const": "deny-delete-channel"
360,361c350
<           "const": "allow-get-active",
<           "markdownDescription": "Enables the get_active command without any pre-configured scope."
---
>           "const": "allow-get-active"
366,367c355
<           "const": "deny-get-active",
<           "markdownDescription": "Denies the get_active command without any pre-configured scope."
---
>           "const": "deny-get-active"
372,373c360
<           "const": "allow-get-pending",
<           "markdownDescription": "Enables the get_pending command without any pre-configured scope."
---
>           "const": "allow-get-pending"
378,379c365
<           "const": "deny-get-pending",
<           "markdownDescription": "Denies the get_pending command without any pre-configured scope."
---
>           "const": "deny-get-pending"
384,385c370
<           "const": "allow-is-permission-granted",
<           "markdownDescription": "Enables the is_permission_granted command without any pre-configured scope."
---
>           "const": "allow-is-permission-granted"
390,391c375
<           "const": "deny-is-permission-granted",
<           "markdownDescription": "Denies the is_permission_granted command without any pre-configured scope."
---
>           "const": "deny-is-permission-granted"
396,397c380
<           "const": "allow-list-channels",
<           "markdownDescription": "Enables the list_channels command without any pre-configured scope."
---
>           "const": "allow-list-channels"
402,403c385
<           "const": "deny-list-channels",
<           "markdownDescription": "Denies the list_channels command without any pre-configured scope."
---
>           "const": "deny-list-channels"
408,409c390
<           "const": "allow-notify",
<           "markdownDescription": "Enables the notify command without any pre-configured scope."
---
>           "const": "allow-notify"
414,415c395
<           "const": "deny-notify",
<           "markdownDescription": "Denies the notify command without any pre-configured scope."
---
>           "const": "deny-notify"
420,421c400
<           "const": "allow-permission-state",
<           "markdownDescription": "Enables the permission_state command without any pre-configured scope."
---
>           "const": "allow-permission-state"
426,427c405
<           "const": "deny-permission-state",
<           "markdownDescription": "Denies the permission_state command without any pre-configured scope."
---
>           "const": "deny-permission-state"
432,433c410
<           "const": "allow-register-action-types",
<           "markdownDescription": "Enables the register_action_types command without any pre-configured scope."
---
>           "const": "allow-register-action-types"
438,439c415
<           "const": "deny-register-action-types",
<           "markdownDescription": "Denies the register_action_types command without any pre-configured scope."
---
>           "const": "deny-register-action-types"
444,445c420
<           "const": "allow-register-listener",
<           "markdownDescription": "Enables the register_listener command without any pre-configured scope."
---
>           "const": "allow-register-listener"
450,451c425
<           "const": "deny-register-listener",
<           "markdownDescription": "Denies the register_listener command without any pre-configured scope."
---
>           "const": "deny-register-listener"
456,457c430
<           "const": "allow-remove-active",
<           "markdownDescription": "Enables the remove_active command without any pre-configured scope."
---
>           "const": "allow-remove-active"
462,463c435
<           "const": "deny-remove-active",
<           "markdownDescription": "Denies the remove_active command without any pre-configured scope."
---
>           "const": "deny-remove-active"
468,469c440
<           "const": "allow-request-permission",
<           "markdownDescription": "Enables the request_permission command without any pre-configured scope."
---
>           "const": "allow-request-permission"
474,475c445
<           "const": "deny-request-permission",
<           "markdownDescription": "Denies the request_permission command without any pre-configured scope."
---
>           "const": "deny-request-permission"
480,481c450
<           "const": "allow-show",
<           "markdownDescription": "Enables the show command without any pre-configured scope."
---
>           "const": "allow-show"
486,487c455
<           "const": "deny-show",
<           "markdownDescription": "Denies the show command without any pre-configured scope."
---
>           "const": "deny-show"
490c458
<           "description": "This permission set configures which\nnotification features are by default exposed.\n\n#### Granted Permissions\n\nIt allows all notification related features.\n\n\n#### This default permission set includes:\n\n- `allow-is-permission-granted`\n- `allow-request-permission`\n- `allow-notify`\n- `allow-register-action-types`\n- `allow-register-listener`\n- `allow-cancel`\n- `allow-get-pending`\n- `allow-remove-active`\n- `allow-get-active`\n- `allow-check-permissions`\n- `allow-show`\n- `allow-batch`\n- `allow-list-channels`\n- `allow-delete-channel`\n- `allow-create-channel`\n- `allow-permission-state`",
---
>           "description": "This permission set configures which\nnotification features are by default exposed.\n\n#### Granted Permissions\n\nIt allows all notification related features.\n\n",
492,493c460
<           "const": "default",
<           "markdownDescription": "This permission set configures which\nnotification features are by default exposed.\n\n#### Granted Permissions\n\nIt allows all notification related features.\n\n\n#### This default permission set includes:\n\n- `allow-is-permission-granted`\n- `allow-request-permission`\n- `allow-notify`\n- `allow-register-action-types`\n- `allow-register-listener`\n- `allow-cancel`\n- `allow-get-pending`\n- `allow-remove-active`\n- `allow-get-active`\n- `allow-check-permissions`\n- `allow-show`\n- `allow-batch`\n- `allow-list-channels`\n- `allow-delete-channel`\n- `allow-create-channel`\n- `allow-permission-state`"
---
>           "const": "default"

@FabianLars
Copy link
Member

soooo, i just released new versions and at least in my local docs.rs instance the issue seems to be gone now. at least for my own repro product, didn't know how to make pytauri work in it with the python dependency 🤷

@FabianLars
Copy link
Member

The author of the PR in the tauri repo made similar observations. Will close this PR here then.

@FabianLars FabianLars closed this Jun 16, 2025
@WSH032 WSH032 deleted the fix/suppress-build-error branch August 11, 2025 16:50
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.

3 participants