Skip to content
This repository has been archived by the owner on Jun 25, 2020. It is now read-only.

Error: document not properly dedented #52

Open
4poc opened this issue Jul 3, 2013 · 2 comments
Open

Error: document not properly dedented #52

4poc opened this issue Jul 3, 2013 · 2 comments

Comments

@4poc
Copy link

4poc commented Jul 3, 2013

I tried to parse this document. Its a valid yaml file, I now use the libyaml bindings for this but it would be cool if this js parser would work as well.

> node -e "console.log(require('yaml').eval(require('fs').readFileSync('./config.yaml.sample').toString()))"

/home/apoc/projects/js/anpaste/node_modules/yaml/lib/yaml.js:179
  throw new Error(msg + ', ' + context(this.peek()[1].input))
        ^
Error: document not properly dedented, near "\nserver:\n  domain: localh"
    at Parser.expect (/home/apoc/projects/js/anpaste/node_modules/yaml/lib/yaml.js:179:9)
    at Parser.parseDoc (/home/apoc/projects/js/anpaste/node_modules/yaml/lib/yaml.js:266:8)
    at Parser.parse (/home/apoc/projects/js/anpaste/node_modules/yaml/lib/yaml.js:232:19)
    at Object.exports.eval (/home/apoc/projects/js/anpaste/node_modules/yaml/lib/yaml.js:384:46)
    at [eval]:1:29
    at Object.<anonymous> ([eval]-wrapper:6:22)
    at Module._compile (module.js:456:26)
    at evalScript (node.js:532:25)
    at startup (node.js:80:7)
    at node.js:901:3
@sandaemc
Copy link

This module is forgotten. :-(

@climaa
Copy link

climaa commented Jun 22, 2016

The same think.

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

3 participants