Modify

Opened 7 years ago

Closed 7 years ago

#3692 closed Bug (Wont Fix)

SciTE v. 4.1.2.0 - the function luaL_register has removed

Reported by: BugFix Owned by: Jos
Milestone: Component: SciTE4AutoIt
Version: 3.3.14.0 Severity: None
Keywords: SciTE luaL_register Cc: mcbarbysa@…

Description

Because luaL_register has removed, it's impossible to use external dll inside SciTE (i.e. shell.dll, lfs.dll, gui.dll).
So a lot of helpful additions for SciTE, written by several users, are useless over night.
To reproduce:
Copy one of this dll files in your user lua directory (i.e. shell.dll:https://scite-ru.bitbucket.io/pack/tools/LuaLib/shell.html).
Create in SciTEUser.properties: Lua.User.Scripts.Path=C:\YOUR-FILES\Lua
Add in SciTEStartup.lua:

local sUserLua = props["Lua.User.Scripts.Path"]
LUA_USER_PATH = sUserLua .. "\\?.dll;" .. sUserLua .. "\\?\\?.dll;"
package.cpath = LUA_USER_PATH .. package.cpath

require "shell"
if shell then
    table.foreach(shell, print)
end

Restart SciTE.
In older versions of SciTE, all components of the shell.dll will print out while starting SciTE.
But now you get an error message "procedure entry point 'luaL_register' not found in 'shell.dll'". This is not the truth - the entry point is missing in "SciTE4.1.2.0.exe".

Was removing LuaL_register an oversight or intention? If the latter is true, why?

Attachments (1)

SciTE-Procedure_entry_points.7z (1.2 KB ) - added by Bitnugger 7 years ago.
SciTE-Procedure_entry_points.txt

Download all attachments as: .zip

Change History (5)

comment:1 by Jos, 7 years ago

Is this working in Neil's official version of SciTE and failing in my version or is this a generic issue in SciTE 4.1.2?

Jos

comment:2 by BugFix, 7 years ago

I've now tested with the original from Neil (v 4.1.3 Jan, 10. 2019).
The result is the same. So I'll link this report to Neil's scite-interest group.

Thanks for the hint.

by Bitnugger, 7 years ago

SciTE-Procedure_entry_points.txt

comment:3 by Bitnugger, 7 years ago

There are even more procedure entry points that are no longer present in the newer SciTE versions.

The list in the Attachment SciTE-Procedure_entry_points.7z shows which procedure entry point is supported in which SciTE version.

comment:4 by Jos, 7 years ago

Resolution: Wont Fix
Status: newclosed

Ok... I will close this report. :)

Jos

Modify Ticket

Action
as closed The owner will remain Jos.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.