Addressables 2.3.7 Compile Error: 'Editor' is a namespace but is used like a type

Addressables 2.3.7 causes compile errors for editor assemblies (declared via AssemblyReference) that reference Unity.Addressables.Editor.

The following error is reported for all types that have a using UnityEditor declaration and use the Editor type by name:

error CS0118: 'Editor' is a namespace but is used like a type

Looking at the changes in 2.3.7, the problem appears to be Editor/GUI/AddressableAssetEntryTreeViewState.cs, which declares a namespace of Editor.GUI, which I believe should have been UnityEditor.AddressableAssets.GUI to match the other source files in that location.

The Editor.GUI namespace declaration can be seen here: com.unity.addressables@2.3.7 · needle-mirror/com.unity.addressables@92346d9 · GitHub

EDIT: I have submitted a bug report for this issue

4 Likes

Do you have a link to the bug report yet, so we can watch it?

… and so that we can vote on it?

Same here, everything broke after upgraded to 2.3.7

I was so happy that I thought I can finally sort my asset in group editor window on 2.x.x version :smiling_face_with_tear:

I’ve filed the bug report and received a reference number, but it has not been added to the Issue Tracker yet. I will update this thread with a link to the issue when it is available.

4 Likes

Hi all. I’ll find the bug and check into this.

2 Likes

Awesome, bc this is causing us problems upgrading to the v71 Meta XR Core SDK

Thanks @timtunity3d - the bug report case number is IN-92202

FYI everyone, my report was closed as a duplicate, there’s an IN PROGRESS issue already logged here: Unity Issue Tracker - "error CS0118: 'Editor' is a namespace but is used like a type" error when using 'Editor' as a class

1 Like