appveyor.yml parse error
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.
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
Support Staff 1 Posted by Feodor Fitsner on 27 Feb, 2014 03:44 AM
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 Posted by jay on 27 Feb, 2014 02:17 PM
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 "".
Support Staff 3 Posted by Feodor Fitsner on 27 Feb, 2014 02:25 PM
So it works now?
- Feodor
4 Posted by jay on 27 Feb, 2014 02:28 PM
That's a no, still don't know what that parse issue is.
Support Staff 5 Posted by Feodor Fitsner on 27 Feb, 2014 02:30 PM
Is it an OSS project? Can you share your appveyor.yml to take a look?
- Feodor
6 Posted by jay on 27 Feb, 2014 02:34 PM
yes it's open source.
https://github.com/jbtule/ComposableExtensions/blob/master/appveyor.yml
7 Posted by jay on 27 Feb, 2014 03:01 PM
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
Support Staff 8 Posted by Feodor Fitsner on 27 Feb, 2014 03:03 PM
Great! But I will make sure correct error is shown anyway.
- Feodor
Support Staff 9 Posted by Feodor Fitsner on 28 Feb, 2014 06:10 AM
It's been fixed and now you can see detailed YAML parser message with line/column.
jay closed this discussion on 17 Mar, 2014 09:52 PM.