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.

Filter by
Sorted by
Tagged with
0 votes
1 answer
51 views

Why Zerobranestudio Configuration error occurs?

Error while loading configuration file: 'cannot open C:\Users\안진형\Desktop\ZeroBraneStudio.zbstudio\user.lua: Invalid argument'. Error while loading configuration file: cannot open C:\Users\안진형\Desktop\...
-2 votes
1 answer
35 views

What do the arguments "*line" and "*all" for io.read() do?

I tried the following two codes on a test.lua file and they worked the same except for when i used '*a' i was able to type multiple lines of input. l = io.read('*l') print(i) a = io.read('*a') print(...
1 vote
1 answer
36 views

ZeroBrane Studio - Setting/plugin to contextually hide/show Output/Local console menus

I often use ZeroBrane Studio when working with Lua, and it works great! But there's one customization I'd like to make to the IDE that I can't quite figure out how to achieve. My end goal is to: have ...
2 votes
1 answer
75 views

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 == '...
  • 15.9k
-1 votes
1 answer
114 views

Application doesn't launch from ZeroBrane Studio

I'm having a lot of problems with ZeroBraneStudio! I enjoyed using it to write my first application on Windows, but now I fail to make it working on MacBook Air and even on WIndows after reinstalling ...
1 vote
1 answer
34 views

ZeroBrane Studio showing outline for Java files?

I recently discovered that ZeroBrane Studio 1.90 comes with a lexer for Java, which makes it nicely syntax color Java files. However, it seems that ZB cannot list Java functions in the Outline pane, ...
0 votes
1 answer
45 views

How to configure ZeroBrane with Corona simulator on MacBook

I installed Corona-36674 and ZeroBrane on a MacBook but I don't succeed to get the simulator working! In the user.lua I wrote: path.corona='/Applications/Corona-3664/Corona Simulator.app' but the ...
3 votes
1 answer
81 views

_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 ...
2 votes
1 answer
183 views

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 ...
2 votes
1 answer
55 views

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?
  • 4,076
1 vote
1 answer
50 views

(Windows) Adding ZeroMQ to ZeroBrane?

Bear with me, as I'm not a pro by any means. I've known about ZeroMQ for a while, and that it offers a very interesting way of utilizing multiple cores by clever use of networking. I'd like to see ...
0 votes
1 answer
47 views

Is it possible to assign editor styles to API tokens?

If I define my own API and I want to highlight values, classes and methods of my API in editor. How I can do it? Is it possible to assign some of keyword styles to api tokens? Here is my instead.lua ...
1 vote
1 answer
21 views

change mapped directory to not show full path

Is there a way to give a custom name or only show the folder name of a mapped directory in the ide, instead of the fullPath + direcory name? They are completely out of line compared to each other with ...
  • 65
0 votes
1 answer
294 views

Can ZeroBrane windows have a dark theme without using OS's high-contrast theme?

Just to clarify, I'm not talking about making the background of the editing frame or window dark via: local G = ... styles = G.loadfile('cfg/tomorrow.lua')('Zenburn') -- theme I'm talking about ...
  • 842
0 votes
1 answer
56 views

ZeroBrane Studio runtime error with tab right-click menu "Save As..."

Right-clicking a tab in ZeroBrane Studio (1.90; MobDebug 0.706) and choosing "Save as..." gives (after entering a new name and clicking Save on the "Save file as" dialog) me the ...
1 vote
1 answer
98 views

Running ZeroBrane from Lua

Given that ZeroBrane is all written in Lua, can it be actually started from within a Lua environment? The main motivation would be to fully integrate it inside an existing application (running within ...
0 votes
1 answer
88 views

Zerobrane Studio IDE is giving "Uncaught lua script exception"

My Zerobrane Studio is giving an error and I can't get into it. I've done everything. Can someone help me?
0 votes
1 answer
43 views

How to analyze loaded files correctly

I'm still struggling to get my project analyzed how I would like. Here's what I've tried so far: Analyze File: Analyzes the current file, but doesn't analyze any loaded files (loadfile, dofile). ...
1 vote
1 answer
72 views

ZeroBrane Studios: How to Compile Entire Project?

As title says, how do I compile the entire project? When I click Project -> Compile (or use corresponding shortcut key) it only compiles the currently open file. I want to compile the entire ...
3 votes
1 answer
48 views

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 ...
0 votes
1 answer
29 views

ZeroBrane Studio: top bar is unreachable. Window can't be moved

ZeroBrane Studio 1.90 on MacOS 10.15.7 The minimize, maximize buttons of the finder handle bar are not reachable since they are at a negative y position (outside the desktop screen) Fullscreen can be ...
  • 11
1 vote
1 answer
26 views

Zerobrane: Unable to right-click items in Project Tree on Xubuntu 20.04

Zerobrane Studio Version: 1.90 OS: Ubuntu 20.04.2 LTS x86_64 CPU: Intel i5-4590 (4) @ 3.700GHz GPU: NVIDIA GeForce GTX 1050 Ti Memory: 2565MiB / 7852MiB Video: https://app.box.com/s/...
  • 63
1 vote
1 answer
58 views

ZeroBrane: Change color of auto-completion menu...?

Is there any way to change the color of the auto-completion menu in ZeroBrane (v1.90)? I have tried all the Tomorrow themes but it seems that the auto-completion menu in all of them is dark text on ...
0 votes
1 answer
200 views

Install Rapidjson in lua zerobrane studio

How can i install - import the rapidjson module into Zerobrane studio? i downloaded the luarocks, and runs the luarocks install rapidjson C:\Users\ODYSSEY\Desktop\ZeroBraneStudio>luarocks install ...
1 vote
1 answer
278 views

debug openresty with zerobrane

I've followed this tutorial to setting up Zerobrane IDE for debugging openresty: http://notebook.kulchenko.com/zerobrane/debugging-openresty-nginx-lua-scripts-with-zerobrane-studio. I installed ...
0 votes
1 answer
60 views

This program does not work from terminal but works in zerobrane

x = 10 io.write("Enter the name of the variable you want to be printed: ") index = io.read() f = loadstring("return " .. index) print(f()) The above code gives this error when ...
0 votes
1 answer
68 views

Does zerobrane v1.9 support UTF-8 encoding now?

I wrote a Lua script with zerobrane, which can run in the editor, but it has a utf8 encoding error when it is called and executed by other languages, such as python. So, how should I set it?
0 votes
2 answers
118 views

Trouble compiling Zerobrane on Linux (Raspberry Pi)

I am trying to compile Zerobrane on a raspberry Pi 4. I ran: build-linux.sh all I am able to compile wxWidgets (3.1.4), but when I compile wxLua I get the errors shown below. Anyone know why this ...
0 votes
1 answer
239 views

LUA - ZeroBrane IDE: Compile feature

in ZeroBrane Studio if I use "Project - complile (F7)" - what exactly does happen? Will there be a standalone .exe created from my Lua code ? And if so - in which directory ? I use Windows ...
1 vote
1 answer
300 views

How to run LUA project with IUP package in ZeroBrane Studio?

I have this problem starting/debugging a project in ZeroBrane Studio. I have all source files. Using a command in cmd.exe: lib\lua52.exe OmapTest2.lua starts the project, but I want to debug the ...
0 votes
0 answers
107 views

ZeroBrane Studio won't run? (MacOS)

It used to run just fine, but now when I run it, it simply sits on my bottom tray with no active window open. I tried uninstalling and reinstalling it (homebrew). I haven't tried previous versions ...
0 votes
1 answer
802 views

ZeroBrane with Lua 5.4

In ZeroBrane Studio latest version 1.9, if we choose the menu option "Project","Lua interpreter", there is only the version up to 1.3. How can I add 5.4 ? Also, what are the steps ...
  • 313
-1 votes
1 answer
54 views

Uncaught lua exception error in zerobrane, any solution?

Zerobrane version v1.90 This error is caused after I put the following code into user preference: styles.indicator.fncall = {fg = {-110,0,0}} --I got this in documentation page of zerobrane I tried ...
  • 180
0 votes
1 answer
550 views

IDE for LUA and live debugging wireshark dissectors

I've been using LUA to create wireshark dissectors by editing the LUA file, filled with PRINT statements, and running Wireshark with the console open to trace the dissector. The edit/test cycle is ...
  • 1,342
1 vote
1 answer
210 views

math.maxinteger value is nil in Interactive interpreter at zerobrane

math.maxinteger value is nil in Interactive interpreter at zerobrane but not nil in Interactive pattern at cmdline.I test it in windows.
2 votes
1 answer
42 views

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 ...
1 vote
2 answers
49 views

Styles for Watch Window in Zerobrane

I can not find any information to change the Overlay Mask for this Watch Window. Each Style has the same problem White Text with white active Overlay for activ Watch selection O.o macOS 10.15.5 ...
0 votes
1 answer
44 views

project user.lua require statement only for project specific Modules

I have maintained my user.lua project folder specific. Is there anything in place where I can exclude Zerobrane's env path when I check a Module require statement with "Evaluate in Console"? The ...
0 votes
1 answer
32 views

How to run zerobrane inside Docker

I am switching from doing most of my development on a VM inside VirtualBox to Docker. Are there any instructions on how to set up ZBS in this environment?
1 vote
1 answer
112 views

ZeroBrane and LuaJIT FFI

I am working on a project in which Lua (more specifically LuaJIT) is the scripting language but most of the heavy lifting is performed in C code. The C code is compiled into a .so file and LuaJIT's ...
2 votes
2 answers
4k views

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 ...
  • 123
1 vote
1 answer
146 views

Change menu item hotkeys using the user.lua file

I'm trying to change the comment/uncomment hotkey, but it's not working. I'm on a Mac, but I want to actually use the Ctrl key modifier instead of the Cmd key. Since the hotkey that I want to use is ...
1 vote
1 answer
163 views

Lua: Value generated from `math.random` not being used

Lua is a new language to me, but the behavior I am seeing right now is completely baffling me. I have a block of code as follows: function PlayState:update(dt) -- update timer for pipe spawning ...
  • 6,747
-1 votes
1 answer
165 views

Is there a way to debug lua application without 504 ERROR?

My goal is to debug lua app running on nginx in vm remotely from my computer with ZeroBrane. I succeed to activate the debugger, but Nginx 504 gateway timeout error causes the debugger to terminate (...
  • 3
1 vote
1 answer
2k views

How to get autocompletion for custom modules in Lua

Whatever the setup I use for coding in Lua is always the same thing: autocompletion works for the standard libraries but not for the 3rd parties or my own libraries. I tried ZeroBrane studio, VSCode ...
  • 1,155
-2 votes
1 answer
60 views

ZeroBrain Studio cant open utf-16 le codind ini file

Im tryin to open uft 16 le code ini file in Zerobarane Studio and get error: Binary file is shown as read-only as it is only partially loaded. However it opens fine in win 10 notepad.
0 votes
1 answer
47 views

ZB IDE search and replace extension types

I have two types of lua: 5.1 .lua extension and 5.1 Family Historian lua .fh_lua extension, I have several non-executable as stand alone files that have the extension .lua, all of my working code ...
2 votes
2 answers
339 views

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 ...
  • 26.3k
1 vote
1 answer
2k views

error loading module: ... undefined symbol: luaL_register

ZeroBrain Studio (ZBS): error loading module 'rds.parser' from file '/opt/zbstudio/bin/linux/x64/clibs53/rds/parser.so': /opt/zbstudio/bin/linux/x64/clibs53/rds/parser.so: undefined symbol: ...
  • 11
4 votes
1 answer
1k views

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\...
  • 438