Hello again! This isn’t a big deal but I figured it was worth reporting. When a job requires a previous job using matrix parameters to complete, the language server is returning some errors. I tested this using both enum and string types with the same result.
This passes circleci config validate
and runs perfectly fine.
$ circleci config validate
Config file at .circleci/config.yml is valid.
.circleci/config.yml:
version: 2.1
jobs:
build:
docker:
- image: cimg/base:stable
parameters:
env-name:
type: string
default: "dev"
steps:
- run: echo "hello world! we are in the << parameters.env-name >> environment"
test:
docker:
- image: cimg/base:stable
parameters:
env-name:
type: string
default: "dev"
steps:
- run: echo "hello world! it's time to test our code"
workflows:
pr-pipeline:
jobs:
- build:
name: build-<< matrix.env-name >>
matrix:
parameters:
env-name:
- dev
- qa
- prod
- test:
requires:
- build-dev
- build-qa
- build-prod
Circle CI Language Server log, but it doens’t look too interesting to me unfortunately.
No port defined: the server will find a free port
Server started on port 42993, version 0.6.0
JSON Schema: /home/kherring/.local/share/CircleCI-language-server/schema.json
New client connection
Called method: initialize
Called method: initialized
Called method: textDocument/didOpen
Called method: workspace/didChangeConfiguration
Called method: workspace/executeCommand
Called method: textDocument/documentSymbol
Called method: textDocument/codeAction
Called method: textDocument/documentSymbol
Called method: textDocument/semanticTokens/full
Called method: workspace/executeCommand
Called method: textDocument/codeAction
Called method: textDocument/codeAction
Called method: textDocument/codeAction
Called method: textDocument/codeAction