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

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.

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

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

This issue should be resolved in versions 2.3.16 and 1.23.1. You can use “Install by name” in the Package Manager window with “com.unity.addressables” and the version you want to use.

Thanks. By the way, the changelog for 2.3.16 has the date “2024-01-08”, should be 2025.