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

Script class not found #31

Open
myin142 opened this issue Sep 12, 2020 · 4 comments
Open

Script class not found #31

myin142 opened this issue Sep 12, 2020 · 4 comments
Labels
bug Something isn't working

Comments

@myin142
Copy link

myin142 commented Sep 12, 2020

When I build the project with this docker image, I get for example this error:
**SCRIPT ERROR**: Parse Error: The identifier "Health" isn't a valid type (not a script or class), or couldn't be found on base "self".

But building it locally works fine. I tried 3.2.2, 3.2.1 and latest but they all cause this error. Not sure if the problem is in this docker image. I assume it is since it works locally.

@realkotob
Copy link
Collaborator

realkotob commented Sep 12, 2020

I think this could be an issue with running the build before the class database is cached. We can try to add an extra command to force it to init the class database earlier, although I can't guarantee that will work.

It could be an issue with the headless version of godot itself, if that is the case then there is nothing we can do, it has to be fixed upstream.

@myin142
Copy link
Author

myin142 commented Nov 14, 2020

Just some information. I don't think there is any problem with the docker image or godot headless itself. Because I tried building it locally with this image using docker and it seems to work.
It only does not work on Github Actions and Gitlab CI, maybe even other CI providers. Only builds on these CI providers fails for me.

@Calinou
Copy link
Collaborator

Calinou commented Jan 31, 2021

@myin142 Can you still reproduce this issue with the latest Godot and godot-ci versions?

@Calinou Calinou added the bug Something isn't working label Jan 31, 2021
@myin142
Copy link
Author

myin142 commented Feb 1, 2021

@Calinou Seems like it is still happening. I changed it to the latest version but the newest is 3.2.3 anyway so I think nothing changed since last time. I used the project I mentioned in this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants