Page 1 of 1

Lua scripting IDE?

Posted: Sun Apr 16, 2017 5:07 pm
by davef_dci
Howdy,

new to RC and Lua Scripting. a quick question for experienced Lua Scripters. Do you simply type your program into word, notepad or do you use some sort of an integrated development environment to enter your programs and check for syntax, etc. before uploading to RCh

Posted: Wed Apr 19, 2017 4:12 am
by brentp
Hi,

So when my scripts get big I just work in a text editor and quickly ctrl-a/ctrl-c and switch over to the app and do a quick ctrl-a/ctrl-c. That's usually works fairly well in most cases.

Posted: Thu Apr 20, 2017 3:48 pm
by TXBDan
Notepad++ has LUA script syntax highlighting. Helps a lot.

Posted: Sun Jun 18, 2017 5:06 pm
by jeffmcaffer
VS Code (https://code.visualstudio.com/) has a nice Lua extension (gccfeli.vscode-lua). Light, fast, ...

Posted: Sun Jun 18, 2017 7:25 pm
by brentp
Small things, but the latest beta 1.10.1 has an number of fixes in the Lua window that makes it a bit easier to use.

Posted: Sun Aug 20, 2017 7:16 am
by davef_dci
Just following up on this. I've been using Zerobrane:

https://studio.zerobrane.com/

It will spot syntax errors which makes debugging easier. I copy the program and paste it into the script window.

Brent, not sure if this is a bug but I keep having an issue on my RaceCapture App where the scroll doesn't work in the script window so I can't down-arrow to the bottom of my program - the cursor simply walks out of the window but the program doesn't scroll so I can't edit or see any of my program other than the top lines. If I reboot the unit this fixes itself for a while but then resorts to this behavior. Not sure why. Annoying but not fatal and possibly user error.

Dave

Posted: Sun Aug 20, 2017 2:14 pm
by gizmodo
Try the mouse wheel.

Posted: Sun Aug 20, 2017 4:51 pm
by davef_dci
Unfortunately, I can't. No mouse on the android tablet and when using my computer I have a computer that amazingly has only one USB port which I need to use for the USB connection to Race Capture. If I use a USB splitter, to provide another port, the data transfer to Race Capture fails - I think Brent is aware of this issue.

I suspect my problem is unique.

Dave

Posted: Tue Aug 22, 2017 5:44 pm
by brentp
Dave, on the latest app you should be able to arrow down / up and have the text window position follow the cursor. Can you double check you're on the latest version?

Anyone else seeing this problem with the Lua scripting window?