Skip to content

Conversation

@rodinaarssen
Copy link
Member

Complex types were wrapped in an auxiliary object to avoid ambiguities between the JSON representation of containers and "lists as a sole argument" on the JSON-RPC level. This is not necessary, as complex types are not automatically deserializable through this path anyway. This PR removes wrapping around complex types, leaving rationals as the only values that are wrapped when encoding values as JSON objects.

FIxes usethesource/rascal-language-servers#944

@codecov
Copy link

codecov bot commented Jan 16, 2026

Codecov Report

❌ Patch coverage is 72.22222% with 10 lines in your changes missing coverage. Please review.
✅ Project coverage is 46%. Comparing base (9f5843f) to head (f0ff59c).
⚠️ Report is 39 commits behind head on main.

Files with missing lines Patch % Lines
src/org/rascalmpl/ideservices/GsonUtils.java 88% 2 Missing ⚠️
src/org/rascalmpl/library/util/TermREPL.java 0% 2 Missing ⚠️
src/org/rascalmpl/library/util/Webserver.java 0% 2 Missing ⚠️
src/org/rascalmpl/repl/http/REPLContentServer.java 0% 2 Missing ⚠️
...c/org/rascalmpl/ideservices/RemoteIDEServices.java 0% 1 Missing ⚠️
...pl/library/lang/json/internal/JsonValueReader.java 0% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##              main   #2599    +/-   ##
========================================
  Coverage       46%     46%            
- Complexity    6637    6652    +15     
========================================
  Files          793     793            
  Lines        65695   65697     +2     
  Branches      9840    9839     -1     
========================================
+ Hits         30500   30618   +118     
+ Misses       32835   32720   -115     
+ Partials      2360    2359     -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@DavyLandman
Copy link
Member

Looks good, but please update the pom.xml config to make sure these tests are run during CI.

Copy link
Member

@DavyLandman DavyLandman left a comment

Choose a reason for hiding this comment

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

I think the test need a bit more love

Copy link
Member

@DavyLandman DavyLandman left a comment

Choose a reason for hiding this comment

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

a few small nits and only one remaining thing, after that, ready to merge I would say

@DavyLandman DavyLandman merged commit c275bc9 into main Jan 22, 2026
7 checks passed
@rodinaarssen rodinaarssen deleted the fix-jsonrpc-wrapping branch January 22, 2026 14:08
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.

Breaking change - values returned from a rascal-meta-command are now nested within an outer object's val property

3 participants