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

TreeSand load improvement #45

Merged
merged 5 commits into from
May 27, 2024

Conversation

stackmystack
Copy link
Collaborator

This PR contains:

  1. Release of TreeSitter documentation
  2. Correction of Node#pretty_print signatures (sorbet)
  3. A change in the default printing device, of TreeStand::Utils::Printer from a StringIO created each time we call pretty_print, to something fixed in the printer class, and configurable as well, through TreeStand.config.io.
  4. Add some sane defaults to load parsers automagically if no config is provided.

@DerekStride I did these changes while working with TreeStand, and I acknowledge the fact they could be broken into different PRs, but I just did them in a single one for convenience.

I would love to have your feedback, as I did some things on the spot and I might be missing something.

@stackmystack stackmystack force-pushed the tree-stand-load-improvement branch 4 times, most recently from 188d955 to 3a4a6b9 Compare May 24, 2024 08:28
@stackmystack
Copy link
Collaborator Author

I redid the commits since they were very rough and incoherent.

@stackmystack stackmystack force-pushed the tree-stand-load-improvement branch 2 times, most recently from feb5228 to ed76923 Compare May 24, 2024 15:00
lib/tree_stand/node.rb Outdated Show resolved Hide resolved
@stackmystack stackmystack force-pushed the tree-stand-load-improvement branch 3 times, most recently from 4ea0705 to cbd9591 Compare May 25, 2024 12:07
We used to load only `so` files in a specific path if provided through
config.

This patch adds 2 things:
1. Parsers for Mac and Linux.
2. Automatic lookup through defaults if no config is provided.
When the test suite fails it opens an rdbg session, and most of the time,
when debugging, I'd like to just get back to my code and work with it.

It would have been OK if a ^C or a ^D would do it. But the problem is
worst: my terminal keeps getting out of sync.

Uncomment that line if you want that debugging functionality. It's now
opt-in.
We still have some cross-ref issues with markdown.
@stackmystack stackmystack merged commit e94dc04 into Faveod:master May 27, 2024
19 of 21 checks passed
@stackmystack stackmystack mentioned this pull request May 27, 2024
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

Successfully merging this pull request may close these issues.

2 participants