Is it a language server problem? No
Please include in your report:
Open Repository in sublime text..js, .ts file in ST.Expected behaviour:
Start the server in the file.
Actual behaviour:
I get an error popup:
Request initialize failed with message: The "path" argument must be one of type string, Buffer, or URL. Received type object

And I have to quit ST and open it to make the error go away.
Additional info,
I suspect to it is due to not having a way to detect when we open ST like that. (similar that we don't have a callback to detect when set_project_data was called, or maybe we do have a way, but I am not aware of it).
There are a couple parties here:
can_start and refuse to start when there's no folder?
- Open a typescript repo in sublime merge.
- Open command palette and choose
Open Repository in sublime text.
I've seen this error before but those steps actually don't reproduce for me. SM opens a folder so LSP-Typescript gets a property rootPath and all.
Hi 馃憢馃徎 I was just about to ask this in Discord, when decided to go through GitHub issues. I have the very same error, but steps to reproduce are different.

Restart button doesn't help, I have to Cancel and reload editor, then it's fine.
To be honest I have no clue how to debug ST, so if you have some directions which will help you and that I can follow, I would gladly perform them.
I can reproduce using those steps.
Looks like an LSP bug. I don't think ST has a way of notifying us when workspace folders change but we could probably work around it somehow.
The "bug" is that we still don't have an event for when window.project_data() changes. The only thing that File > Open does when you select a folder is that it is added to window.project_data()["folders"]. While the situation is improved now that we have on_project_loaded etc, really we only need a new on_project_data_changed.
I was thinking that we could re-evaluate the workspace folders before starting the server.
It's not gonna be pretty or proper but sometimes you gotta do what you gotta do. :)
@rchl @rwols Thank you guys, you are doing a fantastic job with LSP 馃馃徎
Most helpful comment
I was thinking that we could re-evaluate the workspace folders before starting the server.
It's not gonna be pretty or proper but sometimes you gotta do what you gotta do. :)