✅ Error that seemingly doesn't exist.

I'm trying to make a Console App that is capable of sending a Console.WriteLine(""); every specific ammount of time. When I ducktaped it together, and Visual Studio didn't show up any error messages in the bottom section, and I tried running it, it said that the build has some errors. Does anybody know why? (PS: Not even Warnings)
49 Replies
MODiX
MODiX10mo ago
How to get the best help catpog Make a post in #help or one of the topic channels under Development. Avoid askingcatthinking Can anybody help catthinking Has anyone used catthinking Why doesn't my code work? C# is a big area! No one knows they can help unless you tell them about the small area you're trying to work in. Explain what you are doing, and potentially why for as much context as possible. Avoid screenshots where possible, share code directly in Discord. Type $code into chat to learn how to post code. See https://www.nohello.net and https://dontasktoask.com if you want common help chat room etiquette.
V0FBU1VM
V0FBU1VM10mo ago
That didn't work lol, can you provide some code please?
Graphite the Cat
Graphite the CatOP10mo ago
Here.
No description
V0FBU1VM
V0FBU1VM10mo ago
You can try cleaning the project, or solution. There is a problem on line 2 and 3 There is a problem on line 5 too
Graphite the Cat
Graphite the CatOP10mo ago
And the condition on line 5, is it valid? It's supposed to stop the "for" loop upon typing Stop.
Jimmacle
Jimmacle10mo ago
your syntax highlighting looks off which suggests a problem with the IDE or your project setup
Graphite the Cat
Graphite the CatOP10mo ago
What does it mean? Sorry it's been a while since I last touched Visual Studio and coding by itself.
Jimmacle
Jimmacle10mo ago
it means it's not showing errors because your editor isn't working right
Graphite the Cat
Graphite the CatOP10mo ago
Is there any way to fix this issue?
V0FBU1VM
V0FBU1VM10mo ago
You can try and repair it with visual studio installer.
Graphite the Cat
Graphite the CatOP10mo ago
So now I should disable it, and use the Visual Studio Installer, did I get it right?
V0FBU1VM
V0FBU1VM10mo ago
When you install Visual Studio. It also installs something called Visual Studio Installer. Just open the app and you should see which visual studio version you have on your machine. There should be an option for repairing the IDE. I assume you are on Windows.
Graphite the Cat
Graphite the CatOP10mo ago
My apologies for late response, I was on Lunch. Windows 10
V0FBU1VM
V0FBU1VM10mo ago
Yeah you should have an app called Visual Studio Installer
Graphite the Cat
Graphite the CatOP10mo ago
If you meant the "Repair" button, then I clicked it. btw, Thanks a lot for the support.
V0FBU1VM
V0FBU1VM10mo ago
No worries mate, see if the IDE is working properly now?
Graphite the Cat
Graphite the CatOP10mo ago
Gonna take a while. Installing 500 packages.
Unknown User
Unknown User10mo ago
Message Not Public
Sign In & Join Server To View
MODiX
MODiX10mo ago
When creating a new project, prefer using .NET over .NET Framework, unless you have a very specific reason to be using .NET Framework. .NET Framework is now legacy code and only get security fix updates, it no longer gets new features and is not recommended. https://cdn.discordapp.com/attachments/569261465463160900/899381236617855016/unknown.png
Unknown User
Unknown User10mo ago
Message Not Public
Sign In & Join Server To View
Graphite the Cat
Graphite the CatOP10mo ago
Apologies for the late response, I was still asleep. I've let it work overnight I created a console application, I think without the .NET framework? I don't really remember. It had options that includes MacOS and Linux. About the Creation, I launched Visual Studio; New Project; Console App; then... I don't remember which .NET I chose, but it was one of the longest compatible (it said), then I just gave it a name, didn't touch the settings, and that's about all I can remember.
Unknown User
Unknown User10mo ago
Message Not Public
Sign In & Join Server To View
Jimmacle
Jimmacle10mo ago
is it possible this is the bug with x86/x64 versions of .NET installed?
Graphite the Cat
Graphite the CatOP10mo ago
Could be. Rest assured it didn't ever appear before installing the latest update with 800 packages.
Unknown User
Unknown User10mo ago
Message Not Public
Sign In & Join Server To View
MODiX
MODiX10mo ago
* Open powershell in a terminal in admin mode as in the following video: https://cdn.discordapp.com/attachments/569261465463160900/1157744344183341156/20230930-1822-10.7436061.mp4 * copy/paste the following script * it will tell you if it detects invalid Path setup * Press Enter to confirm
iex "& { $(irm https://gist.githubusercontent.com/tebeco/5c6cc0eee8c28fad3523008d58f83914/raw/d34d3fd6bd51830cd9e54d464451e3436769dbd3/fix-dotnet-path.ps1) }"
iex "& { $(irm https://gist.githubusercontent.com/tebeco/5c6cc0eee8c28fad3523008d58f83914/raw/d34d3fd6bd51830cd9e54d464451e3436769dbd3/fix-dotnet-path.ps1) }"
Graphite the Cat
Graphite the CatOP10mo ago
After the fix it works, it finally registered all of the errors. Thanks for the help.
Unknown User
Unknown User10mo ago
Message Not Public
Sign In & Join Server To View
Graphite the Cat
Graphite the CatOP10mo ago
No :P And I still don't know how to do the fifth line.
Unknown User
Unknown User10mo ago
Message Not Public
Sign In & Join Server To View
Graphite the Cat
Graphite the CatOP10mo ago
What do you mean?
Unknown User
Unknown User10mo ago
Message Not Public
Sign In & Join Server To View
Graphite the Cat
Graphite the CatOP10mo ago
I ended up erasing it, and probably redoing it. Because trying that as somebody who hasn't touched his courses for months is- essentially killing an aggresive grizzly with a water gun.
MODiX
MODiX10mo ago
✅ Command successful. Updated tag 'dotnetpath'.
Unknown User
Unknown User10mo ago
Message Not Public
Sign In & Join Server To View
MODiX
MODiX10mo ago
* Open powershell in a terminal in admin mode as in the following video: https://cdn.discordapp.com/attachments/569261465463160900/1157744344183341156/20230930-1822-10.7436061.mp4 * copy/paste the following script:
iex "& { $(irm https://gist.githubusercontent.com/tebeco/5c6cc0eee8c28fad3523008d58f83914/raw/d34d3fd6bd51830cd9e54d464451e3436769dbd3/fix-dotnet-path.ps1) }"
iex "& { $(irm https://gist.githubusercontent.com/tebeco/5c6cc0eee8c28fad3523008d58f83914/raw/d34d3fd6bd51830cd9e54d464451e3436769dbd3/fix-dotnet-path.ps1) }"
in case of an invalid setup detected, it will: * tell you that it did (or not) detected an invalid Path setup * in case some action are require it will ask you to Press Enter to confirm
Unknown User
Unknown User10mo ago
Message Not Public
Sign In & Join Server To View
Graphite the Cat
Graphite the CatOP10mo ago
I erased the code, so I can try again later. The courses are sololearn, I haven't done them in months so I think it'd be better if I redone a couple to rewrite notes, and then try again. Yes- my sense of explanation is far from good. Sorry for the misunderstanding.
Unknown User
Unknown User10mo ago
Message Not Public
Sign In & Join Server To View
Graphite the Cat
Graphite the CatOP10mo ago
What is a powershell?
Unknown User
Unknown User10mo ago
Message Not Public
Sign In & Join Server To View
Graphite the Cat
Graphite the CatOP10mo ago
Inserted it, it says that everything seems fine as they couldn't find a math in a certain path.
Unknown User
Unknown User10mo ago
Message Not Public
Sign In & Join Server To View
Graphite the Cat
Graphite the CatOP10mo ago
Oh okay, I didn't even consider it one. I looked at it and was like: If it works, it works.
Unknown User
Unknown User10mo ago
Message Not Public
Sign In & Join Server To View
Graphite the Cat
Graphite the CatOP10mo ago
It was clear enough.
Unknown User
Unknown User10mo ago
Message Not Public
Sign In & Join Server To View
MODiX
MODiX10mo ago
✅ Command successful. Updated tag 'dotnetpath'.
Unknown User
Unknown User10mo ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server