#ide machine broke

1 messages · Page 1 of 1 (latest)

pure stone
#

let's do a thread

gloomy fable
#

sure

pure stone
#

which code will give you the path to the executable

#

should be able to Browse to it from the external tools settings

gloomy fable
#

so i type which code?

pure stone
#

right

#

that will give you a path

gloomy fable
#

i never knew that

#

got a path

pure stone
#

when you run a command, your shell runs through a series of places the program could be

gloomy fable
#

snap/bin/code

pure stone
#

based on $PATH

#

which will tell you the result

#

ok, so go here

gloomy fable
#

yeah

#

browse

#

and locate code

pure stone
#

try using Browse and then going to /snap/bin/code

#

i never tried to set it up with a snap'd Code

#

but that's probably what you want to do

gloomy fable
pure stone
#

also, to be sure before we continue:

  • You have Visual Studio Editor 2.0.20 installed
  • You have no compile errors
#

are these both true?

gloomy fable
pure stone
#

clear the console and see if anything remains

#

if so, you've got compile errors

gloomy fable
#

Console is empty

pure stone
#

Compile errors will prevent new packages from activating

#

also try to enter play mode

#

in case you've got errors filtered

gloomy fable
#

sure

#

this game barely works but pkay

#

just moved around in game

#

no errors

pure stone
#

as long as the game starts, you're fine

gloomy fable
#

alright

pure stone
#

now check that you have the right version of the package

gloomy fable
#

lemme locate the file

#

oh

#

from the unity package man?

pure stone
#

yes

gloomy fable
#

brb

pure stone
#

Visual Studio Editor, version 2.0.20

#

window > package manager

gloomy fable
#

yup, 2.0.20

#

installed

#

now should I locate the external editor?

pure stone
#

okay, so what do you see in that editor dropdown?

gloomy fable
#

nothing other than codepage whatever that is

#

it's been there since day 1

#

Set it to VS via browse

#

should I regen project files?

#

also Unity has recognised the editor

#

aaaand nothing worked

#

everything is still in that greyed our state in the IDE

pure stone
#

you should regen project files, then close Code entirely

#

and then double click a script asset to open the editor

gloomy fable
pure stone
#

check if it's creating .csproj files

gloomy fable
#

regened project files, closed code before that then double clicked a script

gloomy fable
pure stone
#

look in the project folder

#

they'll be in the root

#

also, make sure that you've installed the VSCode extensions the instructions call for

gloomy fable
#

yeah, the Unity extension

#

VScode also came with the C# extensions for some reason

pure stone
#

can you screenshot Code after trying to open a script asset?

gloomy fable
#

sure hold on

#

it's open rn

gloomy fable
pure stone
#

ok, we're partway there

#

it sees projects

gloomy fable
#

yeah, what about it?

#

NO! There are CSPROJ files in the root

#

tons of them

pure stone
#

hit ctrl-shift-U to open the Output window

#

set it to C# and see if any errors are in there

gloomy fable
#

that bind does nothing

#

i opened output terminal

#

AH! error

#

in C# the terminal says that no compatible . NET is found

#

but I have that extension already... what

pure stone
#

that suggests that it's failing to download the runtime

gloomy fable
#

SOrry! i couldnt reply @pure stone

pure stone
#

i was busy helping someone with UI stuff :p

gloomy fable
#

heres the error i got ```
Failed to find dotnet info from path, falling back to acquire runtime via ms-dotnettools.vscode-dotnet-runtime
No compatible .NET runtime found. Minimum required version is 7.0.
Dotnet path: /home/newHomeDir/.config/Code/User/globalStorage/ms-dotnettools.vscode-dotnet-runtime/.dotnet/7.0.10/dotnet
Activating C# + C# Dev Kit + C# IntelliCode...
[Info - 20:12:18] [Program]Language server initialized

#

im going to install .NET

#

do i get the SDK or the RUntime?

pure stone
#

oh, mine looks very similar

#

identical, actually, save for the exact filepath

gloomy fable
#

I had to create a second homedir

pure stone
#

it can't find a manually installed runtime, so it uses one that was downloaded by the dotnet-runtime extension

#

it looks like things started correctly

gloomy fable
#

oh?

#

okay then

#

but still nothing is highlighted

#

do you think i should get .NET just to be safe

pure stone
#

one thing I don't get is why you can't see a list of projects anymore

#

you used to be able to click down here

#

and actually pick one of the .csproj files

pure stone
#

also check the "C# Dev Kit" output

gloomy fable
#

lots of stuff here

#

Completed Restore solution (14789ms)

#

last message

pure stone
#

also, check the Solution Explorer window

#

ctrl-shift-p, "solution explorer"

#

that'll bring it up

#

here's mine, showing 14 loaded assemblies

gloomy fable
#

lots of stuff there as well... a LOT

pure stone
#

It should show a big list for you

#

since you've got 53 assemblies there

gloomy fable
#

yeah, lots of stuff

pure stone
#

ah, you probably generated .csproj files for more stuff than I did

gloomy fable
#

i have no idea tbf, i didnt even know i had so many .csproj files

pure stone
#

so what does it look like when you double click a script asset?

#

lemme see the window

gloomy fable
#

it opens the VSC window

pure stone
#

it's correctly flagging that you aren't using anything from System.Collections or System.Collections.Generic, which is promising

gloomy fable
#

usually the variable type is green

#

usually the variables are highlighted like this

#

this is a pretty old hoto

#

photo

pure stone
#

well, that is a different theme

#

so it's not offering completions if you start typing something like Destroy?

gloomy fable
#

Fixed it : Solution, Use Dark+ theme and not VS's default dark theme.
Also install .NET. Dark+ did not work without .NET for some reason

pure stone
#

wot

#

that's weird

gloomy fable
pure stone
#

I guess it's possible it had an allergic reaction to the newest version of .NET

#

I do remember having an issue where it didn't like that, actually

gloomy fable
#

why would a theme not work without .net

#

idk

#

it's late I should sleep. Thanks for all the help today