Skip to content

Better error reporting of parsing errors #15023

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

Closed
mcalmus opened this issue Jul 9, 2019 · 1 comment · Fixed by #15026
Closed

Better error reporting of parsing errors #15023

mcalmus opened this issue Jul 9, 2019 · 1 comment · Fixed by #15026

Comments

@mcalmus
Copy link

mcalmus commented Jul 9, 2019

🐞 Bug report

Command (mark with an x)

- [ ] new
- [ ] build
- [ ] serve
- [ ] test
- [ ] e2e
- [x] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc

Is this a regression?

unknown, but I doubt it

Description

A clear and concise description of the problem...

This is related to issue #10757
In my case the cli gives the error "An unhandled exception occurred: Workspace needs to be loaded before it is used." because there was something invalid in angular.json. Like issue #11204, the cli should indicate the parsing error as the cause of the issue and tell the user where and in which file the problem occurred.

🔬 Minimal Reproduction

🔥 Exception or Error




An unhandled exception occurred: Workspace needs to be loaded before it is used.

🌍 Your Environment




Angular CLI: 8.1.0
Node: 10.15.3
OS: win32 x64
Angular: 8.1.0
... animations, cli, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router

Anything else relevant?

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants