** Description changed:

- 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.
+ [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/lib/lua/5.3/system and symlink a module there:
+ 
+ sudo apt -y install lua-system
+ sudo mkdir -p /usr/local/lib/lua/5.3/system
+ sudo ln -s /usr/lib/x86_64-linux-gnu/lua/5.3/system/core.so 
/usr/local/lib/lua/5.3/system/core.so
+ 
+ 
+ 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/lib/lua/5.3/system/core.so':
+       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 
+ See upstream bug at
  https://sourceforge.net/p/scintilla/bugs/2058/
  
  for a patch. Another alternative is to backport version 4.1.0 or later
  to Ubuntu 18.04.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1804865

Title:
  Lua dynamic libraries isn't enabled

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/scite/+bug/1804865/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to