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

production.yml needs to end with a Newline #17

Closed
ElliotPsyIT opened this issue Apr 29, 2014 · 1 comment
Closed

production.yml needs to end with a Newline #17

ElliotPsyIT opened this issue Apr 29, 2014 · 1 comment

Comments

@ElliotPsyIT
Copy link

After running grunt to build the production version, I bumped into a yml parsing error:

C:\Users\fielstem\Apps\PerlDancerSeed\bin>perl app.pl --environment production
Unable to parse the configuration file: 
C:\Users\fielstem\Apps\PerlDancerSeed\environments\production.yml:
 YAML Error: Stream does not end with newline character
   Code: YAML_PARSE_ERR_NO_FINAL_NEWLINE
   Line: 0
   Document: 0
 at C:/Dwimperl/perl/vendor/lib/YAML/Loader.pm line 38
 at C:/Dwimperl/perl/site/lib/Dancer/Config.pm line 205

Adding a newline to the end of the file is needed. After do so,

c:\Users\vhatvhfielse\Apps\PerlDancerSeed>git diff
diff --git a/environments/production.yml b/environments/production.yml
index d9dbb0c..9490460 100644
--- a/environments/production.yml
+++ b/environments/production.yml
@@ -59,4 +59,4 @@ plugins:
 #      pass: 'myapppassword'
 #      options:
 #        RaiseError: 1
-#        PrintError: 1
\ No newline at end of file
+#        PrintError: 1

Runs fine now. Again, being a newbie I don't yet know how to submit a pull request, so I'm simply noting the issue and its fix here.
Loving this project!

@jacqueslareau
Copy link
Owner

Opening issues is perfect! Thanks!

On Tue, Apr 29, 2014 at 3:25 PM, elliotfielstein
notifications@github.comwrote:

After running grunt to build the production version, I bumped into a yml
parsing error:

C:\Users\fielstem\Apps\PerlDancerSeed\bin>perl app.pl --environment production
Unable to parse the configuration file:
C:\Users\fielstem\Apps\PerlDancerSeed\environments\production.yml:
YAML Error: Stream does not end with newline character
Code: YAML_PARSE_ERR_NO_FINAL_NEWLINE
Line: 0
Document: 0
at C:/Dwimperl/perl/vendor/lib/YAML/Loader.pm line 38
at C:/Dwimperl/perl/site/lib/Dancer/Config.pm line 205

Adding a newline to the end of the file is needed. After do so,

c:\Users\vhatvhfielse\Apps\PerlDancerSeed>git diff
diff --git a/environments/production.yml b/environments/production.yml
index d9dbb0c..9490460 100644
--- a/environments/production.yml
+++ b/environments/production.yml
@@ -59,4 +59,4 @@ plugins:

pass: 'myapppassword'

options:

RaiseError: 1

-# PrintError: 1
\ No newline at end of file
+# PrintError: 1

Runs fine now. Again, being a newbie I don't yet know how to submit a pull
request, so I'm simply noting the issue and its fix here.
Loving this project!


Reply to this email directly or view it on GitHubhttps://github.com//issues/17
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants