-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
IsWhitespace from util package not working #3297
Comments
The "micro/util" you can import in Lua is not the same thing as the internal util package. The only functions it exposes are: Lines 148 to 165 in 9176508
(also documented in |
I see. That being the case, it seems like this part of
|
The documentation is correct although I can see how it could be confusing if you don't read it carefully: |
I more meant that it says to go look at the internal documentation at that link "to see the full list of available methods," but not all of those methods are actually available. |
The documentation explicitly warns: "Note that only methods of types that are available to plugins via the functions above can be called from a plugin." For example, one of those "functions above" is
etc. |
Again, this is not clear from the documentation for the reasons I stated above. But I won't belabor it at this point. |
Description of the problem or steps to reproduce
I'm working on a plugin, and tried to use
IsWhitespace(rune)
, defined in the util package. The relevant code follows:When
preRune
is triggered, micro crashes with an error pointing to the if statement and the error messageattempt to call a non-function object
.From what little I know of Lua, it seems like this means
IsWhitespace
isn't accessible?Specifications
Commit hash: 225927b
OS: Linux (openSUSE tumbleweed, specifically)
Terminal: Konsole
The text was updated successfully, but these errors were encountered: