Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

yaml file does not colorise #63382

Closed
nyvlunx opened this issue Nov 18, 2018 · 9 comments
Closed

yaml file does not colorise #63382

nyvlunx opened this issue Nov 18, 2018 · 9 comments
Assignees

Comments

@nyvlunx
Copy link

nyvlunx commented Nov 18, 2018

When I open a specific yaml file (the longest that I have) in visual studio code, the color syntax for this file bug completely, this is really annoying because its harder to read in it (comment, line, ...)

image

  • VSCode Version: Windows 10 x64, v17134.407
  • OS Version: 1.29.1

Steps to Reproduce:

  1. Open the file in VS code
    Yaml file link : https://pastebin.com/3QiMYN7J

Does this issue occur when all extensions are disabled?: Yes

@vscodebot
Copy link

vscodebot bot commented Nov 18, 2018

(Experimental duplicate detection)
Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:

@nyvlunx
Copy link
Author

nyvlunx commented Nov 18, 2018

Its not the same issue

@roblourens
Copy link
Member

Can you share that file?

@nyvlunx
Copy link
Author

nyvlunx commented Nov 18, 2018

Tesseract_Guilde.zip

@dpoetzschke
Copy link

I ran into the same error when configuring .circleci/config.yaml

The problem seems to be a missing closing quote, which in my case in not true but falsely recognized as such.
When checking Noiknez file i get the same issue that can also be fixed by adding a false double-quote.

A smaller version of my file is this, which can be fixed by adding a second double-quote in line 27


jobs:
  dockerize:
    working_directory: ~/project

    docker:
      - image: google/cloud-sdk

    steps:
        - checkout

        - run:
        name: 'Build and push docker image'
        command: |
          docker run \
                --rm \
                -w /app \
                -v $(pwd):/app \
                -v ${HOME}:/config \
                -v /var/run/docker.sock:/var/run/docker.sock \
                google/cloud-sdk \
                sh -c "\
                  command1 && \
                  command2 && \
                  command3
                "
        - run:
        name: 'test'
        command: |
          ....
          ....```

@nyvlunx
Copy link
Author

nyvlunx commented Nov 24, 2018

I have more information, but I don't know if it is related

image

image

image

@aeschli aeschli assigned alexr00 and unassigned aeschli Jan 4, 2019
@alexr00
Copy link
Member

alexr00 commented Jan 7, 2019

It looks like the grammar doesn't correctly account for double quotes. From @dpoetzschke example above:
image
It seems like that shouldn't be recognized as unquoted text.

@alexr00
Copy link
Member

alexr00 commented Jan 7, 2019

This issue was moved to textmate/yaml.tmbundle#30

@alexr00 alexr00 closed this as completed Jan 7, 2019
@alexr00
Copy link
Member

alexr00 commented Jan 7, 2019

I moved the issue to the owners of that grammar. Thank you for filing the issue!

@vscodebot vscodebot bot locked and limited conversation to collaborators Feb 21, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants