✅ inaccessible due to its protection level error when the const i'm reaching is public
fenparser.cs :
23 Replies
Can you show
FenParser.ParseFen
?
there you go
you're calling startingFen on the FenParser type, not the instance fenParser
which is correct.
public const startingFen
means it belongs to the class, not an instance of the classany solutions i find online about this error is adding the public keyword
oh, nevermind then
Honestly, cant see any errors related to access level here. Copied your code into a .net 9 console app and it compiles
i am using godot here
I don't know enough about godot to know how its build system works
i'll ask on their server instead
can you try restarting godot and/or resetting the build cache?
they have a pretty deserted c# channel which is why i came here
thats what we normally do when the IDE insists on ghost errors
i'll give it a go
reloading godot doesn't do anything
only thing I can suggest, you obviously shouldnt have any protection errors for a public const on a public class
how do i reload the cache on vs?
$vsdrunk
* close VS
* remove the hidden folder
.vs
* remove all bin
and obj
folder next to each csproj (DO NOT TOUCH THE .git
FOLDER OR WHAT'S INSIDE)
* restart vsmy thoughts exactly
heyy it worked
woo
cheers
do i close the channel or something?
type
/close