appveyor.yml parse error

jay's Avatar

jay

27 Feb, 2014 03:12 AM

my project is open source https://github.com/jbtule/ComposableExtensions

I successfully configure the build with the site gui, but I would like to switch to the appveyor.yml config.

However I'm getting a yml parse error with my attempt at translating the config to yml, it's not giving me a good clue to what's parsing wrong.

At the moment i turned on the ignore appveyor.yml which is a nice feature.

  1. Support Staff 1 Posted by Feodor Fitsner on 27 Feb, 2014 03:44 AM

    Feodor Fitsner's Avatar

    Hi Jay,

    Most probably its indentation problem - YAML is very sensitive to indentations which must be spaces. Turn on displaying of white spaces in text editor to make sure you don't use tabs.

    I will make sure parsing errors are correctly shown on UI.

  2. 2 Posted by jay on 27 Feb, 2014 02:17 PM

    jay's Avatar

    Yeah I actually wrote it in the github editor, and made sure it was set to 2 spaces, and have verified that it indeed used 2 spaces.

    I am trying to set a path with a # sign. but I surrounded it with "".

  3. Support Staff 3 Posted by Feodor Fitsner on 27 Feb, 2014 02:25 PM

    Feodor Fitsner's Avatar

    So it works now?

    - Feodor

  4. 4 Posted by jay on 27 Feb, 2014 02:28 PM

    jay's Avatar

    That's a no, still don't know what that parse issue is.

  5. Support Staff 5 Posted by Feodor Fitsner on 27 Feb, 2014 02:30 PM

    Feodor Fitsner's Avatar

    Is it an OSS project? Can you share your appveyor.yml to take a look?

    - Feodor

  6. 6 Posted by jay on 27 Feb, 2014 02:34 PM

    jay's Avatar
  7. 7 Posted by jay on 27 Feb, 2014 03:01 PM

    jay's Avatar

    I figured it out. it works!

    I had the epiphany to use an online yml parser.

    http://yaml-online-parser.appspot.com/

    discovered that I need a space between EnableNuGetPackageRestore: and true

    environment:
    EnableNuGetPackageRestore: true

  8. Support Staff 8 Posted by Feodor Fitsner on 27 Feb, 2014 03:03 PM

    Feodor Fitsner's Avatar

    Great! But I will make sure correct error is shown anyway.

    - Feodor

  9. Support Staff 9 Posted by Feodor Fitsner on 28 Feb, 2014 06:10 AM

    Feodor Fitsner's Avatar

    It's been fixed and now you can see detailed YAML parser message with line/column.

  10. jay closed this discussion on 17 Mar, 2014 09:52 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

 

03 Oct, 2024 07:07 PM
01 Oct, 2024 05:06 PM
01 Oct, 2024 04:27 PM
26 Sep, 2024 03:49 PM
26 Sep, 2024 09:02 AM
25 Sep, 2024 07:07 PM