question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Issue parsing colons on Linux

See original GitHub issue

cfn-lint version: 0.48.2 (cfn-lint --version)

Description of issue.

When I lint this file on my Mac using 0.48.2, I get no errors. When the same file is linted using 0.48.2 in CodeBuild (aws/codebuild/amazonlinux2-x86_64-standard:3.0) it returns:

E0000 found unexpected ':'
./stacks/shared-vpc.yml:38:21

The offending line is: - { Key: prx:meta:tagging-version, Value: "2021-04-07" }

CloudFormation has no issues with the code (it creates those tags as expected). Quoting the values makes the linter happy, even in CodeBuild, but it shouldn’t be necessary, and since the results are inconsistent between platforms it’s hard/annoying to catch them during development. Also it’s a false positive, so it’s mainly just noise during CI.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
kddejongcommented, Apr 19, 2021

Possible references that we need to investigate. We need to start by knowing if it ends up using the Cparser or not and then what version of that library it may be using. https://github.com/yaml/libyaml/pull/28 and https://github.com/yaml/pyyaml/pull/45

Read more comments on GitHub >

github_iconTop Results From Across the Web

parse colon separated value pairs - Unix StackExchange
I've written a script that converts nmcli --mode multiline dev wifi into json but I'm finding it's inconsistent (breaks when results have a ......
Read more >
What corner cases must we consider when parsing $PATH on ...
In the normal case, this just entails splitting getenv("PATH") by colons and checking each directory one by one, but I want to be...
Read more >
Why does dpkg give me this parsing error? - Ask Ubuntu
I have no idea what it means, but it always insists that `Replaces>' be followed by a colon. installation · updates · libreoffice...
Read more >
Colon in RSS feed causing parsing problems
That colon indicates a namespace in the XML data. The feedparser documentation suggests it should be able to deal with this, especially 'dc' ......
Read more >
Neutron API - problem parsing semi-colon in X-Headers Red ...
Issue. Neutron API - problem parsing semi-colon in X-Headers Red Hat OpenStack Platform 14. In the current state when a GET request is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found