I am developing a UWP application using C# and MVVM. Yesterday, I ran the app to test recent changes, and all was fine. Later in the day, I fired up the laptop, opened VS, and now converters and controls are flagging. Intellisense recognizes and will autofill the namespace and the particular converter, but then gives the blue squiggly line saying it cannot be found. The same happens with controls.
When I try to compile, I get errors saying "The name 'DecimalToTextConverter' does not exist in the namespace 'using.POSClient.Converters' although it clearly does.
Screenshot of the error(s)
I have searched for two days looking for an answer to this, and tried all of the suggestions -- primarily changing the target platform back and forth, and closing and opening VS, along with rebooting several times, and even a rollback to a restore point two days before the issue began.
I do not believe I made any code or setting changes between a viable working code base and the onset of this issue.
I'm stumped. Any help will be greatly appreciated.
I don't know what the fix is for this problem, but I did an undo on all changes that had not yet been committed and the error is gone. If it returns, I will update this post with anything new I learn.
Related
Either something has come undone in my brain overnight, or there has been a change to my instance of Visual Studio that I made by accident. I was running v17.3.1 and just updated to v17.3.4 to see if it would fix the issue, but it has not.
For the last few years of pushing out lines of sub-optimal code, I have gotten a space when I pressed the spacebar and a period when I push the period button. I use intellisense a great deal, to the point that when I want to log something, I type logger.in[tab] and I get logger.LogInformation written, waiting for me to type what I want logged.
This morning, my code was way worse than usual. I wasn't getting spaces or periods being typed to the screen. Initially, I thought it was my keyboard, but a quick test showed that my keyboard was fine. Then I noticed that when I would press either the period or spacebar buttons, the intellisense would complete the selection but not insert the space or the period.
Even trying to create a new variable is painful. Typing string[space]myString leaves me with stringmyString in the IDE.
Double tapping the space or period button feels really unnatural to me. Does anyone know what options I may have accidently changed, or how I can get it back to how it was working yesterday?
Thanks in advance.
EDIT: I thought I had fixed it with Edit -> Intellisense -> Switch between automatic and tab-only Intellisense completion, but then I had to double click on the autocomplete that I wanted for it to insert it.
You can open the visual studio installer and Repair the VS it will solve the problem.
This issue was caused by the Telerik extension, in my case "Progress Telerik UI for Blazor". This was reported to Telerik, who quickly published a new version.
The new version of the extension (2022.3.921.3) fixed this issue.
I've been working on a C# MonoGame project for a few days now and so far it has been building and running fine. I left it alone for a while and, when I came back, the window would no longer display (running as a console application displays a blank console window, but not the application itself).
I don't think it's due to the code itself because the issue started happening without any changes to it.
When building, the program exits with code -1, as shown below in the output:
The program '[12460] Gearworks Physics Engine.exe' has exited with code -1 (0xffffffff).
Note that building the program gives no errors, warnings, or messages.
I realise there are a lot of posts related to "exited with code _" and I have seen some with code -1, but they weren't very helpful to my situation, so I've decided to post my own question instead. Let me know if there's any other information needed to help!
Solved - I simply needed to update Visual Studio to the latest version, which I was apparently not using. Once I did that, all programs worked again.
Whenever I attempt to write in VisualStudio2015 this occurs, where when I try to write, it works out fine for 1-3seconds, then the line I write on goes gray. It does not matter where I position my mouse, I tried with another keyboard to check if any keys were stuck, did not help.
This issue started to occur when I upgraded my PC to Windows 10. Tried several restarts etc.
Please help. This really gets annoying when trying to code :/
I am very bad at explaining my issue here, so please watch this gif to understand. Basically whenever I try to write, that line I am on grays out, leaving me unable to do so: https://gyazo.com/688a5660b29a3d93c0bb426715bcf038
Issue shown
After almost a month I found out the issue was that my CS:GO was opened meanwhile, and it somehow interferes with my Visual Studio and other programs. Thanks for your help though.
I've run into the same problem as this guy on the Unity forums, which already has its own copy of the answer on StackOverflow.
Except, these answers are out-of-date.
So, running on the newer MonoDevelop 4.0.1 (compared to 2.4.2), I've tried the solution that was given;
Close MonoDevelop and delete the %AppData%\MonoDevelop-Unity\CodeCompletionData. After, reopen and MonoDevelop will regenerate all the configuration files and everything should be working fine again.
Except, the problem has gone from bad to worse:
MonoDevelop now does not list anything for auto-completion, from previously, only listing key methods/functions/whatevers (ie. void, public, If and not rigidBody, fMath etc.)
It means "an empty auto-complete box" saying: "No autocompletions found.".
UPDATE: It somewhat comes and go. One moment, auto-complete works fine, the next moment (without closing anything), it displays nothing.
UPDATE: I'm on PC, not Mac (Apple)!
UPDATE: As #Thom Denick (Not an SO user) pointed out - Tried various solutions found around the Unity answers website. None worked, since they were mainly about Mac issues (even repeating steps given in Windows did nothing). | Link 1 Link 2 Link 3.
have you tried
Opening "MonoDevelop"
Clicking "Tools"
Clicking "Options"
Selecting "General" under "Text Editor"
checking "Enable code completion"
I am on a mac. But my school has had these problems before. The way that it was fixed for us was opening the monodevelop before you open unity. Hope this helps.
I might have a hard time explaining this because I am at a total loss for what is happening so I am just looking for some guidance. I might be a bit wordy because I don't know exactly what is the relevant information.
I am developing a GUI for a project that I am working on in using .Net (C#)
Part of the interface mimics, exactly, what we do in another product. For consistency reasons, my boss wants me to make it look the same way. So I got the other software and basically copied and pasted the components into my new GUI.
This required me to introduce a component library (the now defunct Graphics Server GSNet, so I can't go to them for help) so I could implement some simple graphs and temperature/pressure "widgets."
The components show up fine, and when I compile, everything seems to work fine. However, at some point during my programming it just breaks. Sometimes the tab that these components are on starts throwing exceptions when I view the designer page (A missing method exception) so it won't display. Sometimes JUST those components from the GSNet library don't show up. Sometimes, if I try to run it, I get a not-instantiated exception on one of their lines of code in the designer code file. Sometimes I can't view the designer at all.
No matter what I do I can't reverse it. Even if I undo what I just did it won't fix it. If it happens, I have to revert to a backup and start over again.
So I started to backup pretty much every step. I compile it and it works. I comment out a line of code, save it, and then uncomment that same line of code (so I am working with the same exact code) and the components all disappear. It doesn't matter what line of code I actually comment out, as long as it is in the same project that these components are being used.
I pretty much have to use the components. . . so does anyone have any suggestion or where I can look to debug this?
The only thing that comes to mind is a read-only bin directory. I've found that .NET has trouble if the interop libraries in the bin directory are read-only. Read-only interops generally prevent controls using those interops from displaying in the form designer and thus mess up compilation (if you do a full build anyway). A rebuild might let you get the app running and then fail when it reaches the part using the read-only interop.
This may or may not be your problem but it's all that comes to mind.
I know this is very late to the game, but I just ran into this same problem.
I'd pulled down one of our applications from SVN, and when I first tried to open the main form for editing, I was prompted with the custom component not being defined in the software, even though I could plainly see it as a class. I was given a choice to ignore it, which I did, and the custom control promptly disappeared from the form (still showed up in the project).
So at the suggestion of my colleague, I deleted the instance from my hard drive, and re-checked it out from SVN. Before i did anything else, I built the project for both release & debug, and that fixed the problem.
Maybe this'll help someone else who finds this SO question when they run into this.