Search Unity

Bug Error when creating new projects

Discussion in 'Editor & General Support' started by Strangair, Oct 7, 2022.

  1. Strangair

    Strangair

    Joined:
    Oct 1, 2022
    Posts:
    2
    Hi,

    So I'm new to Unity and still going through tutorials and guides, have just done some stuff related to prefabs, so not that far in.

    When I started a new Project I keep on getting the errors below, with no idea why they have appeared and how to get rid of them:

    Library\PackageCache\com.unity.ide.rider@3.0.15\Rider\Editor\RiderScriptEditorData.cs(1,1): error CS1056: Unexpected character '

    Library\PackageCache\com.unity.ide.visualstudio@2.0.16\Editor\Messaging\Serializer.cs(1,1): error CS1056: Unexpected character '

    Library\PackageCache\com.unity.testtools.codecoverage@1.0.1\Editor\CoverageFormats\OpenCover\Model\Class.cs(1,1): error CS1056: Unexpected character '


    upload_2022-10-7_18-50-10.png

    Any help would be amazing, if this has happened before and theres another post, please let me know, I have searched but I cannot find anything.

    Thank you in advance.
     
  2. unity_053BF234B09CB14CF7BF

    unity_053BF234B09CB14CF7BF

    Joined:
    Apr 29, 2022
    Posts:
    1
    I'm having the same problem.
     
  3. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,742
    Extra unwanted packages in new projects (collab, testing, rider and other junk):

    https://forum.unity.com/threads/temp-unityengine-testrunner-dll-error.1133938/#post-7287748

    About the fastest way I have found to make a project and avoid all this noise is to create the project, then as soon as you see the files appear, FORCE-STOP (hard-kill) Unity (with the Activity Manager or Task Manager), then go hand-edit the Packages/manifest.json file as outlined in the above post, then reopen Unity.

    Sometimes the package system gets borked from all this unnecessary churn and requires the package cache to be cleared:

    https://stackoverflow.com/questions/53145919/unity3d-package-cache-errors/69779122