Skip to content

Web: Don't try to send process ID over the debugger#106497

Closed
akien-mga wants to merge 1 commit into
godotengine:masterfrom
akien-mga:web-debugger-no-process-id
Closed

Web: Don't try to send process ID over the debugger#106497
akien-mga wants to merge 1 commit into
godotengine:masterfrom
akien-mga:web-debugger-no-process-id

Conversation

@akien-mga
Copy link
Copy Markdown
Member

Silences an error about OS::get_process_id() not being implemented on Web.

I didn't check whether the editor expects to receive this message with a valid process ID, but in a quick test things seem to work, and previously the ID would be invalid anyway. Might still be worth a quick check from someone familiar with the debugger (cc @Faless ).

Silences an error about `OS::get_process_id()` not being implemented on Web.
@akien-mga akien-mga added this to the 4.x milestone May 16, 2025
@akien-mga akien-mga requested a review from a team May 16, 2025 16:27
@akien-mga akien-mga requested a review from a team as a code owner May 16, 2025 16:27
Copy link
Copy Markdown
Member

@adamscott adamscott left a comment

Choose a reason for hiding this comment

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

While I feel this is the quickest way to fix the annoying bug, I think we should maybe add instead bool OS::has_process_id() const that is true for pretty much all the platforms except for the Web.

tl;dr I don't like having platform specific code in core/.

@Faless
Copy link
Copy Markdown
Collaborator

Faless commented May 16, 2025

I think we could also just have get_process_id return 0 on the web with no warning, and maybe document it in the docs.

@akien-mga
Copy link
Copy Markdown
Member Author

Superseded by #106504.

@akien-mga akien-mga closed this May 16, 2025
@akien-mga akien-mga removed this from the 4.x milestone May 16, 2025
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.

3 participants