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

Inexplicable java error that turns out to be a circular dependency problem - need better error message #5909

Closed
rgrams opened this issue Jun 29, 2021 · 2 comments
Labels
bug Something is not working as expected editor Issues related to the Defold editor

Comments

@rgrams
Copy link

rgrams commented Jun 29, 2021

Expected behaviour

The error message actually tells you what's wrong, and ideally how to fix it.

Also I'm not sure if the error should trigger the java error popup. Probably it should be printed in the console like other user errors.

Actual behaviour

The error message is completely inexplicable.

Steps to reproduce

Add two lua modules that require each other.

The same or a similar error may be caused by a factory that reproduces itself? https://forum.defold.com/t/cycle-detected-error-after-adding-new-objects-to-map-solved/66249


Build time2021-06-20T14:04:19.855683
Defold channeleditor-alpha
Defold editor shadb55f3f
Defold engine shaf77b7f6
Defold version1.2.183
Errordb8a6b73a0814a21bf82f60e5e0f2e83
GPUMesa DRI Intel(R) UHD Graphics 630 (CFL GT2)
GPU Driver3.0 Mesa 20.2.6
Java version11.0.1+13
OS archamd64
OS nameLinux
OS version5.4.0-77-generic
@rgrams rgrams changed the title Unknown problem with a gui that won't let me build Inexplicable java error that turns out to be a circular module require error Jun 29, 2021
@rgrams
Copy link
Author

rgrams commented Jun 29, 2021

It turns out it's just a circular lua require problem. The error in the editor should specify what the error actually is, and what files are causing it.

@rgrams rgrams changed the title Inexplicable java error that turns out to be a circular module require error Inexplicable java error that turns out to be a circular dependency problem - need better error message Jun 29, 2021
@britzl britzl added editor Issues related to the Defold editor bug Something is not working as expected labels Jun 29, 2021
@britzl
Copy link
Contributor

britzl commented Mar 22, 2022

Duplicate of #4893. Closing.

@britzl britzl closed this as completed Mar 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is not working as expected editor Issues related to the Defold editor
Projects
None yet
Development

No branches or pull requests

2 participants