Skip to content

Question: "Undefined globals" in plugin environment like Wireshark #545

Closed
@roddypratt

Description

@roddypratt

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions