You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Paste Raw data from: https://github.com/helix-editor/helix/blob/master/languages.toml into languages.toml file.
hx <non-important-file>
See error. I'm able to press enter to continue to the editing process, but it doesn't recognize the language service in the buffer.
I expected this to happen
I use helix as expected; I'm able to edit the file with helix commands and the support of the newly added LSPs for function definitions and autocomplete (if supported for that language).
Instead, this happened
A warning pops up alerting me that Bad language config: invalid type: map, expected a string for key 'language.file-types'. I'm able to press enter to continue to the editing process.
Helix log
2022-10-29T00:08:23.286 helix_view::editor [ERROR] Failed to initialize the LSP for `source.toml` { cannot find binary path }
2022-10-29T00:10:24.474 helix_view::editor [ERROR] Failed to initialize the LSP for `source.toml` { cannot find binary path }
2022-10-29T00:10:57.574 helix_view::theme [WARN] Theme: malformed hexcode: highlight
2022-10-29T00:10:58.659 helix_view::theme [WARN] Theme: malformed hexcode: 123456
2022-10-29T00:11:00.622 helix_view::theme [WARN] Theme: malformed hexcode: indent
2022-10-29T00:11:03.706 helix_view::theme [WARN] Theme: malformed hexcode: highlight
2022-10-29T00:11:10.662 helix_view::theme [WARN] Theme: malformed hexcode: 123456
2022-10-29T00:11:11.359 helix_view::theme [WARN] Theme: malformed hexcode: 123456
2022-10-29T00:11:30.449 helix_view::editor [ERROR] Failed to initialize the LSP for `source.toml` { cannot find binary path }
2022-10-29T00:16:33.169 helix_view::editor [ERROR] Failed to initialize the LSP for `source.toml` { cannot find binary path }
2022-10-29T00:17:06.953 helix_view::theme [WARN] Theme: malformed hexcode: highlight
2022-10-29T00:17:31.121 helix_view::theme [WARN] Theme: malformed hexcode: indent
2022-10-29T00:35:15.910 helix_view::theme [WARN] Theme: malformed hexcode: prumary
2022-10-29T00:35:16.334 helix_view::theme [WARN] Theme: malformed hexcode: prumary
2022-10-29T00:39:54.893 helix_view::theme [WARN] Theme: malformed hexcode: #000
2022-10-29T00:39:55.375 helix_view::theme [WARN] Theme: malformed hexcode: #000
2022-10-29T00:50:48.297 helix_view::editor [ERROR] Failed to initialize the LSP for `source.js` { cannot find binary path }
2022-10-29T00:50:54.578 helix_view::editor [ERROR] Failed to initialize the LSP for `source.toml` { cannot find binary path }
2022-10-29T00:51:10.929 helix_view::editor [ERROR] Failed to initialize the LSP for `source.js` { cannot find binary path }
2022-10-29T01:03:59.071 helix_lsp::transport [ERROR] <- InternalError: Request initialize failed with message: Could not find a valid TypeScript installation. Please ensure that the "typescript" dependency is installed in the workspace or that a valid `tsserver.path` is specified. Exiting.
2022-10-29T01:03:59.072 helix_lsp [ERROR] failed to initialize language server: protocol error: InternalError: Request initialize failed with message: Could not find a valid TypeScript installation. Please ensure that the "typescript" dependency is installed in the workspace or that a valid `tsserver.path` is specified. Exiting.
2022-10-29T01:04:30.890 helix_term::application [ERROR] Timed out waiting for language servers to shutdown
2022-10-29T01:04:43.237 helix_view::editor [ERROR] Failed to initialize the LSP for `source.toml` { cannot find binary path }
2022-10-29T01:06:23.754 helix_lsp::transport [ERROR] <- InternalError: Request initialize failed with message: Could not find a valid TypeScript installation. Please ensure that the "typescript" dependency is installed in the workspace or that a valid `tsserver.path` is specified. Exiting.
2022-10-29T01:06:23.754 helix_lsp [ERROR] failed to initialize language server: protocol error: InternalError: Request initialize failed with message: Could not find a valid TypeScript installation. Please ensure that the "typescript" dependency is installed in the workspace or that a valid `tsserver.path` is specified. Exiting.
2022-10-29T01:06:30.128 helix_term::application [ERROR] Timed out waiting for language servers to shutdown
2022-10-29T01:06:37.081 helix_view::editor [ERROR] Failed to initialize the LSP for `source.toml` { cannot find binary path }
2022-10-29T01:07:33.522 helix_view::editor [ERROR] Failed to initialize the LSP for `source.toml` { cannot find binary path }
2022-10-29T10:19:13.424 helix_lsp::transport [ERROR] <- InternalError: Request initialize failed with message: Could not find a valid TypeScript installation. Please ensure that the "typescript" dependency is installed in the workspace or that a valid `tsserver.path` is specified. Exiting.
2022-10-29T10:19:13.425 helix_lsp [ERROR] failed to initialize language server: protocol error: InternalError: Request initialize failed with message: Could not find a valid TypeScript installation. Please ensure that the "typescript" dependency is installed in the workspace or that a valid `tsserver.path` is specified. Exiting.
2022-10-29T10:19:19.103 helix_term::application [ERROR] Timed out waiting for language servers to shutdown
2022-10-29T10:19:53.067 helix_view::editor [ERROR] Failed to initialize the LSP for `source.toml` { cannot find binary path }
2022-10-29T10:20:14.935 helix_lsp::transport [ERROR] <- InternalError: Request initialize failed with message: Could not find a valid TypeScript installation. Please ensure that the "typescript" dependency is installed in the workspace or that a valid `tsserver.path` is specified. Exiting.
2022-10-29T10:20:14.935 helix_lsp [ERROR] failed to initialize language server: protocol error: InternalError: Request initialize failed with message: Could not find a valid TypeScript installation. Please ensure that the "typescript" dependency is installed in the workspace or that a valid `tsserver.path` is specified. Exiting.
2022-10-29T10:20:15.960 helix_term::application [ERROR] Timed out waiting for language servers to shutdown
please provide a copy of `~/.cache/helix/helix.log` here if possible, you may need to redact some of the lines
You're running the 22.08.1 release but using a languages.toml from master. In order to use that new syntax you will need to build from at least 17daf6a (#4414).
However you don't need to copy the languages.toml from this repository to ~/.config/helix/languages.toml: languages.toml from the repository root is built into the binary when compiling. You should delete the ~/.config/helix/languages.toml file.
You're running the 22.08.1 release but using a languages.toml from master. In order to use that new syntax you will need to build from at least 17daf6a (#4414).
However you don't need to copy the languages.toml from this repository to ~/.config/helix/languages.toml: languages.toml from the repository root is built into the binary when compiling. You should delete the ~/.config/helix/languages.toml file.
Oh, I see! That seems to have resolved the error. It seems that the language buffer is a separate issue I'll have to look into. Thank you for your time!
Summary
Error:
Configuring Helix for the first time; new user here.
Reproduction Steps
Potential point of error?
file-types
, line 1516--
I tried this
hx ~/.config/helix/languages.toml
https://github.com/helix-editor/helix/blob/master/languages.toml
into languages.toml file.hx <non-important-file>
I expected this to happen
Instead, this happened
Bad language config: invalid type: map, expected a string for key 'language.file-types'
. I'm able to press enter to continue to the editing process.Helix log
2022-10-29T00:08:23.286 helix_view::editor [ERROR] Failed to initialize the LSP for `source.toml` { cannot find binary path } 2022-10-29T00:10:24.474 helix_view::editor [ERROR] Failed to initialize the LSP for `source.toml` { cannot find binary path } 2022-10-29T00:10:57.574 helix_view::theme [WARN] Theme: malformed hexcode: highlight 2022-10-29T00:10:58.659 helix_view::theme [WARN] Theme: malformed hexcode: 123456 2022-10-29T00:11:00.622 helix_view::theme [WARN] Theme: malformed hexcode: indent 2022-10-29T00:11:03.706 helix_view::theme [WARN] Theme: malformed hexcode: highlight 2022-10-29T00:11:10.662 helix_view::theme [WARN] Theme: malformed hexcode: 123456 2022-10-29T00:11:11.359 helix_view::theme [WARN] Theme: malformed hexcode: 123456 2022-10-29T00:11:30.449 helix_view::editor [ERROR] Failed to initialize the LSP for `source.toml` { cannot find binary path } 2022-10-29T00:16:33.169 helix_view::editor [ERROR] Failed to initialize the LSP for `source.toml` { cannot find binary path } 2022-10-29T00:17:06.953 helix_view::theme [WARN] Theme: malformed hexcode: highlight 2022-10-29T00:17:31.121 helix_view::theme [WARN] Theme: malformed hexcode: indent 2022-10-29T00:35:15.910 helix_view::theme [WARN] Theme: malformed hexcode: prumary 2022-10-29T00:35:16.334 helix_view::theme [WARN] Theme: malformed hexcode: prumary 2022-10-29T00:39:54.893 helix_view::theme [WARN] Theme: malformed hexcode: #000 2022-10-29T00:39:55.375 helix_view::theme [WARN] Theme: malformed hexcode: #000 2022-10-29T00:50:48.297 helix_view::editor [ERROR] Failed to initialize the LSP for `source.js` { cannot find binary path } 2022-10-29T00:50:54.578 helix_view::editor [ERROR] Failed to initialize the LSP for `source.toml` { cannot find binary path } 2022-10-29T00:51:10.929 helix_view::editor [ERROR] Failed to initialize the LSP for `source.js` { cannot find binary path } 2022-10-29T01:03:59.071 helix_lsp::transport [ERROR] <- InternalError: Request initialize failed with message: Could not find a valid TypeScript installation. Please ensure that the "typescript" dependency is installed in the workspace or that a valid `tsserver.path` is specified. Exiting. 2022-10-29T01:03:59.072 helix_lsp [ERROR] failed to initialize language server: protocol error: InternalError: Request initialize failed with message: Could not find a valid TypeScript installation. Please ensure that the "typescript" dependency is installed in the workspace or that a valid `tsserver.path` is specified. Exiting. 2022-10-29T01:04:30.890 helix_term::application [ERROR] Timed out waiting for language servers to shutdown 2022-10-29T01:04:43.237 helix_view::editor [ERROR] Failed to initialize the LSP for `source.toml` { cannot find binary path } 2022-10-29T01:06:23.754 helix_lsp::transport [ERROR] <- InternalError: Request initialize failed with message: Could not find a valid TypeScript installation. Please ensure that the "typescript" dependency is installed in the workspace or that a valid `tsserver.path` is specified. Exiting. 2022-10-29T01:06:23.754 helix_lsp [ERROR] failed to initialize language server: protocol error: InternalError: Request initialize failed with message: Could not find a valid TypeScript installation. Please ensure that the "typescript" dependency is installed in the workspace or that a valid `tsserver.path` is specified. Exiting. 2022-10-29T01:06:30.128 helix_term::application [ERROR] Timed out waiting for language servers to shutdown 2022-10-29T01:06:37.081 helix_view::editor [ERROR] Failed to initialize the LSP for `source.toml` { cannot find binary path } 2022-10-29T01:07:33.522 helix_view::editor [ERROR] Failed to initialize the LSP for `source.toml` { cannot find binary path } 2022-10-29T10:19:13.424 helix_lsp::transport [ERROR] <- InternalError: Request initialize failed with message: Could not find a valid TypeScript installation. Please ensure that the "typescript" dependency is installed in the workspace or that a valid `tsserver.path` is specified. Exiting. 2022-10-29T10:19:13.425 helix_lsp [ERROR] failed to initialize language server: protocol error: InternalError: Request initialize failed with message: Could not find a valid TypeScript installation. Please ensure that the "typescript" dependency is installed in the workspace or that a valid `tsserver.path` is specified. Exiting. 2022-10-29T10:19:19.103 helix_term::application [ERROR] Timed out waiting for language servers to shutdown 2022-10-29T10:19:53.067 helix_view::editor [ERROR] Failed to initialize the LSP for `source.toml` { cannot find binary path } 2022-10-29T10:20:14.935 helix_lsp::transport [ERROR] <- InternalError: Request initialize failed with message: Could not find a valid TypeScript installation. Please ensure that the "typescript" dependency is installed in the workspace or that a valid `tsserver.path` is specified. Exiting. 2022-10-29T10:20:14.935 helix_lsp [ERROR] failed to initialize language server: protocol error: InternalError: Request initialize failed with message: Could not find a valid TypeScript installation. Please ensure that the "typescript" dependency is installed in the workspace or that a valid `tsserver.path` is specified. Exiting. 2022-10-29T10:20:15.960 helix_term::application [ERROR] Timed out waiting for language servers to shutdown
Platform
MacOS
Terminal Emulator
iTerm 2 @latest (3.x.x)
Helix Version
helix 22.08.1 (66276ce)
The text was updated successfully, but these errors were encountered: