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

Create Class Interface, etc. #682

Open
PedroAvila opened this issue Nov 3, 2023 · 3 comments
Open

Create Class Interface, etc. #682

PedroAvila opened this issue Nov 3, 2023 · 3 comments
Assignees
Labels
area-templates Experiences around the project/item templates bug Something isn't working triaged The issue has been triaged
Milestone

Comments

@PedroAvila
Copy link

Type: Bug

It does not allow me to create files such as classes, interfaces etc. This is the error I get.
error ExitCode(2097158) Details No template found matching: 'class' To display the list of installed templates, run: dotnet new --list To search for templates in NuGet.org, run: dotnet new class --search . It is probably caused by the extension contributing to csdevkit.addNewFile.

Extension version: 1.0.14
VS Code version: Code 1.84.0 (d037ac076cee195194f93ce6fe2bdfe2969cc82d, 2023-11-01T11:29:04.398Z)
OS version: Windows_NT x64 10.0.22621
Modes:

System Info
Item Value
CPUs 11th Gen Intel(R) Core(TM) i7-11700 @ 2.50GHz (16 x 2496)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
Load (avg) undefined
Memory (System) 15.83GB (3.47GB free)
Process Argv --crash-reporter-id 9630f65d-16d3-48a9-b724-3df94a0ff1af
Screen Reader no
VM 0%
A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
vserr242cf:30382550
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vsdfh931cf:30280410
vshan820:30294714
vstes263cf:30335440
vscod805cf:30301675
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593cf:30376535
pythonvs932:30410667
py29gd2263:30880072
vsclangdf:30486550
c4g48928:30535728
dsvsc012cf:30540253
pynewext54:30695312
azure-dev_surveyone:30548225
282f8724:30602487
f6dab269:30613381
showlangstatbar:30737416
pythonfmttext:30731395
fixshowwlkth:30771522
showindicator:30805244
pythongtdpath:30769146
i26e3531:30792625
pythonnosmt12:30797651
pythonidxpt:30866567
pythonnoceb:30805159
synctok:30869157
dsvsc013:30795093
dsvsc014:30804076
dsvsc015:30845448
pythontestfixt:30871694
pythonregdiag2:30871582
pythonmypyd1:30879173
pythoncet0:30874138
pythontbext0:30879054

@microsoft-issue-labeler microsoft-issue-labeler bot added the area-templates Experiences around the project/item templates label Nov 3, 2023
@smitpatel
Copy link
Member

@PedroAvila - Can you share which version of SDK are you using?

@smitpatel smitpatel self-assigned this Nov 3, 2023
@smitpatel
Copy link
Member

Similar #674

I have identified root cause here. We detect missing template based on exit code returned by dotnet new command. The exit codes for the command has changed from SDK version 6.0 to 7.0. Our current code in C# dev kit utilizes codes which are in SDK 7.0. We should also add exit code from 6.0 in our detection logic. I verified that on a windows machine exit code 2097158 refers to template not found.

@PedroAvila
Copy link
Author

PedroAvila commented Nov 3, 2023

Hi @smitpatel, I am using version 6("6.0.414"), when I use version 7 I have no problems only slowness when creating the file.

@smitpatel smitpatel added this to the Mar2024 milestone Nov 17, 2023
@smitpatel smitpatel added the triaged The issue has been triaged label Nov 17, 2023
@kvenkatrajan kvenkatrajan modified the milestones: Mar2024, Apr2024 Feb 15, 2024
@smitpatel smitpatel modified the milestones: Apr2024, May2024 Mar 26, 2024
@smitpatel smitpatel modified the milestones: May2024, June2024 May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-templates Experiences around the project/item templates bug Something isn't working triaged The issue has been triaged
Projects
None yet
Development

No branches or pull requests

4 participants