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

feat: use the new ScalaAction from BSP4J #2284

Merged
merged 4 commits into from Jul 14, 2023
Merged

Conversation

ckipp01
Copy link
Contributor

@ckipp01 ckipp01 commented Jul 12, 2023

This is a simplified version of
#1969 that gets rid of the ActionableDiagnostic that is used internally and instead just ensures that any time a TextEdit is created there is a title. Then we take all the information already contained in the Diagnostic and make a ScalaAction from it to be forwarded via the diagnostic data.

@ckipp01
Copy link
Contributor Author

ckipp01 commented Jul 12, 2023

Ahhh, I forgot to update the tests. I'll do that.

This is a simplified version of
VirtusLab#1969 that gets rid of the
`ActionableDiagnostic` that is used internally and instead just ensures
that any time a `TextEdit` is created there is a `title`. Then we take
all the information already contained in the `Diagnostic` and make a
`ScalaAction` from it to be forwarded via the diagnostic data.
@ckipp01
Copy link
Contributor Author

ckipp01 commented Jul 13, 2023

I don't really get what's going on here @tgodzik, the native tests are failing with a null pointer exception and I don't really get why. Am I maybe missing something obvious?

@lwronski
Copy link
Contributor

I don't really get what's going on here @tgodzik, the native tests are failing with a null pointer exception and I don't really get why. Am I maybe missing something obvious?

Hello @ckipp01, thank you for your contribution. It appears that there's some missing configuration for GraalVM, where reflection is used. I can help you with this tomorrow.

@ckipp01
Copy link
Contributor Author

ckipp01 commented Jul 14, 2023

I don't really get what's going on here @tgodzik, the native tests are failing with a null pointer exception and I don't really get why. Am I maybe missing something obvious?

Hello @ckipp01, thank you for your contribution. It appears that there's some missing configuration for GraalVM, where reflection is used. I can help you with this tomorrow.

Ahh of course, I forgot about that from my other pr. I just tried updated the reflect config with the new stuff that this adds from BSP4j. Hopefully that will do the trick.

@lwronski
Copy link
Contributor

I don't really get what's going on here @tgodzik, the native tests are failing with a null pointer exception and I don't really get why. Am I maybe missing something obvious?

Hello @ckipp01, thank you for your contribution. It appears that there's some missing configuration for GraalVM, where reflection is used. I can help you with this tomorrow.

Ahh of course, I forgot about that from my other pr. I just tried updated the reflect config with the new stuff that this adds from BSP4j. Hopefully that will do the trick.

@ckipp01 Thanks, it seems to be working now. One job failed, but it's unrelated to your changes. A job restart should fix it.

Copy link
Contributor

@lwronski lwronski left a comment

Choose a reason for hiding this comment

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

Overall changes LGTM. Thank you for your contribution, @ckipp01!

Copy link
Contributor

@MaciejG604 MaciejG604 left a comment

Choose a reason for hiding this comment

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

LGTM

@lwronski lwronski merged commit e012d3f into VirtusLab:main Jul 14, 2023
38 checks passed
@ckipp01 ckipp01 deleted the action branch July 14, 2023 18:11
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.

None yet

3 participants