-
Notifications
You must be signed in to change notification settings - Fork 72
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
Fix for issue #341 #608
Fix for issue #341 #608
Conversation
@Thorium hi Tuomas, great contribution! Do you mind adding a regression test? |
LGTM! Just 2 nits please:
|
Oh, and for this to really happen, you need to enable GitHubActions in your fork, first (before pushing, after the interactive rebase). |
You can test specific commits just by id |
But I want GitHub to do it for me :) Can you enable GitHubActions in your fork please?
Mmm, then we should bring some fragment of code from ProvidedTypes.fs like you mentioned in the bug? |
I was able already to fix ProvidedTypes.fs with the following workaround:
However, as a workaround without this fix, that's a quite un-inviting user experience for new users. |
Completely agree, but let's not lose scope here, we're talking about fixing issue #341 here. Can you rescue a previous version of ProvidedTypes.fs that reproduces the bug? |
That's miles long. Rather use the code that is in the original issue. But it's not happening while in source-code (as you can see from the issue), rather when using external files only. Which means it should be an integration test and not a unit test. But I don't see the amount of work to add integration tests would be beneficial on resolving the issue. |
That's fair enough. I'll then merge this shortly, at least knowing it doesn't break any current tests. I just need to figure out if I want to merge this before or after next release. |
The cause of this crash is that there are multiple rules hit for a variable.
Right now what happens: FSharpLint crashes and doesn't produce output.
Instead, if we just ignore the failure of adding a rule failure to a single line of code, the lint-task would produce a result.
After fixing the first issue the end-user can re-run the lint again and see if the earlier ignored rule still hits or not.