-
Notifications
You must be signed in to change notification settings - Fork 12
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] C# Dev Kit - Create .Net Project fails silently #1289
Comments
Do you have a folder open in workspace? Do you have a solution open? If you wait for some time (it can take up some time to create template cache and start all services, if there is nothing in cache and running) after clicking ".NET> New Project" does the template list show up? |
No to both. I've closed all folders and solutions. Tried quitting and restarting VSCode multiple times. Also, it's been at the same spot for over 6 hours now. I have other MBPs (all Intel machines) with VSCode settings synched and it works fine on those machines. Not sure if that's a clue or a red herring, though. |
That could be issue in loading something platform specific. When it is hung can you share logs of extension? |
I checked and that folder is suspiciously absent. Not so on my other machines where this is working. I’ve confirmed the C# DevKit is installed and enabled on the latest stable version. How else could I validate the installation or what else should I do next to debug this, please. And thanks for the help.
… On Jul 17, 2024, at 12:25 AM, Smit Patel ***@***.***> wrote:
That could be issue in loading something platform specific. When it is hung can you share logs of extension?
In the VS code window with hang, use command palette to search for "Open extensions logs folder". From that folder we need content of csdevkit folder to evaluate logs.
—
Reply to this email directly, view it on GitHub <#1289 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AGI3KQIUEDWTKJEFPZXA5NTZMXW5JAVCNFSM6AAAAABK7NE6NCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMZSGM3TENZXHA>.
You are receiving this because you authored the thread.
|
Can you share list of folders you see in the extensions logs folder? Lack of that folder indicates that C# dev kit didn't activate. Can you open some workspace which has solution file and projects and try running Add new project command in that and see if that is working? That would help us isolate that if extension itself is failing to activate in all cases or add new project is failing to activate it correctly. |
Sure…

… On Jul 17, 2024, at 11:08 AM, Smit Patel ***@***.***> wrote:
Can you share list of folders you see in the extensions logs folder?
—
Reply to this email directly, view it on GitHub <#1289 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AGI3KQOXVQYJFGMUF2EFONDZM2CFPAVCNFSM6AAAAABK7NE6NCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMZTGU2TINJSGI>.
You are receiving this because you authored the thread.
|
@lorenschwartz - If you were trying to add screenshot in last post then I think, adding image via mail reply doesn't work with github. You may need to use the web UI. |
Thanks for the tip @smitpatel . Please find the screenshot attached here. |
@lifengl - C# dev kit extension is not activating on mac machine. Any suggestions how to investigate further? |
@lorenschwartz - Can you verify you are not running into setting which blocks extension activation as mentioned here https://code.visualstudio.com/docs/csharp/cs-dev-kit-faq#_why-isnt-c-dev-kit-activating-c-dev-kit-commands-are-not-found |
@smitpatel I can confirm that I am running v2.39.29, that dotnet.preferCSharpExtension is not set and that I'm not running a read only OS. I've also performed the process to isolate if other extensions are interfering in any way and none are. Thinking out loud here, but could I copy the contents of this folder from a working computer to this one? Would that work or just make the matters worse? Thanks |
@smitpatel, the 'needs-more-info' label has been removed upon receiving further response from the original bug filer. |
No, that folder is supposed to be created when C# dev kit activates itself. It is not required for it to run. Can you share output of all the windows of C# dev kit. There are few of them created. We may be able to figure out why C# dev kit fails to activate correctly. |
Closing as requested information is not provided and we are unable to investigate further. We can reopen issue if we get more information to investigate. |
Hi @smitpatel , apologies for taking forever to get back to you, but I'm unclear as to the request. How would I go about showing the output of the C# dev kit windows? When I try to use the command ".NET: New Project..." absolutely nothing happens. Nothing appears in the Problems, Output, Debug Console or Terminal. |
In output window of VS Code, the drop-down menu will have output in different output channels. Whichever channel has C# dev kit in their name, output from those would be needed. In very first post you mentioned you had some output there. |
This is what I have in the C# Output Window after I run ‘.Net: New Project’:
Using dotnet configured on PATH
Dotnet path: /opt/homebrew/Cellar/dotnet/8.0.8_1/libexec/dotnet
Activating C# + C# Dev Kit + C# IntelliCode...
waiting for named pipe information from server...
[stdout] {"pipeName":"/var/folders/q0/0rsxznqx7qx4gh08wj8w37hw0000gn/T/d48e50f4.sock"}
received named pipe information from server
attempting to connect client to server...
client has connected to server
[Info - 9:16:57 PM] [Program] Language server initialized
… On Oct 7, 2024, at 2:40 PM, Smit Patel ***@***.***> wrote:
In output window of VS Code, the drop-down menu will have output in different output channels. Whichever channel has C# dev kit in their name, output from those would be needed. In very first post you mentioned you had some output there.
Open an existing solution in VS Code. Wait for a minute or so for things activate and start and then share output from output window. Also check if extension logs have folder with csdevkit in name.
—
Reply to this email directly, view it on GitHub <#1289 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AGI3KQMEKPOCA54TP3DQRH3Z2LIQXAVCNFSM6AAAAABK7NE6NCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJXGYZDQMJYGQ>.
You are receiving this because you were mentioned.
|
@lorenschwartz In the instance where you get output like above, do you see folder with csdevkit in extension logs folder? |
@AArnott - Any ideas how to investigate this? Looks like activation starts and we activate language server but based on missing logs, C# dev kit didn't start. |
@smitpatel Is ".NET New Project" a C# extension command? If so, I wouldn't expect VS Code to activate the C# Dev Kit extension on its own. From the C# output window it looks like C# tries to manually activate the C# Dev Kit extension, in which case, if it fails, hopefully an exception is thrown back to C# with an explanatory message? My only other idea is that there may be a more general output window/log to read where VS Code discloses extension activation failures. |
@smitpatel I also found the following output from the 'C# Dev Kit' output window:
Not sure if this helps, but there are several errors here that I'm not seeing on my other machine where this is working fine. |
@smitpatel, the 'needs-more-info' label has been removed upon receiving further response from the original bug filer. |
Describe the Issue
I am trying to create a new .Net Project using Ctrl+Shift+P >> ".NET New Project".
I see the following activity int he OUTPUT window:
Using dotnet configured on PATH
Dotnet path: /opt/homebrew/Cellar/dotnet/8.0.4/libexec/dotnet
Activating C# + C# Dev Kit + C# IntelliCode...
waiting for named pipe information from server...
[stdout] {"pipeName":"/var/folders/q0/0rsxznqx7qx4gh08wj8w37hw0000gn/T/7702b148.sock"}
received named pipe information from server
attempting to connect client to server...
client has connected to server
[Info - 5:43:18 PM] [Program] Language server initialized
And that's it... nothing else happens.
Steps To Reproduce
No response
Expected Behavior
Dialogue for selecting a dotnet template type.
Environment Information
Commit: f1e16e1e6214d7c44d078b1f0607b2388f29d729
Date: 2024-07-09T22:07:46.768Z (6 days ago)
Electron: 29.4.0
ElectronBuildId: 9728852
Chromium: 122.0.6261.156
Node.js: 20.9.0
V8: 12.2.281.27-electron.0
OS: Darwin arm64 23.5.0
The text was updated successfully, but these errors were encountered: