Basalt icon indicating copy to clipboard operation
Basalt copied to clipboard

bug: [basalt.autoUpdate() Expected something before the end of the line Tip: Use () to call with no arguments]

Open SlideShowGames opened this issue 1 year ago • 5 comments

Describe the bug

Im new to this framework and just Lua in general btw. I was just writing code to add titlebars and stuff for some movable windows and all of a sudden I got this error. I removed all the code I had just added but it still won't work.

Expected behavior

The code should run and a movable window should appear

Screenshots 2024-07-11_07 28 30

Checklist

[*] I am running the latest version. Tick the box if you are running the latest version!

SlideShowGames avatar Jul 11 '24 11:07 SlideShowGames

Also the code freezes the computer and no matter how much you change the file it WILL NOT RUN it will say the same error with the same line the original error it was on

SlideShowGames avatar Jul 11 '24 11:07 SlideShowGames

Can you send me the code you're using?

NoryiE avatar Jul 11 '24 11:07 NoryiE

Can you send me the code you're using?

https://github.com/SlideShowGames/n4-Window-Manager/blob/main/startup.lua

SlideShowGames avatar Jul 11 '24 12:07 SlideShowGames

Hm, interesting, i downloaded your startup.lua and your basalt.lua and it worked (only thing i had to do was adding an end and removing setHorizontalAlign/setVerticalAlign from buttons): image

How do you test your code? I was using CraftOS-PC for it.

NoryiE avatar Jul 11 '24 12:07 NoryiE

I tested using CraftOS-PC and CraftOS-PC accelerated

SlideShowGames avatar Jul 11 '24 17:07 SlideShowGames