using Windows 10
using Unity 6000.0.2f
Hey folks, not sure if this is a bug, but it is a problem in my buildpipeline I use based on ScriptableObjects and TeamCity. Today I got this problem with one of my Unity projects building throw TeamCity with buildmachine. When I build it locally on my devstation everything builds without a problem, but when triggered remotely, the first buildstep, which is just the checkout and the unity build this issue pops up:
[Script Updater] Failed to resolve 'None' expression : Library/PackageCache/com.unity.2d.pixel-perfect/Editor/Converter/U2DToURPPixelPerfectConverter.cs (57,76).
This may cause expected updates to not be applied.
[18:28:19] : [Step 1/2] [ApiUpdater] Total time: 4951ms, Parse response file: 205ms, Collect updater configs: 2323ms, Update: 2413ms, Save: 10ms Files: 2 modified / 2 visited / 5 total (Library/Bee/artifacts/1900b0aEDbg.dag/Unity.2D.PixelPerfect.Editor.dll).
[18:28:19] : [Step 1/2] STDERR:
[18:28:21]E: [Step 1/2] [Script Updater] Library/PackageCache/com.unity.2d.pixel-perfect/Editor/Converter/U2DToURPPixelPerfectConverter.cs(26,65): error CS0234: Der Typ- oder Namespacename "PixelPerfectCamera" ist im Namespace "UnityEngine.Experimental.Rendering.Universal" nicht vorhanden. (Möglicherweise fehlt ein Assemblyverweis.)
[18:28:21]E: [Step 1/2] [Script Updater] Library/PackageCache/com.unity.2d.pixel-perfect/Editor/Converter/U2DToURPPixelPerfectConverter.cs(36,39): error CS0234: Der Typ- oder Namespacename "PixelPerfectCamera" ist im Namespace "UnityEngine.Experimental.Rendering.Universal" nicht vorhanden. (Möglicherweise fehlt ein Assemblyverweis.)
[18:28:21]E: [Step 1/2] [Script Updater] Library/PackageCache/com.unity.2d.pixel-perfect/Editor/Converter/U2DToURPPixelPerfectConverter.cs(38,39): error CS0234: Der Typ- oder Namespacename "PixelPerfectCamera" ist im Namespace "UnityEngine.Experimental.Rendering.Universal" nicht vorhanden. (Möglicherweise fehlt ein Assemblyverweis.)
This text: Der Typ- oder Namespacename âPixelPerfectCameraâ ist im Namespace âUnityEngine.Experimental.Rendering.Universalâ nicht vorhanden. (Möglicherweise fehlt ein Assemblyverweis.)
is german and just means: a type or namespace PixelPerfectCamera is not available in âUnityEngine.Experimental.Rendering.Universalâ (maybe an assemblyreference is missing)
Now the funny thing is: the build itself is actually successful. I can access the build and start the .exe without issues, but the following buildsteps are skipped since this buildstep is rendered as failed bc of this issue in TeamCity apparently.
I did some investigation and for the love of all deities I cant fix that issue above, but it seems that I dont even need to fix it, bc the build in unity itself gets executed.
What I also did is opening the cloned project on the buildmachine manually and doing a manual build there. The build of the game itself gets created, itâs just this one error log apparently renders the TeamCity buildstep as failed for some reason. Apparently Unity throws the error but somehow fixes it along the further import process I guess. I even opened the project on the buildmachine and checked the asmdef files of the PixelPerfect package and it seems fine. I deleted the Library folder and re-opened it manually. There seems no issue.
But why is this [Script Updater]-error thrown in the first place? It seems when cloning and importing the error is thrown but then kinda solved on its own? Or is it really? Cant tell what is happening there but it renders my CI setup as failed, even when I try to configure the fail conditions to ignore all errors it still counts it as failed which is annoying.