NicholasMata / nvim-dap-cs

An extension for nvim-dap providing configurations for launching .NET Core debugger (netcoredbg)
10 stars 2 forks source link

Launch & Smart Attach not working on windows #1

Open saul-marquez opened 5 months ago

saul-marquez commented 5 months ago

Hi! First of all, thanks a lot for this plugin. I can debug C# easily now and that brings me joy every day 😄

Only issue is that it doesn't work on windows because the find command you are using is different on bash than cmd or powershell

I got it fixed and was wondering if you would like for me to create a PR or I should keep my nasty windows commands away from your repo 😎

NicholasMata commented 5 months ago

I am glad someone else found this useful. I would be happy to review any PR created.

I didn't give much thought to Windows support as I know the majority of users prefer Visual Studio. But would be happy to try to support it.

LukasMention commented 3 weeks ago

Hey Guys, im having the same or a similar problem atm. When i try to launch i get an output similar to: "Select NET Version: Access denied - "path/to/bin" -TYPE not found - File D not found, File -NAME not founf"

What was your fix @saul-marquez ? Ty

saul-marquez commented 3 weeks ago

Oops, forgot about this!

I'm on holiday but will create the PR next week.

The main issue is that the find command used to discover projects and DLLs exists for Windows but has a different syntax and a different output format than the Linux one. Don't remember the specific differences.

I will be able to share my code with you next monday. I use it daily so it's guaranteed to work (on my machine at least :))

saul-marquez commented 2 weeks ago

Try using this branch https://github.com/saul-marquez/nvim-dap-cs/tree/feat/win-compatibility @LukasMention

LukasMention commented 1 week ago

@saul-marquez TY! Works like a charm <3