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

WIP upgrade to scala 3 #759

Draft
wants to merge 25 commits into
base: develop
Choose a base branch
from
Draft

WIP upgrade to scala 3 #759

wants to merge 25 commits into from

Conversation

Grifs
Copy link
Collaborator

@Grifs Grifs commented Aug 8, 2024

Describe your changes

fix a range of issues until it compiles.
This won't work though, too much stuff bypassed.

Related issue(s)

Closes #715

Type of Change

  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • New functionality (non-breaking change which adds functionality)
  • Major change (non-breaking change which modifies existing functionality)
  • Minor change (non-breaking change which does not modify existing functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • This change requires a documentation update

Checklist

Requirements:

  • I have read the CONTRIBUTING doc.
  • I have performed a self-review of my code by checking the "Changed Files" tab.
  • My code follows the code style of this project.

Tests:

  • I have added tests that prove my fix is effective or that my feature works.
  • New and existing unit tests pass locally with my changes.

Documentation:

  • Proposed changes are described in the CHANGELOG.md.
  • I have updated the documentation accordingly.

Test Environment

fix a range of issues until it compiles.
This won't work though, too much stuff bypassed.
@Grifs Grifs changed the title Disable any reflection & circe calls as it was tripping over its toes WIP upgrade to scala 3 Aug 8, 2024
@Grifs
Copy link
Collaborator Author

Grifs commented Aug 30, 2024

  • Fix syntax changes & compile errors
  • Disable exporting functionality as needed to disable old reflection code + circe because interface changed drastically
  • Fix Circe code to use basic decoders & encoders
    • Use base decoders by adding some dummy wrapper calls
    • Use configuration
    • Fix explicitely having to import decoders
    • Re-enable conversion code & error checks
    • Get full history of failing encoder
  • Re-implement reflection
    • checks in circe
    • cli-schema / cli-autocomplete
    • config-schema / json-schema
    • Solve stripMargin in annotations

fix platforms being able to encode
fix executablerunner not using the correct encoder

other small cleanup
To be solved later by either fixing the recursion that is happening or by the reflection code to call stripMargin on the fields.
TBD, but the second solution could potentially cleanup some of the annotation code.
Manually written code, I bet there is a better way
Temporary way of getting the class name
Not fetching the valid fields yet
Mark regex issues as unchecked to be solved later
Add some minor type annotations in CollectedSchemas, which will refactoring easier because we'll now know what was previously expected
seems likely that the code can be streamlined a bit more, tbd
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.

1 participant