-
Notifications
You must be signed in to change notification settings - Fork 3
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
Do not emit warnings for underscored arguments #29
Comments
This is actually a limitation in the We're actually working on an experimental replacement for the Another limitation is that you may need to add unnecessary function heads to set default arguments at times. Will continue working on this and keep you posted! |
Ahoy all! I've just pushed a PR containing a new Usage should generally be similar: use Sibyl.Experimental
@sibyl trace: true
def my_function do
:ok
end Or use Sibyl.Experimental, trace_all: true Any thoughts would be much appreciated: #35! |
I see this was supposedly solved here: #23 Note: I am on the latest Sibyl and experiencing major issue compiling functions with unused argument |
EDIT: the issue was actually caused by Sibyl not getting updated properly, it was conflicting with for anyone else with the same issue:
|
When using
@decorate trace()
, warnings for underscored arguments are emitted, however these arguments are not being used in the function itself:Will result in
warning: the underscored variable "_params" is used after being set. A leading underscore indicates that the value of the variable should be ignored. If this is intended please rename the variable to remove the underscore
Probably can be fixed with
generated: true
in quotesThe text was updated successfully, but these errors were encountered: