Closed NiLSPACE closed 8 years ago
You should also add the new file to the APIImpl/All.lua
list file. That will, among others, load it in the CI.
Do you mind if I change all.lua to load all files in the current folder automagically with something like this: http://stackoverflow.com/questions/21416798/lua-global-variable-containing-path-to-current-file
Go ahead and make the APIImpl/All.lua
file load everything in the APIImpl
folder (except for itself, obviously). There's even no need to query the script's folder, since it will be always the same, the Checker is designed to run from its home folder, it will not work when called from other folders.
Oh, this is gonna be fun, having to compile openssl on all my machines...
I can make it so you simply can't test https if you are missing the luasec library if you'd like.
Done. I've decided not to automatically find the path for All.lua
. I had a little trouble with debug.getinfo
I suppose you'll want to wait merging this until you've got OpenSSL working?
I can make it so you simply can't test https if you are missing the luasec library if you'd like.
No, I don't want to have multiple "versions" of the Checker, based on what's installed. I can take care of my systems, you in the meantime take care of the CI. It needs the libssl-dev
system package installed before installing the luasec
rock.
It still won't install luasec
.
Strange, that helped on my Linux box. I'll try to SSH into the build machine to see if I can find what's wrong.
Use this command to install luasec
on the CI machine:
sudo luarocks install luasec OPENSSL_LIBDIR=/usr/lib/x86_64-linux-gnu
Since https://github.com/cuberite/cuberite/pull/3407 is not yet merged it failed, but otherwise it would've succeeded.
Funny, I've (finally) seen the StarWars movies just this weekend :)
That PR should not be needed, the IsOptional
attribute should be enough. I'll have a look at what's wrong here.
I believe it's normal. The first syntax accepts an url and a table (with optional arguments), while the other accepts an url and a function.
I suppose we have to wait a day to wait for the new ManulAPI, or do you want to merge it as is?
I've triggered a new Jenkins build, it should be complete within 10 minutes and then we can restart the CI build here.
(we're already using the API descriptions from the official buildservers, they come from the Win64 Master build)
And I've got LuaSec working on my main computer, so we should be all good.
Great :)
Are you using ZeroBraneStudio for the Lua development? If so, consider installing the StripTrailingWhitespace package: https://github.com/pkulchenko/ZeroBranePackage/blob/master/striptrailingwhitespace.lua
I do use it, but didn't use it for the CuberitePlugin checker. Can I open multiple projects in ZeroBraneStudio at the same time? That way I can keep one open containing WorldEdit and one for the Checker.
It finished successfully this time :)
It is easy to switch between multiple projects in ZBS, use the "Choose a project directory" button (6th on the toolbar) and navigate to the Checker; then you can use the drop-down next to that button to quickly switch between the last projects. It remembers about 20 last items, so its an okay solution :)
I'd prefer to keep the two projects open simultaneously in two separate windows if possible.
That won't work properly because of ZBS's debugger - it expects to be listening on a TCP socket, but only one IDE instance can open such a socket. Maybe ask Paul on the ZBS mailing list, he's pretty open to all kinds of suggestions and he might see a solution for you even with the current status - perhaps there's a cmdline param to tell ZBS to listen on another port.
Requires https://github.com/cuberite/cuberite/pull/3407