-
Notifications
You must be signed in to change notification settings - Fork 30
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
Add support for F# #82
Comments
Hi @ChristophSchmidpeter! That's great you want to contribute. Especially as I know nothing about F#! To debug, it's true that I haven't yet found a way to debug the asynchronous tasks in multiple threads. I've always had to resort to either sticking in I use https://github.com/jbyuki/one-small-step-for-vimkind to debug non-async stuff, but I'm afraid I've not found a way to get it working with mulithreading I'm afraid. The thing that was a blocker before, to add F# support, was that there wasn't a suitable treesitter parser for it yet (which neotest relies on to get the test positions / names/ parameters etc). However, I've just noticed https://github.com/Nsidorenco/tree-sitter-fsharp has had a bit of work put into it, so it might now be functional enough. As for getting this working, the adapter uses a treesitter discovery mechanism to find attributes specific to a particular test framework in c# (nunit, xunit, mstest). If you look in the From there, it relies solely on treesitter queries to extract test names and positions in order to send those to the I have no idea what test frameworks are available for F#, and I can only assume that you can still use All that said see my latest comment in #41. Test discovery can be improved for some frameworks by using the test runner and combining that with treesitter output for positioning, so I am planning on making some quite significant changes to how it might work for some frameworks. If possible, this might also be a good strategy for the F# side of things too, but first it would be worth doing a proof of concept to see if the treesitter parser is good enough. |
now the tree-sitter is at https://github.com/ionide/tree-sitter-fsharp |
dotnet/fsharp#14527 |
I would really like to use neotest for F#.
I am willing to extend the code for F#. However I have trouble debugging the lua code: The multithreaded nature makes it hard to debug. Now I also cannot get the lua debugger to work at all.
Can you point out what needs to be modified? And how do you debug the code?
The text was updated successfully, but these errors were encountered: