Skip to content

Create New C# Script can destabilize Rider Unity Plugin #2259

@fergjoe

Description

@fergjoe

If there is any error in naming a C# script (duplicate name, typo, invalid characters), Unity will report the compiler error as normal. Opening the file in Rider will disconnect that file from the project even after errors are corrected and the project is recompiled. Error detection either won't start or no longer processes project class references or using statements. Other code is unaffected and appears normal. Reopening file, closing and reopening Rider doesn't fix the issue.

To Reproduce:
1 - In Unity: Create - New C# Script or use CTRL+D to duplicate existing script
2 - Name script improperly (by accident of course!) 😄
3 - Allow Unity to compile
4 - In Rider: open badly named file and attempt to fix, recompile.

WORKAROUND : Close and restart Unity or force a recompile of Unity's plugins via the package manager will solve issue.

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