Modify

Opened 6 years ago

Closed 6 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 6 years ago.
SciTE-Procedure_entry_points.txt

Download all attachments as: .zip

Change History (5)

comment:1 Changed 6 years ago by Jos

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 Changed 6 years ago by BugFix

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.

Changed 6 years ago by Bitnugger

SciTE-Procedure_entry_points.txt

comment:3 Changed 6 years ago by Bitnugger

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 Changed 6 years ago by Jos

  • Resolution set to Wont Fix
  • Status changed from new to closed

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

Jos

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

Action
as closed The owner will remain Jos.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.