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

Editor suggested OS enums contain an underscore which is incorrect #49691

Closed
madmiraal opened this issue Jun 17, 2021 · 2 comments
Closed

Editor suggested OS enums contain an underscore which is incorrect #49691

madmiraal opened this issue Jun 17, 2021 · 2 comments

Comments

@madmiraal
Copy link
Contributor

Godot version

3.3.2.stable

System information

Ubuntu 21.04

Issue description

When using the functions OS.get_system_dir(), OS.get_native_handle() or OS.get_video_driver_name(), the suggested valid enum values all begin with _OS.*:
OS enum prompt

However, when using one of these, you get a Parser Error: Identifier not found: _OS error when running the project.

Steps to reproduce

In a script, type OS.get_system_dir(, OS.get_native_handle( or OS.get_video_driver_name(, and select one of the suggested values. Run the project.

Minimal reproduction project

N/A: This is an editor issue. A project is easily fixed by removing the underscore.

@kleonc
Copy link
Member

kleonc commented Jun 17, 2021

Duplicate of #35469, #37184.

@Calinou
Copy link
Member

Calinou commented Jun 17, 2021

Closing per @kleonc's comment.

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

No branches or pull requests

3 participants