Questions tagged [zerobrane]

ZeroBrane Studio is a lightweight Lua IDE with code completion, syntax highlighting, remote debugger, code analyzer, live coding, and debugging support for several Lua engines.

ZeroBrane Studio is a lightweight Lua IDE with code completion, syntax highlighting, remote debugger, code analyzer, live coding, and debugging support for several Lua engines.

It is simple and instantly usable for beginners (as tested with middle and high school students with no programming experience), yet feature-rich and extensible for experienced developers. Unlike Eclipse and IntelliJ, it has a small footprint and is completely customizable with Lua. Unlike TextMate and Sublime Text, it includes a remote debugger and a full IDE feature set.

ZeroBrane Studio also provides several unique features: live coding for immediate feedback, Markdown formatting in comments for providing instructions with minimal context switching, and integrated interactive materials for those learning Lua or getting familiar with programming.

Feature highlights

  • Small, portable, open-source, and cross-platform (Windows, Mac OSX, and Linux).
  • Auto-completion for functions, keywords, and custom APIs.
  • Interactive console to directly test code snippets with local and remote execution.
  • Live coding with Lua (demo), Löve 2D (demo), Gideros (demo), Moai (demo), and Corona (demo).
  • Integrated debugger (with support for local and remote debugging), and more.

Source: http://studio.zerobrane.com/

137 questions
9
votes
3 answers

how to set the LUA_PATH and LUA_CPATH for the zerobrane studio in linux

I want to add a module path for all of my project in zerobrane. I add following code into the user.lua. LUA_PATH=LUA_PATH .. ';mypath' or package.path=package.path .. ';mypath' It can't work. how can I do it ? PS I don't want to set the…
Samuel
  • 5,977
  • 14
  • 55
  • 77
4
votes
1 answer

How to install Torch on Windows 10?

I try to install Torch on Windows 10 using this instruction. I followed most steps without any problems, but stumbled here: Generate user.lua file in C:\Users\Name.zbstudio: path.lua = [[C:\app\tools\torch\bin\luajit.exe]] The latest version of…
SagRU
  • 448
  • 4
  • 17
4
votes
2 answers

Debuging lua application using ZeroBraneStudio with own lua interpreter

I would like to debug my application using ZeroBraneStudio 1.4 with my own lua interpreter (5.1) on Windows 7. I set the interpreter in user.lua as path.lua = '' my_app.lua has the following as the first line package.path =…
yigitsoy
  • 41
  • 3
4
votes
2 answers

How to set the environment variable of zerobrane studio

I install all torch package into my local file torch-distro(Followed by this tutorial). I want to use Zerobrane to debug my code. Zerobrane can't find my local path of torch. How Can I set my local path to the Zerobrane environment variable. I tried…
Samuel
  • 5,977
  • 14
  • 55
  • 77
3
votes
1 answer

_ENV is not working in zerobrane studio on windows

When print(_ENV) is used in zerobrane studio on windows, it results into nil. Can we set _ENV variable to its expected use? As an example of code, a = 15 -- create a global variable _ENV = {g = _G} -- change…
mathsbeauty
  • 364
  • 4
  • 13
3
votes
1 answer

Zerobrane does not access environment

I am moving to Debian 10 from Ubuntu 20.04. Now Lua 5.3 is not finding my own modules using "require". Worked fine on Ubuntu before, I suspect I am missing something now... Pointers are most welcome! Thanks in ~/.bashrc I have copied from the…
hazefire
  • 51
  • 2
2
votes
1 answer

How to format file or selection in ZeroBrane

Is there a menu command or a plugin to format the whole file or the selection? I tried Correct Indentation, but it did nothing to the following code. local x = 'Hello' y = 'world' if y..x == 'worldHello'then print('OK') end
shingo
  • 18,436
  • 5
  • 23
  • 42
2
votes
1 answer

How can I change the Lua version of the local console in ZeroBrane Studio?

I already know how to change the version of the Lua interpreter by going to the menu-option "Project -> Lua Interpreter". I see the confirmation by executing a Lua-file containing the line print(_VERSION), which outputs the set version e.g. Lua…
2
votes
1 answer

How to split the edit window in ZeroBrane Studio

How do I split the edit window in ZeroBrane Studio, either vertical or horizontal? Is there a short cut to do this?
wimalopaan
  • 4,838
  • 1
  • 21
  • 39
2
votes
1 answer

Zerobrane hotkeys to jump between editor tabs and other panes within IDE

Using Zerobrane, are there any defined hotkeys or keymaps that will jump between panes within the IDE? Like, some key to jump between several files open as tabs (jump between tabs). Another is jumping from editor tab pane over to the project pane,…
Nanocore
  • 23
  • 2
2
votes
2 answers

Zerobrane dark mode howto

How to I activate dark mode in Zerobrane v1.9? If it is linked to the OS's dark mode setting, is there a way to force it on (I'm win7), or otherwise customize the colors of the filetree and outline windows?
Dafoosa
  • 123
  • 1
  • 7
2
votes
2 answers

messed up lua paths after trying to set up debugging

I would like to debug my way through a large lua codebase. To do this, I downloaded ZeroBrane and followed their instructions to set up the bundled mobdebug. The codebase is koreader. The following shellscript reproduces what I've done: #…
lhk
  • 27,458
  • 30
  • 122
  • 201
2
votes
1 answer

ZeroBrane - Debugging with NLua & Visual Studio (for macOS)

Is there a way of debugging Lua scripts using ZeroBraneStudio but having the scripts loaded/initialized via NLua in C# from Visual Studio for macOS or even Windows (Not VS Code)? The primary reason to do so is to get the CLR package interoperability…
G.T.D.
  • 386
  • 1
  • 5
  • 21
2
votes
1 answer

"attempt to index global 'ngx' (a nil value)" Issue with LUA

I have an issue with attempting to utilize ngx on any of the lua coding in ZeroBrane Studio, including resty.cookie. Am I doing something wrong? (This is in Windows) I have OpenResty downloaded, but I have no idea how to compile the ngx inside…
Vac
  • 33
  • 1
  • 4
2
votes
1 answer

Call to String.pack returns pack method not found

I'm running Zerobrane 1.8 and LUA 5.3. However, in the interpreter the string function does not have "pack()" method/sub-function, i.e., print(string.pack("
Shejo284
  • 4,541
  • 6
  • 32
  • 44
1
2 3
9 10