Nocter
VS Code language support for Nocter .nct source files.
Nocter is a statically typed, value-centered systems language for building
native executables from .nct source files. Learn more at
nocter.dev.
Features
.nct file association and file icon
- TextMate syntax highlighting
- editor language configuration for comments, brackets, indentation, and word selection
- snippets for common Nocter declarations
- compiler-backed language server integration through
nocter lsp
The extension does not implement Nocter semantics inside VS Code. Diagnostics,
hover, symbols, completion, references, semantic tokens, and future semantic
features come from the Nocter compiler through the language server.
Requirements
Install Nocter from nocter.dev before using the language
server features.
The extension starts the language server with:
nocter lsp
For this to work, nocter must be available on PATH in the environment where
VS Code runs. The Nocter installation may place the real files under a directory
such as ~/.nocter/ and expose nocter through a symbolic link or platform
equivalent in a PATH directory.
The extension does not inspect ~/.nocter/, NOCTER_HOME, or any compiler
directory layout. It only starts nocter lsp.
If nocter is not installed, is not available on PATH, or is not executable,
the extension shows a setup error with a link to nocter.dev.
Troubleshooting
Check that VS Code can see the Nocter command:
nocter --version
If the command works in a terminal but the extension still cannot start the
language server, restart VS Code after changing PATH.
If the command is missing, install Nocter from nocter.dev
or add the directory containing nocter to PATH.
Support
Report extension issues at
github.com/rvo-jp/vscode-nocter/issues.
For Nocter language and compiler information, see
nocter.dev.
Development
npm install
npm run compile
To run the extension from this repository:
- Open this repository in VS Code.
- Select
Run Nocter Extension in Run and Debug.
- Start debugging.
- In the Extension Development Host window, open this repository or any folder containing
.nct files.
- Open a
.nct file and check the Problems panel.