#Can't Install Unity

1 messages · Page 1 of 1 (latest)

atomic linden
#

Where I'm at right now:
I have been trying to install Unity for the past week now and have yet to get a script running without Unity either crashing or thinking that components don't exist.

-Fresh install of Windows 11 Pro
-Multiple reinstalls of Unity Hub and Editors
-When creating a brand new project of any kind I am prompted with:
"The project you are opening contains compilation
errors. Entering Safe Mode allows you to resolve these
errors without waiting for the rest of your project to
import. If you select Ignore (not recommended), your project
will continue to import, but it may be in a broken or
unusable state."
-When continuing in safe mode I see a large number of errors, except every single one of them is invisible/blank. No readable text anywhere.
-If you would like to view the Editor log after a fresh run of a project you can see it here: https://pastebin.com/raw/cmFti2yX

The problem:
The moment I try to add a C# script issues arise.
When creating a blank new C# script in the editor and then trying and add it as a component to game object, I receive this error message:
"Can't add script component 'TestScript' because the
script class cannot be found. Make sure that there are
no compile errors and that the file name and class
name match."

I also cannot enter runtime as I am told I must fix all compiler issues, those being the blank ones.

I would really appreciate anyone's help. I had several people help me this week but we have never solved the issue. I appreciate any amount of help I can get and I really hope to get back to learning Unity, but first must get through this issue.

placid crater
#

Can you share an editor log file after opening a project in non safe mode?

atomic linden
#

Brand new log file, just created. Started up project and hit ignore

#

I only have two blank errors

placid crater
#

It seems like unity fails to recompile some of it's assemblies:

[ScriptCompilation] Recompiling all scripts because: InitialRefresh: Cached user assemblies were invalid
- Starting script compilation
- Starting compile Library/ScriptAssemblies/UnityEngine.TestRunner.dll
- Starting compile Library/ScriptAssemblies/UnityEngine.UI.dll
#

It doesn't say why though.

#

Can you find the UI package/module in the package manager and take a screenshot of the info?

#

If I were you, I'd fill a bug report/open a forum post a week ago when you started encountering the issue. Honestly it doesn't look like something the community can help with. You need to talk with unity support directly.

#

But, if you really want, we could try digging into what's wrong with the compilation. I'm a bit curious myself.

atomic linden
#

Ah alright, yah I haven't tried a bug report yet as I was hoping it was a known big, but I see it's pretty strange. I've already gone to bed so can't get you the package module till tomorrow. I'll definitely get a bug report started, and thank you so much for your help. I really appreciate it. I have a curse for attracting these kinds of issues but its a whole lot better when I can get help one on one

placid crater
#

Aight. I'll keep an eye on this thread.

atomic linden
placid crater
atomic linden
#

Iv tried the manual resolve button but to no avail

placid crater
#

You could check the C:\Program Files\Unity\Hub\Editor\2020.3.41f1\Editor\Data\Tools\RoslynScripts\unity_csc.bat file and see if you can elevate the compilation verbosity level. Then it might give more details on why the compilation fails.

atomic linden
#

give me just a bit, I just purged every file with the word unity in it from my system and going to reinstall vscode and Unity

placid crater
#

Vs code?

#

Install visual studio that comes with unity.

#

You did that before, right?

atomic linden
#

yah

#

I have like 10 versions that unity installed

placid crater
#

There aren't 10 versions though😅

atomic linden
#

lol 4* all with different things

placid crater
#

It should be 2019 for a few years now. Unless they updated it to 2022 recently

atomic linden
#

I had 2019, 2022, 2022 (2), and 2019.f1 all installed by unity on various attempts

placid crater
#

That's weird. You can't really have 2 instances of the same major version installed. In fact, it could lead to issues imho.

atomic linden
#

was having issues before it installed the other versions, but that's why I'm purging everything and starting fresh again

#

does this look concerning to you or is this fine?:

placid crater
#

Not sure what I'm looking at... Your browser download history?😅

atomic linden
#

All the downloaded distributions I have on my computer

placid crater
atomic linden
#

Every time iv installed unity without dependencies it always ends up not working and the only way to fix it is to install the developer packs, but the required versions keep changing.

atomic linden
placid crater
#

It didn't seem like VS got installed with the editor.

#

Can you go to the hub - installations - 3 dots - add modules and take a screenshot of the modules installed?

atomic linden
#

Ah, i does seem that its waiting for me to add it, ill go ahead and do so

placid crater
#

Okay. Check if the issue occurs

atomic linden
#

still gotem

#

Ah totally missed this popup. This is where all the .Net frameworks comes from

placid crater
#

You only need the unity workload. But it should've been installed automatically.

#

Can you share a fresh editor log after opening a project?

atomic linden
placid crater
# atomic linden

Try deleting this folder:

C:/Users/nomed/AppData/Roaming/Unity/Editor-5.x

As well as checking what else you have in the parent folder.

atomic linden
atomic linden
#

Just did a complete and full wipe to compleatly uninstall unity with all file and all .net and DotNET frameworks along with all vs code and Visual Studio builds, restarted and did a brand new install. and.... still doesn't work. I honestly have nothing left in my power that I can do.

placid crater
#

Did you fill a bug report yet? Opened a post on the forums? Should've done that a long time ago.

atomic linden
#

yup, still waiting on a response

placid crater
#

Can you take a screenshot of C:/Users/nomed/AppData/Roaming/Unity?

atomic linden
placid crater
#

It's weird that editor 5 folder is created I think.🤔

atomic linden
#

yah it created itself after the first run

placid crater
#

Ah maybe not. I seem to have it as well.

#

Anyways, from the logs it's clear that the compilation of some of the packages fails. It doesn't explain why, though.

#

@atomic linden can you take a screenshot of C:\Program Files\Unity\Hub\Editor\2021.3.13f1\Editor\Data\NetCoreRuntime\?

atomic linden
placid crater
#

And C:/Program Files/Unity/Hub/Editor/2021.3.13f1/Editor/Data/DotNetSdkRoslyn/

atomic linden
placid crater
#

Hmm... Seems fine on the first sight.

placid crater
#

@atomic linden can't you try building the project?

#

Actually scratch that. Try running a command prompt

atomic linden
#

I'm pretty sure it tells me to solve the compiler errors

placid crater
#

Yeah, that's fine. Try running the command prompt

atomic linden
#

Sorry m8 already went to bed for the night. Got school in the morning. I'll do it first thing tmr, what did you want me to run

placid crater
#

Command prompt. Press Windows button on your keyboard, type cmd, it should find cmd.exe. Run it.

atomic linden
#

Right, but what do you want me to do with it

placid crater
#

Nothing. Just see if it runs at all.

atomic linden
#

It does. I have full auth

#

Used it today to ssh to a server so know it's working

placid crater
#

Hmm... Okay.

atomic linden
#

Just wanted to thank you again for helping me, i know haven't found anything yet but I really appreciate your time.

placid crater
#

Is your windows updated? When is the last time you updated it?

atomic linden
#

Windows 11 compleatly updated. Newest drivers aswell.

atomic linden
#

Been 8 days, still awaiting a angel from Unity support

placid crater