Lua dynamic libraries isn't enabled
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
scite (Ubuntu) |
Fix Released
|
Low
|
Unassigned | ||
Bionic |
In Progress
|
Low
|
Unassigned |
Bug Description
[Impact]
No Lua module which is in the dynamic library can be loaded by SciTE on Linux since >=4.0 (when it started using Lua 5.3).
[Test Case]
First - create /usr/local/
sudo apt -y install lua-system
sudo mkdir -p /usr/local/
sudo ln -s /usr/lib/
Add a Lua script to the startup scripts: (Use the menu "Options" -> "Open Lua Startup Script") and add
local system = require 'system.core'
print( "System.Gettime is ", system.gettime() )
which should simply print the current time using the Lua library when starting SciTE, instead gives an error:
error loading module 'system.core' from file '/usr/local/
dynamic libraries not enabled; check your Lua installation
>Lua: error occurred while running startup script
[Other]
(Previous text):
SciTE in ubuntu 18.04 has the Lua library embedded, and compiled without dynamic libraries enabled. This makes it impossible to load Lua modules which is in the dynamic library on SciTE >= 4.0, when it started using Lua 5.3.
On later versions (SciTE >= 4.1.0) I have built Lua without using the embedded Lua library but using Debian-packaged shared object instead, and there this isn't a problem. (I am one of the Debian maintainers of SciTE).
This leaves the version in 18.04, where this still is a problem.
See upstream bug at
https:/
for a patch. Another alternative is to backport version 4.1.0 or later to Ubuntu 18.04.
tags: | added: bionic patch |
Changed in scite (Ubuntu): | |
importance: | Undecided → Low |
tags: | added: patch-accepted-upstream |
Changed in scite (Ubuntu Bionic): | |
importance: | Undecided → Low |
Changed in scite (Ubuntu): | |
status: | New → Fix Released |
tags: | removed: verification-needed |
tags: | added: verification-done |
tags: |
added: verification-needed removed: verification-done |
tags: |
added: verification-needed-bionic removed: verification-done-bionic |
Changed in scite (Ubuntu Bionic): | |
status: | Fix Released → In Progress |
Upstream fix here:
https:/ /sourceforge. net/p/scintilla /scite/ ci/2b22af2a7fbb aec530d5043523e cf8d49a6e02c9/