Skip to content

feat: scala support + tree-sitter 0.21.1 bump #237

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

yzia2000
Copy link

@yzia2000 yzia2000 commented Jan 23, 2025

🤔 What's changed?

Added scala support for step definitions and parameter type. Scala treesitter is most stable on 0.21.1 version of tree-sitter. Hence other tree-sitter variants ended up needing a bump too. C-sharp queries required minor fix.

⚡️ What's your motivation?

Treesitter support for scala.

🏷️ What kind of change is this?

  • 📖 Documentation (improvements without changing code)
  • 🏦 Refactoring/debt/DX (improvement to code design, tooling, etc. without changing behaviour)
  • 🐛 Bug fix (non-breaking change which fixes a defect)
  • ⚡ New feature (non-breaking change which adds new behaviour)
  • 💥 Breaking change (incompatible changes to the API)

♻️ Anything particular you want feedback on?

📋 Checklist:

  • I agree to respect and uphold the Cucumber Community Code of Conduct
  • I've changed the behaviour of the code
    • I have added/updated tests to cover my changes.
  • My change requires a change to the documentation.
    • I have updated the documentation accordingly.
  • Users should know about my change
    • I have added an entry to the "Unreleased" section of the CHANGELOG, linking to this pull request.

This text was originally generated from a template, then edited by hand. You can modify the template here.

@yzia2000 yzia2000 force-pushed the feat/scala-support branch 2 times, most recently from ea6f045 to 2381881 Compare January 23, 2025 10:32
@yzia2000
Copy link
Author

yzia2000 commented Jan 23, 2025

Fixes #207

@yzia2000
Copy link
Author

@kieran-ryan mind taking a look at this.

@mpkorstanje mpkorstanje self-requested a review January 25, 2025 11:45
@@ -69,11 +74,19 @@ if (!fs.existsSync(treeSitterCli)) {
let command
if (process.env.CI) {
console.log(`Compiling ${module}`)
command = `node_modules/.bin/tree-sitter build-wasm ${module}`
if (module.endsWith('tree-sitter-php')) {
command = `node_modules/.bin/tree-sitter build --wasm ${module}/php`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why does php get an exception here?

Copy link
Author

@yzia2000 yzia2000 Feb 21, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new version of tree-sitter-php is multi grammar it seems. It's got option of php (php + html) and php_only (just php).

@luke-hill
Copy link
Contributor

Hi @yzia2000 I've merged some stuff which does some interim bumps to some of the packages that you may be relying on. Can you take a look and merge/rebase as appropriate.

@luke-hill
Copy link
Contributor

ping @yzia2000 is this something you're able to fix up so we can get it merged and cut in the v2 release?

@yzia2000
Copy link
Author

yzia2000 commented May 9, 2025

ping @yzia2000 is this something you're able to fix up so we can get it merged and cut in the v2 release?

Will have to wait until the week after. But yeah will look into it.

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.

3 participants