If all else fails close Unity, delete Obj/Library and open the Project again. Careful: Depending on the size of your project a complete reimport will take some time.
Tried same, but does not work… delete Obj/Library folder and open project again, still the scriptable object shows yellow warning (script not compiled) until play game once.