You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code error Which[a, b, a, c] gets picked up by the plugin, but a related one like Which[a, b, c] does not. Presumably this is because CodeInspect assigns a relatively low confidence (0.55) to this case?
CodeInspect["Which[a, b, a, c]"]
CodeInspect["Which[a, b, c]"]
This is rather unfortunate, since this is a pretty important and common error to catch. I don't know what the proper solution is, but I feel like this is worth addressing.
The text was updated successfully, but these errors were encountered:
bostick
transferred this issue from WolframResearch/vscode-wolfram
Sep 15, 2022
The problem is that issues that have to do with argument counts (like CodeInspect["Which[a, b, c]"]) do not currently have good technology for distinguishing when a pattern sequence represents the correct arguments.
I mean like with:
CodeInspect["foo[c___] := Which[a, b, c]"]
where c is actually a sequence of arguments.
It would be really good for CodeInspector` to get to the point of understanding these things.
So issues about argument counts have low confidence (for now).
The code error
Which[a, b, a, c]
gets picked up by the plugin, but a related one likeWhich[a, b, c]
does not. Presumably this is because CodeInspect assigns a relatively low confidence (0.55) to this case?This is rather unfortunate, since this is a pretty important and common error to catch. I don't know what the proper solution is, but I feel like this is worth addressing.
The text was updated successfully, but these errors were encountered: