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

execute compiler rpc in a task #60

Closed
mhanberg opened this issue Jun 27, 2023 · 0 comments · Fixed by #95 or #96
Closed

execute compiler rpc in a task #60

mhanberg opened this issue Jun 27, 2023 · 0 comments · Fixed by #95 or #96
Labels
bug Something isn't working

Comments

@mhanberg
Copy link
Collaborator

this will not block the runtime genserver, so that stdout packets from the port can be forwarded to the LSP process and logged correctly.

it currently synchronously compiles, and then logs the pile of log messages.

when it fires off a task (should be a supervised task), it should set some state to lock the server so that other processes can't ask it for data assuming the code is compiled

or a flag to say its compiling, and only allow rpc's that don't care about that

@mhanberg mhanberg added the bug Something isn't working label Jun 27, 2023
mhanberg added a commit that referenced this issue Jul 6, 2023
This lets the compiler stdout messgaes to be logged to the client while
the RPC is still happening.

Previously, the port would message back to the process that was
synchronously waiting on the RPC to finish, so it didn't send any log
messages to the LSP process until the compiler was done.

This made it look like the initial compiler was hanging.

Fixes #60
mhanberg added a commit that referenced this issue Jul 6, 2023
This lets the compiler stdout messgaes to be logged to the client while
the RPC is still happening.

Previously, the port would message back to the process that was
synchronously waiting on the RPC to finish, so it didn't send any log
messages to the LSP process until the compiler was done.

This made it look like the initial compiler was hanging.

Fixes #60
mhanberg added a commit that referenced this issue Jul 6, 2023
This lets the compiler stdout messgaes to be logged to the client while
the RPC is still happening.

Previously, the port would message back to the process that was
synchronously waiting on the RPC to finish, so it didn't send any log
messages to the LSP process until the compiler was done.

This made it look like the initial compiler was hanging.

Fixes #60
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment