lua script not getting executed in 4.2.x release

asked 2024-04-17 11:30:36 +0000

vk gravatar image

On any linux machine, after upgrading from 4.0.12 to 4.2.x release, lua scripts are not getting executed. May i know what steps i need to follow to run lua scripts in 4.2.x release ?

edit retag flag offensive close merge delete

Comments

Are the scripts in the "Global Lua P.lugins" or "Personal Lua Plugins" directory?
Or are they being called with the tshark-X lua_script?

In the Wireshark gui, are they listed in Help -> About Wireshark:Plugins?

Chuckc gravatar imageChuckc ( 2024-04-17 12:57:46 +0000 )edit

1) On linux machine, plugins are kept at /usr/lua/. But wireshark is not picking up.

2) On windows, while starting wireshark, below mentioned-error message is seen (lua scripts are present at /Users/abc/.config/wireshark/plugins/check.lua)

Lua: Error during loading: /Users/abc/.config/wireshark/plugins/test.lua:33: attempt to call field 'prepend_path' (a nil value) stack traceback: /Users/abc/.config/wireshark/plugins/test.lua:33: in main chunk

Looking for a way to use lua script with wireshark 4.2.x version (particularly on linux)

vk gravatar imagevk ( 2024-04-17 13:47:47 +0000 )edit

prepend_path removed: 11787: Lua: Remove package.prepend_path

What is config to have linux system look in /usr/lua for scripts?
Environment variable? Change to init.lua?

init.lua behavior changed here: 19516: 4.2.0: init.lua in subdirectories not loaded anymore

Chuckc gravatar imageChuckc ( 2024-04-17 14:37:44 +0000 )edit

lua scripts were working for me in 4.0.12 version. Can you share some steps or sample code on what all changes are required to run lua scripts in 4.2.x ?

vk gravatar imagevk ( 2024-04-17 17:40:18 +0000 )edit

Did you check the two merge requests in the comment above?

Chuckc gravatar imageChuckc ( 2024-04-18 01:19:46 +0000 )edit