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

Origami not working in c# mode #49

Open
ahmed-shariff opened this issue Mar 5, 2024 · 1 comment
Open

Origami not working in c# mode #49

ahmed-shariff opened this issue Mar 5, 2024 · 1 comment

Comments

@ahmed-shariff
Copy link

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:

(error "Tried to construct a node where the children overlap or are not distinct regions: %s"

Also, this error is suppressed in origami-get-fold-tree, here:

(ignore-errors (origami-build-tree buffer (origami-get-parser buffer)))

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

@jcs090218
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants