Skip to content

CCI Language server does not correctly parse the type of << pipeline.number >> #327

@christophe-SA

Description

@christophe-SA

I'm using the VSCode plugin. There seems to be a strange type mismatch in the language server. << pipeline.number >> doesn't seem to be parsed as an integer on the language server, but if I run circleci validate .circle/config.yml, it passes validation. I get an error and a highlight in vscode from the language server with the Parameter pipeline_number for jira/notify must be a integer error. Attached below is the full error body and the relevant config yml

# config snippet
version: 2.1
orbs:
  jira: circleci/[email protected]
  ...
      - jira/notify:
          pipeline_id: << pipeline.id >>
          pipeline_number: << pipeline.number >>

# language server error
[{
	"resource": "/Users/christophe/dev/state-affairs-bill-tracking-api/.circleci/config.yml",
	"owner": "cci-diag",
	"severity": 8,
	"message": "Parameter pipeline_number for jira/notify must be a integer",
	"source": "cci-language-server",
	"startLineNumber": 46,
	"startColumn": 11,
	"endLineNumber": 46,
	"endColumn": 49
}]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions