Automattic / Automattic/harper
"harper_ls::backend: Settings must be an object." when lsp server is used in kate
- Dominant language
- Rust
- Stars
- 15.4k
- Forks
- 627
- Avg merge
- 1d 15h
- Merged PRs (30d)
- 106
Description
**Describe the bug**
`harper-ls --stdio` fails when ran inside kate
**To Reproduce**
Steps to reproduce the behavior:
1. Open Kate
2. Go to Settings -> Configure Kate -> LSP Client -> User Server Settings
3. Paste in ```{
"servers": {
"markdown": {
"command": ["harper-ls","--stdio"],
"rootIndicatorFileNames": [".git",".marksman.toml"],
"url": "https://writewithharper.com",
"highlightingModeRegex": "^Markdown$"
}
}
}```
4. Open a markdown file and accept the prompt
**Expected behavior**
Harper should load as the default language server for markdown with this configuration, it errors out instead
**Screenshots**
**Platform**
Kate LSP Client Support and likely KDevelop as well
Contributor guide
Research direction
Start by reproducing the failure with `harper-ls --stdio` using the supplied Kate LSP Client User Server Settings and a Markdown file. Trace how the server handles this configuration at startup; done means Kate can load Harper as the default Markdown language server without the “Settings must be an object” error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100