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

fix: check if body is null #807

Merged
merged 1 commit into from
Nov 1, 2024
Merged

Conversation

oxidase
Copy link
Contributor

@oxidase oxidase commented Sep 6, 2024

I got no body in a response with success status

Sending:
{
  "command": "source",
  "arguments": {
    "sourceReference": 0
  },
  "type": "request",
  "seq": 6
}
Received:
{
  "seq": 17,
  "type": "response",
  "request_seq": 6,
  "command": "source",
  "success": true
}
#s(hash-table size 65 test equal rehash-size 1.5 rehash-threshold 0.8125 data (seq 17 type response request_seq 6 command source success t))

and dap-mode failed with

error in process filter: Wrong type argument: hash-table-p, nil [2 times]

This is a quick fix to check if body is non-nil

@jcs090218 jcs090218 merged commit ee1091c into emacs-lsp:master Nov 1, 2024
11 checks passed
@jcs090218
Copy link
Member

Thank you!

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.

2 participants