Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update many Deprecated/Experimental descriptions for consistency #88443

Merged

Conversation

Mickeon
Copy link
Contributor

@Mickeon Mickeon commented Feb 17, 2024

See #81458 (comment).

TL:DR: Explain why thing is deprecated/experimental as much as possible, use description to explain what it does, even if it does nothing currently.

This PR also changes a few other things along the way for a bit more consistency.

Oh for your interest there's one very long set of instructions which I did not write, that looks as follows in the built-in docs:
image

@Mickeon Mickeon requested a review from a team as a code owner February 17, 2024 15:53
@Mickeon Mickeon added this to the 4.3 milestone Feb 17, 2024
@Mickeon
Copy link
Contributor Author

Mickeon commented Feb 17, 2024

What do you mean "conflicts with MultiMesh.xml" I just created the branch yesterday-

@Mickeon Mickeon force-pushed the documentation-hunting-for-deprecated branch from f24bcce to cc9da3b Compare February 17, 2024 15:55
@Mickeon Mickeon requested a review from dalexeev February 17, 2024 15:56
@Mickeon Mickeon force-pushed the documentation-hunting-for-deprecated branch 2 times, most recently from 81921d5 to 2e5a734 Compare February 17, 2024 16:02
@@ -80,6 +80,7 @@
<return type="void" />
<param index="0" name="layer" type="int" default="-1" />
<description>
Forces the TileMap and the layer [param layer] to update.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Trust me, I did not want to say it like this but it's for consistency with the way TileMap is written. Ooooooh boy.

@@ -14,12 +14,12 @@
<link title="Using NavigationMeshes">$DOCS_URL/tutorials/navigation/navigation_using_navigationmeshes.html</link>
</tutorials>
<methods>
<method name="bake" deprecated="">
<method name="bake" deprecated="This method is deprecated due to core threading changes. To upgrade existing code, first create a [NavigationMeshSourceGeometryData3D] resource. Use this resource with [method parse_source_geometry_data] to parse the [SceneTree] for nodes that should contribute to the navigation mesh baking. The [SceneTree] parsing needs to happen on the main thread. After the parsing is finished use the resource with [method bake_from_source_geometry_data] to bake a navigation mesh.">
Copy link
Member

Choose a reason for hiding this comment

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

In my opinion, the message should be as short as possible, details should be placed in the description. In the future we might use deprecated/experimental messages for warnings in GDScript and C#.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I do agree a lot, but I also wanted to keep my reasoning consistent in the PR. "Why", then "provide alternative". So moving it in the description would go against that.

doc/classes/AnimationMixer.xml Outdated Show resolved Hide resolved
doc/classes/AnimationPlayer.xml Outdated Show resolved Hide resolved
doc/classes/AnimationPlayer.xml Outdated Show resolved Hide resolved
doc/classes/HTTPClient.xml Outdated Show resolved Hide resolved
doc/classes/HTTPClient.xml Outdated Show resolved Hide resolved
doc/classes/NavigationMeshGenerator.xml Outdated Show resolved Hide resolved
doc/classes/TileMap.xml Outdated Show resolved Hide resolved
doc/classes/TreeItem.xml Outdated Show resolved Hide resolved
@Mickeon Mickeon changed the title Update many Deprecated descriptions for consistency Update many Deprecated/Experimental descriptions for consistency Feb 17, 2024
@Mickeon
Copy link
Contributor Author

Mickeon commented Feb 17, 2024

Addressed all of the above feedback (except for Dalexeev's, may be thoughtful)

@Mickeon Mickeon force-pushed the documentation-hunting-for-deprecated branch from 2e5a734 to f9a7587 Compare February 17, 2024 20:36
Copy link
Member

@dalexeev dalexeev left a comment

Choose a reason for hiding this comment

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

Looks good to me, although I'm not familiar with many areas and haven't looked at the source code. As for the maximum message length, let's leave it as is for now. Anyway, deprecated/experimental warnings are not yet implemented in either GDScript or C#.

<method name="setup_local_to_scene" deprecated="This method should only be called internally. Override [method _setup_local_to_scene] instead.">
<method name="setup_local_to_scene" deprecated="This method should only be called internally.">
Copy link
Member

Choose a reason for hiding this comment

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

Is this intentional? Is this incorrect advice?

Copy link
Contributor Author

@Mickeon Mickeon Feb 19, 2024

Choose a reason for hiding this comment

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

"Instead" doesn't make sense because it is not direct equivalence. It's not the alternative or the workaround. Overriding the original setup_local_to_scene does nothing because it is not the virtual method.

@akien-mga akien-mga merged commit 07254d9 into godotengine:master Feb 20, 2024
16 checks passed
@akien-mga
Copy link
Member

Thanks!

@Mickeon Mickeon deleted the documentation-hunting-for-deprecated branch February 20, 2024 10:13
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.

4 participants