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

Java LSP issues #95

Closed
veksha opened this issue Oct 27, 2022 · 2 comments
Closed

Java LSP issues #95

veksha opened this issue Oct 27, 2022 · 2 comments

Comments

@veksha
Copy link

veksha commented Oct 27, 2022

this works ok: "cmd_windows": ["C:\\Java\\jLSP.cmd", "."]
but if parameter to cmd file were not provided we got error.

"cmd_windows": ["C:\\Java\\jLSP.cmd"]

Console:

ReadLoopError: LSP: Java - [Errno 10] No child processes
ERROR: QueuesProcessingError: LSP: Java - not enough values to unpack (expected 2, got 1)
Traceback (most recent call last):
  File "F:\MySSDPrograms\cudatext\py\cuda_lsp\language.py", line 396, in process_queues
    events = self.client.recv(data, errors=errors)
  File "F:\MySSDPrograms\cudatext\py\cuda_lsp\sansio_lsp_client\client.py", line 443, in recv
    messages = list(_parse_messages(self._recv_buf))
  File "F:\MySSDPrograms\cudatext\py\cuda_lsp\sansio_lsp_client\io_handler.py", line 173, in _parse_messages
    parsed = _parse_one_message(response_buf)
  File "F:\MySSDPrograms\cudatext\py\cuda_lsp\sansio_lsp_client\io_handler.py", line 120, in _parse_one_message
    key, value = header_line.decode("ascii").split(": ", 1)
ValueError: not enough values to unpack (expected 2, got 1)

LSP panel stdout:

Error: No cache directory was provided.
@veksha
Copy link
Author

veksha commented Oct 28, 2022

after last changes it is fixed:

Console:

ReadLoopError: LSP: Java - [Errno 10] No child processes

LSP panel:

Error: No cache directory was provided.

  Usage: jLSP.cmd WorkspaceDirectory FileDirectory
Example: jLSP.cmd "$wdd" "$fdd"

@veksha veksha closed this as completed Oct 28, 2022
@Alexey-T
Copy link
Collaborator

Alexey-T commented Oct 28, 2022

good...

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

No branches or pull requests

2 participants