Skip to content

Error: Header must provide a Content-Length property. #77

@PappasBrent

Description

@PappasBrent

Environment

  • OS: Linux
  • OS Version: Ubuntu 20.04.4
  • VS Code Version: 1.70.1
  • Racket version: 8.3
  • Racket Langserver checksum: a1141f0871a55c036949d0bb0179fddbf86a97cd
  • Magic Racket version: 0.6.4

Error message

[2022-08-12 11:02:12.925] [exthost] [error] Error: Header must provide a Content-Length property.
	at StreamMessageReader.onData (/home/bpappas/.vscode/extensions/evzen-wybitul.magic-racket-0.6.4/node_modules/vscode-jsonrpc/lib/common/messageReader.js:138:27)
	at Socket.<anonymous> (/home/bpappas/.vscode/extensions/evzen-wybitul.magic-racket-0.6.4/node_modules/vscode-jsonrpc/lib/common/messageReader.js:122:18)
	at Socket.emit (node:events:390:28)
	at addChunk (node:internal/streams/readable:315:12)
	at readableAddChunk (node:internal/streams/readable:289:9)
	at Socket.Readable.push (node:internal/streams/readable:228:10)
	at Pipe.onStreamRead (node:internal/stream_base_commons:199:23)

Additional context

Thank you for this extension.
I really like it, but am currently running into the following error.
Magic Racket only seems to work for new files.
When I reopen a .rkt file, Magic Racket stops working.

Steps to reproduce:

  1. Create a new .rkt file:
#lang racket
'test
  1. Save the file and close VS Code.
  2. Reopen VS Code.
  3. Reopen the file (if not already open).
  4. Try to use Magic Racket features (e.g., auto-complete, auto-format).

When I try to use these features, nothing happens.
When I check output -> extension host, I see the error message listed above.

I am able to "fix" the issue by turning off the language server, closing VS Code, and restarting the language server; however this is not convenient.

Any help would be appreciated, thank you.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions