elp-revive / origami.el

A folding minor mode for Emacs
MIT License
32 stars 6 forks source link

Origami not working in c# mode #49

Open ahmed-shariff opened 6 months ago

ahmed-shariff commented 6 months ago

When I try running origami in csharp-mode nothing happens. Upon digging a bit more, there is an error that is signaled in the origami-fold-node function. The following line is where the error is signaled: https://github.com/elp-revive/origami.el/blob/6938ba93a8c58eb76bb81227931f7067dbd66fd5/origami.el#L319

Also, this error is suppressed in origami-get-fold-tree, here: https://github.com/elp-revive/origami.el/blob/6938ba93a8c58eb76bb81227931f7067dbd66fd5/origami.el#L684

I still don't fully understand what's going on here. If you need any further help with debugging this, let me know.

jcs090218 commented 6 months ago

Sorry, I don't use this package anymore. I've moved to the TreeSitter solution, ts-fold. It's much faster and more accurate and supports more languages.