Skip to content

bug: Project-mode lint hangs when project.assets.json exists in obj/ directories #840

@michaelglass

Description

@michaelglass

dotnet fsharplint lint Tests.fsproj hangs indefinitely on one project in my repo. The problem surfaced after extracting code from one project into a sibling project. I haven't put in the effort to reproduce it outside my project, but the behavior is 100% reproducible in my closed-source codebase.

  • Hangs with project.assets.json present in obj/ dirs
  • Completes in ~23s after removing project.assets.json from both the test project and its library dependency (removing from only one is not sufficient)
  • Wildcard mode (Tests/**/*.fs) works fine regardless
  • dotnet build-server shutdown, DOTNET_CLI_DO_NOT_USE_MSBUILD_SERVER=1, MSBUILDDISABLENODEREUSE=1 don't help

Environment: FSharpLint 0.26.10, .NET 10.0, macOS ARM64

Workaround: Temporarily move project.assets.json out of obj/ dirs before linting, restore after.

Happy to share more project structure details if helpful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions