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

Add a menu action to open C++ source on GitHub in the editor debugger #47990

Conversation

Calinou
Copy link
Member

@Calinou Calinou commented Apr 18, 2021

This helps user find back the source code where the error/warning was emitted from.

I've tested this both with engine-emitted errors and user-emitted errors (push_error() in GDScript), and it seems to work successfully so far.

Preview

The action brings you to https://github.com/godotengine/godot/blob/0ee744ff5f3cf045a2699aa4111de3200b9d70be/core/variant/variant_utility.cpp#L597.

image

@Calinou Calinou requested a review from a team as a code owner April 18, 2021 00:08
@Calinou Calinou added cherrypick:3.x Considered for cherry-picking into a future 3.x release enhancement topic:editor usability labels Apr 18, 2021
@Calinou Calinou added this to the 4.0 milestone Apr 18, 2021
@Calinou Calinou force-pushed the editor-debugger-open-cpp-source-on-github branch from d634e99 to 1a0ec41 Compare April 18, 2021 14:17
Copy link
Member

@fire fire left a comment

Choose a reason for hiding this comment

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

The design is great. We're hard coding the url to Github, but this is developer triggered so it's requested.

This helps user find back the source code where the error/warning
was emitted from.
@Calinou Calinou force-pushed the editor-debugger-open-cpp-source-on-github branch from 1a0ec41 to 5bc746e Compare April 19, 2021 16:29
@akien-mga akien-mga merged commit 68e6223 into godotengine:master Apr 20, 2021
@akien-mga
Copy link
Member

Thanks!

@akien-mga
Copy link
Member

Cherry-picked for 3.4.

@akien-mga akien-mga removed the cherrypick:3.x Considered for cherry-picking into a future 3.x release label Apr 26, 2021
@madmiraal madmiraal mentioned this pull request May 1, 2021
@Calinou Calinou deleted the editor-debugger-open-cpp-source-on-github branch August 3, 2021 16:00
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.

None yet

3 participants