question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Server never initializes if no workspaceFolders are given

See original GitHub issue

The server never responds to the initialize request from the client, if it contains workspaceFolders: null.

From the LSP specs:

        /**
	 * The workspace folders configured in the client when the server starts.
	 * This property is only available if the client supports workspace folders.
	 * It can be `null` if the client supports workspace folders but none are
	 * configured.
	 *
	 * @since 3.6.0
	 */
	workspaceFolders?: [WorkspaceFolder](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#workspaceFolder)[] | null;

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
artempyanykhcommented, Sep 2, 2022

@jfcherng right now Marksman does need a root/folder and doesn’t provide a single-file mode.

But now that I’m thinking a bit more about this, it seems that it’d be quite convenient and a better/less confusing UX overall. I’ve created a separate issue for this #69

1reaction
jfcherngcommented, Sep 2, 2022

Hi @artempyanykh, with 2022-09-02 and single file mode, the server does start but I don’t see it provide anything but just return [] and None for everything (Sublime Text). Could you point out the exact feature supported in single file mode from https://github.com/artempyanykh/marksman#demo?

Read more comments on GitHub >

github_iconTop Results From Across the Web

"Workspace not initialized" error when vscode is opened ...
I am running vscode that contains multiple repos and directories. A few directory levels beneath, there is a terraform workspace. Actual ...
Read more >
Automatically starting a server when starting a debug ...
So here is how to do this. We add two more lines to the existing `launch.json`, defining a task to run before debugging...
Read more >
Cannot Initialize Language Server Protocol - python
Currently I am wondering if it works to interact with the language server by directly sending JSON RPC. It seems that your code...
Read more >
Language Server Protocol Specification - 3.17
This document describes the 3.17.x version of the language server protocol. An implementation for node of the 3.17.x version of the protocol can...
Read more >
User and Workspace Settings
When you open the Settings editor, you can search and discover the settings you are looking for. When you search using the Search...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found