"Weaver failure" Error

I just finished editing c# script and when I come back I get the following error message in the ‘clear on play’ section in my Console Console:

“Weaver failure: unable to locate assemblies (no matching project) for: Temp/Assembly-CSharp.dll
UnityEditor.Scripting.Serialization.Weaver:WeaveUnetFromEditor(String, String, String, String, Boolean)”

Note: This is the first time I’ve actually written code using Unity, so it might be caused by something I overlooked

It fixes itself after you restart Unity as well as the editor.