Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Scripts do not compile for new projects

Discussion in 'Linux' started by hawkeye_unity, May 16, 2019.

  1. hawkeye_unity

    hawkeye_unity

    Joined:
    Nov 3, 2013
    Posts:
    9
    Hi folks,

    everytime I create a new project (Ubuntu 19, regardless which unity version I try). the scripts do not compile. If I open the project for the first time, I get warnings that the project would contain deprecated API calls.

    If I try to create a new script, I see in the preview view
    ""No MonoBehavior scripts in the file, or their names do not match the file name..."

    I have the impression that the .NET assemblies are not correctly attached but I have no clue how to fix that.
     
  2. marcdi_unity

    marcdi_unity

    Unity Technologies

    Joined:
    May 29, 2018
    Posts:
    17
    Hi, Unity 2019.1.2f1 is the latest available version for Linux on the preview stream. Would you be able to post the full editor log you get when you create a fresh new project? Located at ~/.config/unity3d/Editor.log

    Please note that Ubuntu 19.04 isn't currently supported yet, but the known issues don't usually interfere with the problems you're seeing.
     
    FROS7 likes this.
  3. hawkeye_unity

    hawkeye_unity

    Joined:
    Nov 3, 2013
    Posts:
    9
    Hi,

    I checked the log and I guess it is related to https://issuetracker.unity3d.com/issues/linux-editor-package-manager-is-missing-on-ubuntu-19-dot-04.

    Same error. "No usable version of the libssl was found". Also with the latest alpha.

    ---CompilerOutput:-stdout--exitcode: 134--compilationhadfailure: True--outfile: Temp/Unity.TextMeshPro.dll
    -----CompilerOutput:-stderr----------
    No usable version of the libssl was found
    /home/xxx/Unity/Hub/Editor/2019.3.0a2/Editor/Data/Tools/RoslynScripts/unity_csc.sh: line 89: 6272 Aborted (core dumped) "/home/xxx/Unity/Hub/Editor/2019.3.0a2/Editor/Data/Tools/RoslynScripts/../../Tools/Roslyn/csc" /shared /noconfig @temp/UnityTempFile-2ae961b7cfc3820d2aa9281b868779ee
    -----EndCompilerOutput---------------
    - Finished compile Library/ScriptAssemblies/Unity.TextMeshPro.dll


    BTW. I have installed .NET core also, I do not know if that might have sideeffects too ?

    So, I guess there is currently no workaround ?
     
  4. marcdi_unity

    marcdi_unity

    Unity Technologies

    Joined:
    May 29, 2018
    Posts:
    17
    For the libssl error right now a viable workaround would be to download the Cosmic package for libssl1.0 and install that alongside Disco's libssl1.1, but since it's not the cleanest way to get things working I'll leave out giving full instructions - and you'd want to make sure to revert the install once we have a fix.
     
    Eyap likes this.
  5. hawkeye_unity

    hawkeye_unity

    Joined:
    Nov 3, 2013
    Posts:
    9
    Thanks, works now ! :)
     
  6. Garzec

    Garzec

    Joined:
    Mar 3, 2016
    Posts:
    151
  7. marcdi_unity

    marcdi_unity

    Unity Technologies

    Joined:
    May 29, 2018
    Posts:
    17
    I have no ETA at this time, but it is being actively worked on
     
    FROS7 likes this.
  8. Daniel_Abeleira

    Daniel_Abeleira

    Joined:
    Oct 16, 2018
    Posts:
    7
    My scripts aren't compiling either. Using 2019.3b and Windows. In the import inspector it shows the changes, but they aren't actually applied when playing.