Skip to content

SYNG5005 - Missing language

Domain: lsp
Severity: USER

No language was specified for the query.

SYNG needs to know which programming language to search in order to parse files correctly and apply the appropriate syntax rules. The language can be specified in the query document or inferred from context.

Example

clojure
(call)

A query without a language directive like @lang js at the top of the file, and no language could be inferred from the workspace context.

Solution

Add a language directive at the top of your query file:

clojure
@lang js
(call)

Supported languages: js, ts, tsx, jsx, py, rb, go, rust, java, c, cpp, and more.

SYNG5004, SYNG5006

Copyright © 2022-present Semantic Works, Inc.