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(ols): remove single_file_support #2952

Merged
merged 2 commits into from
Dec 31, 2023

Conversation

losinggeneration
Copy link
Contributor

It doesn't seem like ols really has support for single_file_support. The ols application crashes with the following message: "ols/src/server/requests.odin(1494:28) Index 0 is out of range 0..<0\n"

This happens on workspace/didChangeConfiguration when settings are provided in the users' ols setup.

To work around this, essentially turning off single_file_support & adding *.odin as a way to detect a root_dir. This isn't very common but at least one other language server uses this method, qml_ls. However, without this, the ols doesn't really work out of the box for projects that lack a .git directory or ols.json file.

It doesn't seem like ols really has support for single_file_support. The
ols application crashes with the following message:
"ols/src/server/requests.odin(1494:28) Index 0 is out of range 0..<0\n"

This happens on workspace/didChangeConfiguration when settings are
provided in the users' ols setup.

To work around this, essentially turning off single_file_support
& adding *.odin as a way to detect a root_dir. This isn't very common
but at least one other language server uses this method, qml_ls.
However, without this, the ols doesn't really work out of the box for
projects that lack a .git directory or ols.json file.
@glepnir glepnir merged commit b84a1f6 into neovim:master Dec 31, 2023
9 checks passed
@losinggeneration losinggeneration deleted the ols_config branch December 31, 2023 03:16
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