Skip to content

GoQLSearchProvider compiler define enables incorrect namespace for 2020.3 #245

@MostHated

Description

@MostHated

Hey there,
The GoQL Editor ASMDEF define 'AT_USE_QUICKSEARCH' is used within GoQLSearchProvider.cs, but the define itself is set to enable the incorrect using statement.

#if AT_USE_QUICKSEARCH || UNITY_2020_3
using Unity.QuickSearch;
#else //newer than 2021.2
using UnityEditor.Search;
#endif

Though, when using Unity 2020.3 the namespace of Unity.QuickSearch does not exist. The QuickSearch ASMDEF is named "com.unity.quicksearch", but that is not the actual namespace used within the QuickSearch code.

Errors
[CompilerError] The type or namespace name 'QuickSearch' does not exist in the namespace 'Unity' (are you missing an assembly reference?)
Compiler Error at Library/PackageCache/com.unity.selection-groups@0.7.2-preview/GoQL/Editor/GoQLSearchProvider.cs:15 column 13
14:   #if AT_USE_QUICKSEARCH 
-->15:   using Unity.QuickSearch;
16:   #else //newer than 2021.2
17:   using UnityEditor.Search;

Editor Assembly

Runtime Assembly

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions