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

"Input" class fails to initialize when @export_category("Input") exists, but not @export_category("input") #75253

Closed
Nisandra64 opened this issue Mar 23, 2023 · 4 comments
Labels

Comments

@Nisandra64
Copy link

Nisandra64 commented Mar 23, 2023

Godot version

4.0.1 [cacf499999]

System information

Windows 10

Issue description

When an @export_category exists with the title Input, calling a method of Input fails with:
Nonexistent function '[...]' in base 'Nil'.

The issue is not present when the @export_category is lowercase (id est input versus Input)

Steps to reproduce

Getting the error:

  1. Create a new GDScript file with an @export_category with the title Input (@export_category("Input"))
  2. Add a line anywhere in the function that accesses an Input method (var new = Input.[...]())
  3. Run the scene, receive the error.

Confirming the category name is the issue:

  1. Change the @export_category's title to input.
  2. Run the scene. No error.

Minimal reproduction project

N/A

@Nisandra64
Copy link
Author

Export Error Showcase.zip

I didn't think it significant when I created the issue, so I didn't include an example project, but I made one after. The issue is still reproducible. I also forgot to mention that I recently set up VS Code as an external editor, but I haven't had any other issues thus far.

@AThousandShips
Copy link
Member

Duplicate of #73843

@Nisandra64
Copy link
Author

Ahh, thank you. I didn't do a very thorough search, but I at least glanced. Thank you. <3

@AThousandShips
Copy link
Member

No problem!

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

No branches or pull requests

3 participants