-
Notifications
You must be signed in to change notification settings - Fork 73
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
Lint Not Working For .NET Framework Projects #336
Comments
The same issue seems to apply on
with project file starting
|
Same here for
|
Would be good to have it fixed on dotnet 2.2.1xx series which is compatible with VisualStudio 2017 (in contract to 2.2.3XX) |
Do we have any workaround for |
Came here searching for a solution to this. Wanted to find ways to improve my code because I'm still learning, and I guess I can't because it's a Framework project? Should I have inferred from the use of the Edit: If this linter won't work, is there a specific source list of the things it's looking for somewhere? |
@jmhickman, it used to work, in fact, there was even a VS extension before Core projects even existed. But that project wasn't ported to newer VS versions (but the command line version still worked). Now there's apparently a bug that stops us from using it with the classic project style. Linter is great, it would be awesome to be able to enable it again for all my F# projects. |
I've added this to the v1 release milestone. I believe the issue is with our usage of dotnet-projinfo to get the source files from the project and the project options to use when parsing those files. But I think the linter should still work for the old project format; as the recommended way to run the linter is as a dotnet tool, I suppose you would need to have .NET core installed, but should still be able to run it against your old-style projects. Possibly the work done to support multi-targeted projects in #435 would also relate to this. |
I believe this should be fixed with #442. @abelbraaksma or @jmhickman could you try running version 0.16.1 on some of your projects and see if it works? |
@jgardella, it definitely works better now! Running it on a
The good part shows this though, which is pretty nice: It also appears to go over only a handful of files in the first project before it continues onto the next. |
I tried a dozen or so other projects and almost all give me:
|
This will open the doors to fixing this FSharpLint's bug: fsprojects/FSharpLint#336 (which is important for our FSharpLint v1.0 release milestone)
This will open the doors to fixing this FSharpLint's bug: fsprojects/FSharpLint#336 (which is important for our FSharpLint v1.0 release milestone)
This will open the doors to fixing this FSharpLint's bug: fsprojects/FSharpLint#336 (which is important for our FSharpLint v1.0 release milestone)
Upgrade Ionide.ProjInfo package version to 0.58.0. Fixes fsprojects#336.
Upgrade Ionide.ProjInfo package version to 0.58.0. Fixes fsprojects#336.
Upgrade Ionide.ProjInfo package version to 0.58.0. Fixes fsprojects#336.
Upgrade Ionide.ProjInfo package version to 0.58.0. Fixes fsprojects#336.
Upgrade Ionide.ProjInfo package version to 0.58.0. Fixes fsprojects#336.
Upgrade Ionide.ProjInfo package version to 0.58.0. Fixes fsprojects#336.
Upgrade Ionide.ProjInfo package version to 0.58.0. Fixes fsprojects#336.
Upgrade Ionide.ProjInfo package version to 0.58.0. Fixes fsprojects#336.
* Upgrade Ionide.ProjInfo to 0.58.0 (needed to bring the fix for parsing legacy projects, upstream PR: ionide/proj-info#131 , upstream commit: ionide/proj-info@3542cee ). * Upgrade FSharp.Compiler.Service to version 41 (needed because the new Ionide.ProjInfo version, depends on a higher version of F.C.S.). * Made changes to framework, rules and test framework code necessary to accomodate API changes in this version 41.x of FCS compared to version 40. Fixes #336
Sorry everyone for taking so long to fix this bug! It was initially fixed in an upstream PR of our ProjInfo dependency: ionide/proj-info#131 but then adopting that was not easy because it required us to upgrade FCS. Thank @su8898 for his ProjInfo fix and @webwarrior-ws for upgrading FCS. And if you want to test this, you can already grab a pre-release from nuget: https://www.nuget.org/packages/dotnet-fsharplint/0.23.7--date20240108-0751.git-6636fb2 Any feedback appreciated. |
Funnily enough, by now I rarely, if ever, use .NET Framework projects anymore 😄. Maybe someone else can test it that still use Framework? |
Description
Linting a .NET Framework project throws an error:
Repro steps
Expected behavior
Lint should run successfully, as is the case when repeating the above steps but creating a .NET Core project instead:
Actual behavior
The following error is displayed:
Known workarounds
Using .NET Core instead of .NET Framework.
Related information
The text was updated successfully, but these errors were encountered: