CodeChef: 'unknown language rust' despite minimal_init enabling only rust #368

Closed
opened 2026-03-07 22:46:34 +00:00 by barrettruth · 0 comments
barrettruth commented 2026-03-07 22:46:34 +00:00

Problem

Launching with nvim --clean -u t/minimal_init.lua (which sets CodeChef enabled_languages = {'rust'} and default_language = 'rust'), opening a .rs file and running :CP produces:

Unknown language 'rust'. Available: [cpp, python]

The reported available languages (cpp, python) do not match the configured enabled_languages, suggesting the platform config is not being read correctly or is being overridden somewhere.

Steps to reproduce

  1. nvim --clean -u t/minimal_init.lua
  2. Open a .rs file associated with a CodeChef problem
  3. :CP

Expected

Submit proceeds using rust as the language.

Actual

Unknown language 'rust'. Available: [cpp, python]

## Problem Launching with `nvim --clean -u t/minimal_init.lua` (which sets CodeChef `enabled_languages = {'rust'}` and `default_language = 'rust'`), opening a `.rs` file and running `:CP` produces: ``` Unknown language 'rust'. Available: [cpp, python] ``` The reported available languages (`cpp`, `python`) do not match the configured `enabled_languages`, suggesting the platform config is not being read correctly or is being overridden somewhere. ## Steps to reproduce 1. `nvim --clean -u t/minimal_init.lua` 2. Open a `.rs` file associated with a CodeChef problem 3. `:CP` ## Expected Submit proceeds using `rust` as the language. ## Actual `Unknown language 'rust'. Available: [cpp, python]`
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
barrettruth/cp.nvim#368
No description provided.