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

Better error warnings? #61

Open
moT01 opened this issue May 14, 2020 · 2 comments
Open

Better error warnings? #61

moT01 opened this issue May 14, 2020 · 2 comments
Assignees

Comments

@moT01
Copy link
Contributor

moT01 commented May 14, 2020

I am realizing that my tutorials may be hundreds of lessons long. This makes for a very large markdown file. If I, or anyone, mistypes something - like forgetting a space when I want to omit the "short description", I get a generic error message...

TypeError: Cannot read property '0' of null
    at removeHash (/Users/tom/Documents/coderoad-tutorial-parser/tutorial-parser.js:6:58)
    at createLevel (/Users/tom/Documents/coderoad-tutorial-parser/tutorial-parser.js:98:19)
    at parseTutorial (/Users/tom/Documents/coderoad-tutorial-parser/tutorial-parser.js:160:30)
    at Object.<anonymous> (/Users/tom/Documents/coderoad-tutorial-parser/tutorial-parser.js:179:20)
    at Module._compile (internal/modules/cjs/loader.js:1158:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1178:10)
    at Module.load (internal/modules/cjs/loader.js:1002:32)
    at Function.Module._load (internal/modules/cjs/loader.js:901:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:74:12)
    at internal/main/run_main_module.js:18:47

I'm not having any problems, and I can handle finding an error like this. Just wanted to point it out. If the markdown file is huge, this may be challenging for some.

@ShMcK
Copy link
Member

ShMcK commented May 15, 2020

@moT01 is then when using the builder found here: https://github.com/coderoad/builder. We'll be testing a branch called "feature/error-messages" and hope to merge it in soon.

@moT01
Copy link
Contributor Author

moT01 commented May 15, 2020

No, I am using the script you gave me a while ago. I haven't tried the builder yet, is the structure of the markdown basically the same?

@ShMcK ShMcK transferred this issue from coderoad/coderoad-vscode Jul 24, 2020
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

3 participants