How to make ZeroBrane Studio use another Lua version?

549 Views Asked by At

Zero Brane studios runs with Lua 5.1, I want to upgrade to 5.2. I installed Lua for Windows

Then I downloaded the file "lua-5.2_Win64_bin.zip" unzipped it and moved the content to the folder of "Lua for Windows".

Then I started ZeroBrane studios, and under Edit -> Preferences -> Settings: User, I wrote this code to the file user.lua

path.lua = 'C:\Program Files (x86)\Lua\5.2\Lua52.exe'

Then I saved the file, and restarted ZB Studio. To check if this was successfull, I compiled this code:

print(_VERSION)  --Output = Lua 5.1

So it did not worked. How can I achieve this?

1

There are 1 best solutions below

0
On

I found the solution. You actually just have to go to "Project -> LUA Interpreter" and select your desired version.