Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Intellisense Issues with MAUI apps. #1624

Open
BenBtg opened this issue Nov 20, 2024 · 3 comments
Open

[BUG] Intellisense Issues with MAUI apps. #1624

BenBtg opened this issue Nov 20, 2024 · 3 comments
Assignees
Labels
area-intellisense Issues specific to IntelliSense area-maui bug Something isn't working mac MacOS needs-more-info Needing more information, waiting on OP

Comments

@BenBtg
Copy link

BenBtg commented Nov 20, 2024

Describe the Issue

I have frequently hit an issue in VSCode where intellisense does nothing when working on a MAUI app.
I have struggled to find consistent repro steps but I believe it is common enough to raise and share what I have found so far in logs.
When intellisense fails I notice the following popup error
Image

Logs show the following output which seems relavant

2024-11-19 16:41:01.519 [info] Activating C# + C# Dev Kit + C# IntelliCode...
2024-11-19 16:41:32.436 [info] [Error - 16:41:31] Microsoft.CodeAnalysis.LanguageServer client: couldn't create connection to server.
2024-11-19 16:41:32.436 [info] Error: Timeout. Client cound not connect to server via named pipe
    at Function.<anonymous> (/Users/benbtg/.vscode/extensions/ms-dotnettools.csharp-2.56.31-darwin-arm64/dist/extension.js:2:1178883)
    at Generator.next (<anonymous>)
    at s (/Users/benbtg/.vscode/extensions/ms-dotnettools.csharp-2.56.31-darwin-arm64/dist/extension.js:2:1164923)
2024-11-19 16:41:46.851 [info] [stdout] {"pipeName":"/var/folders/sp/bd4zhlgj67v5g_strq8jtl8c0000gn/T/9b0ff660.sock"}

2024-11-19 16:41:46.851 [info] received named pipe information from server
2024-11-19 16:41:46.868 [info] client has connected to server

Steps To Reproduce

I couldn't repro from a new template app. I would get expected itellisense drop downs as I was coding.

However open any existing nontrivial MAUI app
e.g. the sample app in this repo https://github.com/jfversluis/Plugin.Maui.Audio.git
and I would get the above issue.
Any code changes in C# would not produce expected Intellisense autocomplete suggestions list of available members in the current context.

Note I would however get the CoPilot suggestions.

Also I noticed "Projects" status was continually progress no matter how long I waited.
Image
.

Expected Behavior

No response

Environment Information

MacOS 15.1

VSCode
Version: 1.95.3 (Universal)
Commit: f1a4fb101478ce6ec82fe9627c43efbf9e98c813
Date: 2024-11-13T14:50:04.152Z
Electron: 32.2.1
ElectronBuildId: 10427718
Chromium: 128.0.6613.186
Node.js: 20.18.0
V8: 12.8.374.38-electron.0
OS: Darwin arm64 24.1.0

Extensions:

Name: C#
Id: ms-dotnettools.csharp
Description: Base language support for C#
Version: 2.57.28

Name: .NET MAUI
Id: ms-dotnettools.dotnet-maui
Description: Extend C# Dev Kit with tools for building .NET Multi-platform App UI (MAUI) apps
Version: 1.4.36

@BenBtg BenBtg added the bug Something isn't working label Nov 20, 2024
@emaf
Copy link
Member

emaf commented Nov 20, 2024

cc @mgoertz-msft

@mgoertz-msft
Copy link
Member

That's the C# Language Server. FYI @dibarbet

@dibarbet
Copy link
Member

It looks like the client is timing out connecting to the server after 30 seconds, but 15 seconds later the connection comes in (note the timestamps below).

2024-11-19 16:41:01.519 [info] Activating C# + C# Dev Kit + C# IntelliCode...
2024-11-19 16:41:32.436 [info] [Error - 16:41:31] Microsoft.CodeAnalysis.LanguageServer client: couldn't create connection to server.
2024-11-19 16:41:32.436 [info] Error: Timeout. Client cound not connect to server via named pipe
    at Function.<anonymous> (/Users/benbtg/.vscode/extensions/ms-dotnettools.csharp-2.56.31-darwin-arm64/dist/extension.js:2:1178883)
    at Generator.next (<anonymous>)
    at s (/Users/benbtg/.vscode/extensions/ms-dotnettools.csharp-2.56.31-darwin-arm64/dist/extension.js:2:1164923)
2024-11-19 16:41:46.851 [info] [stdout] {"pipeName":"/var/folders/sp/bd4zhlgj67v5g_strq8jtl8c0000gn/T/9b0ff660.sock"}

We increased the timeout in 2.57.28 to 2 minutes - dotnet/vscode-csharp#7788
@BenBtg would you try upgrading to 2.57.28? The logs indicate you're on 2.56.31

@dibarbet dibarbet added the needs-more-info Needing more information, waiting on OP label Nov 21, 2024
@dibarbet dibarbet self-assigned this Nov 21, 2024
@webreidi webreidi added area-maui area-intellisense Issues specific to IntelliSense mac MacOS labels Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-intellisense Issues specific to IntelliSense area-maui bug Something isn't working mac MacOS needs-more-info Needing more information, waiting on OP
Projects
None yet
Development

No branches or pull requests

5 participants