-
-
Notifications
You must be signed in to change notification settings - Fork 335
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: "Undefined globals" in plugin environment like Wireshark #545
Comments
This is the recommended approach. |
Thanks, that's exactly what I need. |
May I ask for clarification on how to do this please? My lua script general.lua shows this error: so I added a file called compat.lua to my script folder, containing:
but general.lua still has the error and compat.lua also shows an error: What am I doing wrong? |
You've defined Add this to your I'm working on a more complete one here. https://github.com/roddypratt/router_dissectors/blob/main/wireshark.lua |
@roddypratt Thanks very much for your answer and for the file. |
Thanks very much!But there is still a small problem: |
|
I'm using Lua for developing Wireshark plugins. Wireshark defines various global objects/functions that must be used by plugins.
This gives a lot of "Undefined global" errors, which I can fix by adding these in the workspace settings Lua.diagnostics.globals
But, is there a better way of managing this so I can create a file like those in meta/template/*.lua and have that added to the globals?
The text was updated successfully, but these errors were encountered: