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: pass kotlin build errors to the language server #1180

Merged
merged 1 commit into from
Apr 5, 2024

Conversation

worstell
Copy link
Contributor

@worstell worstell commented Apr 5, 2024

although we've temporarily suspended development on the kotlin runtime, this was a useful proof-of-concept to demonstrate how we can build non-Go runtimes to interact with the language server

fixes #1123
fixes #1159

Screenshot 2024-04-04 at 3 23 15 PM

@worstell worstell force-pushed the worstell/20240404-kotlin-ls-errors branch from ac5ffa6 to bd851bb Compare April 5, 2024 00:13
@@ -59,7 +58,7 @@ func (c *Cmd) RunBuffered(ctx context.Context) error {

err := c.Run()
if err != nil {
fmt.Printf("%s", outputBuffer.Bytes())
log.FromContext(ctx).Infof("%s", outputBuffer.Bytes())
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Collaborator

@alecthomas alecthomas left a comment

Choose a reason for hiding this comment

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

Nice, I like this approach. Let's convert the Go runtime to use this mechanism in a followup well so they're consistent.

@worstell
Copy link
Contributor Author

worstell commented Apr 5, 2024

Nice, I like this approach. Let's convert the Go runtime to use this mechanism in a followup well so they're consistent.

good call!

@worstell worstell merged commit f0006fa into main Apr 5, 2024
11 checks passed
@worstell worstell deleted the worstell/20240404-kotlin-ls-errors branch April 5, 2024 00:56
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.

Ability to handle errors from any language runtime normalize stderr output across go/kotlin
2 participants