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

Fixes compilation and running from within VS Code #1902

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jar-stripe
Copy link
Contributor

@jar-stripe jar-stripe commented Oct 18, 2024

Why?

stripe-java uses Lombok to generate getters and setters for class properties, and recently it stopped working correctly when developing in vscode. The logs indicate a StackOverflowError when the language server is running Lombok. When troubleshooting that, I also noticed that using "restricted" httpserver imports in ThinEventWebhookHandler would cause a quiet error when trying to run any java files from vscode. These imports are technically "restricted" but are supported as exported APIs by the JDK team. All of these made it very difficult to debug or run java files from within vscode. This PR fixes these issues by increasing the language server stack size and explicitly defining an access rule for that vscode-java can use the httpserver imports.

What?

  • increased the language server per-thread stack size (Xss) to 8m so lombok can run
  • added eclipse access rule for com.sun.net.httpserver.* so the langauge server does not report them as errors to the debugger

…ld and run from vs code:

- added missing package to StripeRequestTest
- increased the language server per-thread stack size (Xss) to 8m so lombok can run
- added eclipse access rule for com.sun.net.httpserver.* so the langauge server does not report them as errors to the debugger
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