Before 2 weeks ago I can develop games on Ubuntu with Unity3D but after some updates or somethings I give "all compiler errors have to be fixed before you can enter play mode" messages. If I compile code on Intellij Rider it's ok, no problem. There is nothing on Unity console and I am researching about it since 2 weeks but I can not find any solution. I tried to install mono and .net core, yesterday find line ending problem an try to different editor but they don't work.
Produce Steps:
Create new 2D project
Add empty object to scene
Add script to empty object
Compile
ubuntu: 18.04
unity3d: 2017.4.26f1 and 2019.1