-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Show errors and warnings for the 'smlnj' linter #3957
Conversation
@hsanson @benknoble Please take a look. |
Looks good. Appreciated if @benknoble can test this before merging it. |
I will take a look tonight if I can |
Working on a single file looked fine. Working on a CM-based project worked fine, partly because ALE only uses one or the other (and prefers CM when it can). Here is a failure I found:
On a related note, if the error isn't in the file I'm currently looking at, |
I could change the regex from |
Saw the new commit: did you try it out on the case I mentioned? I haven't yet. |
If @cwfoo can confirm their latest commit fixes the case I mentioned, then I approve. |
@benknoble With the latest commit (i.e. "Change smlnj stdIn regex"), ALE would show (I tried to test this yesterday, but I was bitten by a CM file that I left in my home directory some time ago. ALE really prefers CM!). |
Great, than I think is ready to merge @hsanson
Well, that's because CM should be preferred :) actually, it's because if there's a CM file, than there's likely no other way to correctly (try to) compile the file with SML/NJ—simply running it may not work if depends on modules declared in the CM file. OTOH, invoking it via CM is guaranteed to work. Granted, the CM file finder is a little… eager… in that it looks upwards and takes the first one it finds (even with multiple in the same directory). If there is a better way to handle this, suggestions are welcome. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution.
Fixes #3953