Solution:
sudo pacman -S lua-binaryheap pacaur -S lua-timerwheel
- lua-timerwheel and lua-binaryheap should be added in depends
Git Clone URL: | https://aur.archlinux.org/zerobrane-studio.git (read-only, click to copy) |
---|---|
Package Base: | zerobrane-studio |
Description: | A lightweight Lua-based IDE for Lua |
Upstream URL: | https://studio.zerobrane.com/ |
Keywords: | ide lua zerobrane |
Licenses: | MIT |
Submitter: | losinggeneration |
Maintainer: | alerque |
Last Packager: | alerque |
Votes: | 44 |
Popularity: | 0.003745 |
First Submitted: | 2012-10-16 15:00 (UTC) |
Last Updated: | 2020-08-25 07:44 (UTC) |
Solution:
sudo pacman -S lua-binaryheap pacaur -S lua-timerwheel
Looks like it misses dependencies. Right after install it crashes on start with following message:
/usr/bin/lua: /usr/share/lua/5.4/copas.lua:21: module 'binaryheap' not found:
no field package.preload['binaryheap']
no file 'lualibs/binaryheap.lua'
no file 'lualibs/binaryheap/binaryheap.lua'
no file 'lualibs/binaryheap/init.lua'
no file '/usr/share/lua/5.4/binaryheap.lua'
no file '/usr/share/lua/5.4/binaryheap/init.lua'
no file '/usr/lib/lua/5.4/binaryheap.lua'
no file '/usr/lib/lua/5.4/binaryheap/init.lua'
no file './binaryheap.lua'
no file './binaryheap/init.lua'
no file 'bin/linux/x64/clibs54/libbinaryheap.so'
no file 'bin/linux/x64/clibs54/binaryheap.so'
no file '/usr/lib/lua/5.4/binaryheap.so'
no file '/usr/lib/lua/5.4/loadall.so'
no file './binaryheap.so'
stack traceback:
[C]: in function 'require'
/usr/share/lua/5.4/copas.lua:21: in main chunk
[C]: in function 'require'
src/editor/debugger.lua:7: in main chunk
[C]: in function 'dofile'
src/main.lua:597: in main chunk
[C]: in ?
Command exited with non-zero status 1
This error I managed to circumvent by installing community/lua-binaryheap
. But now I am stuck with this:
/usr/bin/lua: /usr/share/lua/5.4/copas.lua:1024: module 'timerwheel' not found:
no field package.preload['timerwheel']
no file 'lualibs/timerwheel.lua'
no file 'lualibs/timerwheel/timerwheel.lua'
no file 'lualibs/timerwheel/init.lua'
no file '/usr/share/lua/5.4/timerwheel.lua'
no file '/usr/share/lua/5.4/timerwheel/init.lua'
no file '/usr/lib/lua/5.4/timerwheel.lua'
no file '/usr/lib/lua/5.4/timerwheel/init.lua'
no file './timerwheel.lua'
no file './timerwheel/init.lua'
no file 'bin/linux/x64/clibs54/libtimerwheel.so'
no file 'bin/linux/x64/clibs54/timerwheel.so'
no file '/usr/lib/lua/5.4/timerwheel.so'
no file '/usr/lib/lua/5.4/loadall.so'
no file './timerwheel.so'
stack traceback:
[C]: in function 'require'
/usr/share/lua/5.4/copas.lua:1024: in main chunk
[C]: in function 'require'
src/editor/debugger.lua:7: in main chunk
[C]: in function 'dofile'
src/main.lua:597: in main chunk
[C]: in ?
Command exited with non-zero status 1
CMake Error at CMakeLists.txt:35 (message): Lua module "wx" is not found Call Stack (most recent call first): CMakeLists.txt:105 (check_lua_module)
/usr/bin/zbstudio
is a shell script that invokes /usr/bin/lua
. Editing that script to invoke /usr/bin/lua5.3
instead seems like a good interim solution if you need to run zbstudio right now.
@Popolon I fixed the wxlua
package to build again using Lua 5.3, but this package (even modified to use Lua 5.3 packages) won't detect that either. It doesn't like being compiled under a non-default system Lua at all. The zerobrane-studio-git
package doesn't fare any better right now because there is no upstream work that fixes what is actually broken.
I think the problem is in some of the CMake routines used to detect modules, but I'm out of time to try to put together patches right now. I'd be happy to accept contributions towards this if anybody comes up with something that works. git format-patch
dumped here works, or PR's to here.
wxlua-git currently compile with Lua-5.4, but then, zerobrain-studio doesn't detect it, as it try to search wxlua in lua 5.3. Perhaps a zerobrain-studio-git based on last git version could compile with it, else we need to wait for next releases of box wxlua and zerobrain.
This package seems to be broken now that lua has updated to 5.4, since the wxlua dependency is missing
@caleb, the package in your repo doesn't bundle the debugging modules either.
This package neither builds nor bundles the linux C module redistributables found under bin/linux in the source. These are library overrides that are absolutely vital for debugging. Their absence in the package, combined with some assertion by author that I might have misinterpreted to mean those were no longer needed (turns out he was talking about something else) sent me on a two-day angry goose chase because debugging just plain wouldn't work.
For lfs: zbstudio crashes when trying to search all files (ctrl-shift-f) For lpeg/lexlpeg: I get an error on startup about not being able to find "lexlpeg.markdown"
I think lexlpeg is part of Scintilla? See this commit that added it to zbstudio.
The "Source > Comment/Uncomment" ctrl-u hotkey also doesn't work, but I'm not sure if that's related to the parsers or not . It now lowercases the selected text instead of commenting. Manually clicking on the menu option still works.
Thanks for the report @DeltaF1. It does look like there is a problem with what Lua libraries to bundle, but I'm having trouble verifying exactly which ones.
Can you give me an example of something in zbstudio that crashes for each of these modules? I'm particularly interested in what lexlpeg has to do with this since I can't even find such a thing on Luarocks, much less my own system. It looks like something ZBS specific, but isn't getting packaged right.
It looks like there are a couple other things that could be needed as well.
This package seems to missing some lua dependencies, namely lfs, lpeg, and lexlpeg. My install crashes if I try to use features that depend on those lua libraries.
I commented on the linked Github issue, but for the sake of people with notifications turned on here, the issues @ipochto brought up have been resolved and this is expected to build cleanly now (and not segfault when run).
PSA: I've started hosting this and all its dependencies as prebuilt packages in my repository for those that want to install them using pacman
without messing around with building from the AUR.
Upd:
Issue on ZeroBrain Studio's github.
Unable to launch:
$ zbstudio
/usr/bin/lua: error loading module 'wx' from file '/usr/lib/lua/5.3/wx.so':
/usr/lib/lua/5.3/wx.so: undefined symbol: lua_tonumber
stack traceback:
[C]: in ?
[C]: in function 'require'
src/main.lua:38: in main chunk
[C]: in ?
I asked regarding our build issues and Paul provided a patch that should fix. Regardless, we should probably switch to his branch of wxLua. Both are linked in this email: https://www.freelists.org/post/zerobrane/Build-issues-on-Linux-which-wxLua-version-is-required,1
I've had a look at the build script, which is build/build-linux.sh. It includes the URLs to all the libraries that are being used, among them the wxwidgets and wxlua forks. It is a custom shell script rather than any existing build system, but maybe it can be used for packaging? I think it should at least be possible to use it to figure out how to build and where to install things.
If someone needs a working 1.80 you can just run the zbstudio.sh as a workaround.
The binary version of 1.70.1 I still have is available here with few other packages :
https://popolon.org/depots/Archlinux/
I also make a ArchlinuxARM version (for arm versions if needed) in :
https://popolon.org/depots/ArchlinuxARM/
I added all the files from the package wxlua-svn 252-3 I have on my system (x86-64), listed by pacman -Q --list wxlua-svn in this tarball (to untar in /, so you will be able to use it until this package is patched for changes, and to compile zerobrainstudio or use the package frop my ~repo :
https://popolon.org/depots/Archlinux/wxlua-svn-252-3.tar.xz
In the same directory, a modifed PKGBUILD for 1.80, the patch is replaced by a more generic sed :
https://popolon.org/depots/Archlinux/zerobrane-studio-1.80-1-any.PKGBUILD
The new version of zerobrane-studio (1.80) need a new version of wxlua, so upgrade of this package will depend on it.
/usr/bin/lua5.2: src/editor/package.lua:466: wxLua: Unable to call an unknown method 'ReplaceTargetRaw' on a 'wxStyledTextCtrl' type.
My version of wxlua-svn is 252-3, perhaps you can try to make the same version looking at past AUR git version, or ask to owner of package to correct it. Sorry, wxlua-svn is installed on my computer but I don't have the package anymore and if I try to compile it again it fail.
I will look at the upgrade of zerobrane-studio to version 1.80
I tried to get it to work with a few obvious edit and the patch no longer applies. Unfortunately even after getting it to the point where it should work I ran into some wxlua issue.
Wxlua-svn doesn't work anymore either.
Doesn't the Author of Zerobrane Studio have his own branch of wxlua or something? I think we should ask him for support on getting this to work properly.
Pinned Comments
alerque commented on 2020-02-27 16:20 (UTC)
PSA: I've started hosting this and all its dependencies as prebuilt packages in my repository for those that want to install them using
pacman
without messing around with building from the AUR.