Skip to content

Conversation

@Andrej730
Copy link
Contributor

And leaving them as-is is producing errors later in format_validator transformer.
Resolved blocking issue from #399

@Andrej730 Andrej730 mentioned this pull request Nov 3, 2025
7 tasks
Copy link
Owner

@nutti nutti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please do this in the transformer.
https://github.com/nutti/fake-bpy-module/blob/main/src/fake_bpy_module/transformer/rst_specific_node_cleaner.py

This should be CodeDocumentNode to remain its contents as a comment.

@Andrej730
Copy link
Contributor Author

@nutti moved handling to the transformer. But couldn't get past the line endings restrictions to commit my changes without applying line endings normalization first, see ##409

Copy link
Owner

@nutti nutti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you share the final html document which has substitution_definition node?
I want to check if is OK to skip or not.

@Andrej730
Copy link
Contributor Author

@nutti

Can you share the final html document which has substitution_definition node?
I want to check if is OK to skip or not.

https://docs.blender.org/api/current/bmesh.types.html

Used replacements:

SUBSTITUTION REPLACEMENT 'UV_STICKY_SELECT_MODE_REF':
(bpy.types.ToolSettings.uv_sticky_select_mode which may be passed in directly).

SUBSTITUTION REPLACEMENT 'UV_STICKY_SELECT_MODE_TYPE':
Literal['SHARED_LOCATION', 'DISABLED', 'SHARED_VERTEX']

SUBSTITUTION REPLACEMENT 'UV_SELECT_FLUSH_MODE_NEEDED':
This function selection-mode independent, typically bmesh.types.BMesh.uv_select_flush_mode should be called afterwards.

SUBSTITUTION REPLACEMENT 'UV_SELECT_SYNC_TO_MESH_NEEDED':
This function doesn't flush the selection to the mesh, typically bmesh.types.BMesh.uv_select_sync_to_mesh should be called afterwards.

@Andrej730 Andrej730 requested a review from nutti December 3, 2025 18:18
@Andrej730 Andrej730 force-pushed the skip-substituion-definitions branch from 2b1a096 to ec180f6 Compare December 3, 2025 18:22
@Andrej730
Copy link
Contributor Author

Rebased to resolve conflicts, no functional changes.

@Andrej730 Andrej730 force-pushed the skip-substituion-definitions branch 2 times, most recently from 1613dbb to ff6ddc8 Compare December 3, 2025 18:43
@Andrej730
Copy link
Contributor Author

Ahhh, errors due to conflicting line endings... rebasing. Should be good now.

@nutti
Copy link
Owner

nutti commented Dec 4, 2025

@nutti

Can you share the final html document which has substitution_definition node?
I want to check if is OK to skip or not.

https://docs.blender.org/api/current/bmesh.types.html

Used replacements:

SUBSTITUTION REPLACEMENT 'UV_STICKY_SELECT_MODE_REF':
(bpy.types.ToolSettings.uv_sticky_select_mode which may be passed in directly).

SUBSTITUTION REPLACEMENT 'UV_STICKY_SELECT_MODE_TYPE':
Literal['SHARED_LOCATION', 'DISABLED', 'SHARED_VERTEX']

SUBSTITUTION REPLACEMENT 'UV_SELECT_FLUSH_MODE_NEEDED':
This function selection-mode independent, typically bmesh.types.BMesh.uv_select_flush_mode should be called afterwards.

SUBSTITUTION REPLACEMENT 'UV_SELECT_SYNC_TO_MESH_NEEDED':
This function doesn't flush the selection to the mesh, typically bmesh.types.BMesh.uv_select_sync_to_mesh should be called afterwards.

Still I could not understand the position.
Can you share a snapshot which indicates the substitution_definition part?

Copy link
Owner

@nutti nutti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some files include the changes which is not related to this.
I hope this comes from the line break format differentiation.
Can you make a separate PR?

@Andrej730 Andrej730 force-pushed the skip-substituion-definitions branch from ff6ddc8 to 7bac1e7 Compare December 8, 2025 17:52
@Andrej730
Copy link
Contributor Author

Some files include the changes which is not related to this.
I hope this comes from the line break format differentiation.
Can you make a separate PR?

See

But couldn't get past the line endings restrictions to commit my changes without applying line endings normalization first, see ##409

The problem is tests\python\fake_bpy_module_test\fake_bpy_module_test\generator_test_data\code_document_node_translator_test\expect\basic\basic.py affected by both this PR and #409.

So because of the line-endings issues, it was hard to commit the change separately, because git wants files to be renormalized according to .gitattributes... So I included commits from #409 to this PR, so it will be possible to merge without conflicts if #409 if accepted.

@nutti
Copy link
Owner

nutti commented Dec 24, 2025

Thank you @Andrej730
Now #409 is merged. Please rebase again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants