Search Unity

Bug Cannot create Settings Provider for my own custom settings provider

Discussion in 'Editor & General Support' started by KageKirin, Jul 25, 2022.

  1. KageKirin

    KageKirin

    Joined:
    Jan 22, 2014
    Posts:
    50
    Hi,

    After restarting Unity, I had 2 of my own custom SettingsProvider throw the error below:

    Cannot create Settings Provider for: CreateGCPRefreshSettingsProvider
    UnityEditor.SettingsWindow:OpenProjectSettings () (at /Users/bokken/buildslave/unity/build/Editor/Mono/Settings/SettingsWindow.cs:480)


    Cannot create Settings Provider for: CreateCSharpierSettingsProvider
    UnityEditor.SettingsWindow:OpenProjectSettings () (at /Users/bokken/buildslave/unity/build/Editor/Mono/Settings/SettingsWindow.cs:480)


    What is causing the error, and how do I fix it? I figure this is the same error cause, since it's printing the same line 480 in SettingsWindow.cs as cause.

    Please note that both providers were working correctly both before restarting Unity, and in their respective development environments.

    If it helps, the packages are open source at the following repos:
    https://github.com/KageKirin/UnityCSharpier
    https://github.com/KageKirin/UnityGCPRefresh

    Regards.
     
  2. KageKirin

    KageKirin

    Joined:
    Jan 22, 2014
    Posts:
    50
    I just restarted Unity again, now it works. wth?!

    Anyway, please let me know what is causing this issue, and how to prevent/fix it.