Comments (7)
@nelson-m-ferreira-sibs since you're using C# devkit .NET: Restart Language Server
won't work (there is a known bug with that). However I would expect Reload window
to function exactly the same as closing / re-opening.
Nothing looks like its going incredibly wrong from the logs. I do see that the language server restarted, which as above has a bug which will cause the language server to lose the project information, so definitely try reloading the window.
A couple of other questions
- To confirm, you're losing colorization / completion suggestions in both
.cs
and.xaml
files? If you can share a screenshot of the incorrect behavior that might help. - Is there any specific kind of change that triggers the behavior? For example does it always happen after making a change to a
.csproj
? - Are there any other popup warnings saying anything went wrong?
from vscode-csharp.
I was in the middle of writing a long comment with me having this issue as well. Meanwhile I left vscode running in the background - the state was as described in this issue - no colorization / completion suggestions. The logs indicated that everything was loaded and running, no errors or anything indicating something was wrong (even though the case was clearly the opposite).
Right before I hit send, I went back to vscode to confirm. And voilà, suddenly intellisense had kicked in. Not sure what the take from this should be, but maybe there is missing an indicator that things are still loading?
from vscode-csharp.
Hi @dibarbet
Yesterday after posting the issue I've updated the .NET MAUI VS Code extension to the v1.1.14 (pre-release)
version and I haven't used it enough today to provide a complete feedback, but I'll try to answer as far as I'm able to:
- Yes, I'm losing both colorization and completion in both
.cs
and.xaml
files, having only the basic auto-completion present on VS Code (the one that has the "abc" icon); - I'm still unable to provide a single point that causes this error to occur but I can guarantee that no
.csproj
changes are being made (both manually or automatically, since I'm only editing the current files and not adding/removing/renaming files). One thing I haven't mentioned previously is that I'm using the Hot Reload to edit some layouts on the fly and doing some changes in the code while running a debug session and is in-between debug sessions that the error has been occurring. I'll try to be aware of my actions to see if I can provide a more meaningful report later. - There was an error that would popup when I tried to navigate to a definition of a class or element. When everything is okay I'm able to navigate to the correct definition, but when the bug is occurs I'm unable to do it, be it from a
.xaml
file or a.cs
file. I'll keep an eye on any popup warnings that might appear and will try to capture screenshots when they happen.
I apologize for not being able to provide more information for now, will keep an eye next Monday to see if I can make it happen again.
from vscode-csharp.
Hi @dibarbet
Since I've reported this issue I tried to update the .NET MAUI Extension to version v1.1.14 (pre-release)
and in this version the issue hasn't happened so far. Unfortunately since this speeds up a bit things on my side I can't revert to the previous version for some time.
Meanwhile I've managed to catch the error that happened at the same time before:
Unsure if it's 100% the same error, but I do remember being very similar to this one (when trying to go to definition of an element in .xaml
, for example a custom element, it would popup the error message and wouldn't navigate).
from vscode-csharp.
Right before I hit send, I went back to vscode to confirm. And voilà, suddenly intellisense had kicked in. Not sure what the take from this should be, but maybe there is missing an indicator that things are still loading?
@danosted by any chance was the Projects
spinner in the bottom left spinning? Or was it displaying a static list of projects
from vscode-csharp.
Hi @dibarbet
Since I've reported this issue I tried to update the .NET MAUI Extension to version
v1.1.14 (pre-release)
and in this version the issue hasn't happened so far. Unfortunately since this speeds up a bit things on my side I can't revert to the previous version for some time.Meanwhile I've managed to catch the error that happened at the same time before:
Unsure if it's 100% the same error, but I do remember being very similar to this one (when trying to go to definition of an element in
.xaml
, for example a custom element, it would popup the error message and wouldn't navigate).
Interesting - that error message is helpful. Looks like its trying to navigate to a source generated file which isn't supported yet, see #6426
However I don't think that should cause colorization and everything else to disappear. I'm glad 1.1.14 is working better so far, but let me know if the issue occurs again. I'd also be interested if you see it again. There are some project load issues we're working on as well which might be contributing. Hope to have those fixed next week.
from vscode-csharp.
Closing this issue since it sounds like the original issue is isn't occuring. Additionally, we uploaded a new prerelease version last week (2.39.28) which fixed some (potentially related) issues with intellisense disappearing.
from vscode-csharp.
Related Issues (20)
- Razor+C# Completion issues on particular Maui repo
- Error when Building C# Extension in VS Code on Windows with Node v20.14 HOT 2
- Accepting override method suggestion starting with "_" deletes part of method name HOT 1
- C# LSP failing suddenly on diagnostics HOT 4
- System.CommandLine Not Found & Causes LSP Server to Crash HOT 4
- Unity asmdefs (assemblies) don't include method documentation in metadata HOT 6
- Identify and localize remaining display strings
- Ability to install the extension in https://vscode.dev HOT 1
- C# request textdocument/inlayhint failed. HOT 1
- Microsoft.CodeAnalysis.LanguageServer client: couldn't create connection to server. HOT 1
- code-insiders crash when i click on create .net project HOT 1
- dotnet.exe infinite opening and closing HOT 1
- Debugger unable to attach to CoreCLR, error 0x80131c3c HOT 8
- Unable to hit breakpoint on macOS arm64 with .NET 9 preview 7 HOT 3
- Language server stops working after upgrade HOT 25
- Unable to attach to CoreCLR. Unknown Error: 0x80131c3c HOT 10
- .Net Aspire project exits debugging when MigrationService project ends HOT 2
- active debug config changes after .Net Aspire AppHost exits unexpectedly HOT 1
- Find-All-References results incomplete and unstable HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-csharp.