Skip to content

Better error reporting of parsing errors #15023

Closed
@mcalmus

Description

@mcalmus

🐞 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?

Activity

added this to the Backlog milestone on Jul 9, 2019
modified the milestones: Backlog, 8.1.x on Jul 9, 2019
added 2 commits that reference this issue on Jul 9, 2019
a57e986
32feed1
angular-automatic-lock-bot

angular-automatic-lock-bot commented on Sep 9, 2019

@angular-automatic-lock-bot

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.

locked and limited conversation to collaborators on Sep 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

      Participants

      @alan-agius4@mcalmus

      Issue actions

        Better error reporting of parsing errors · Issue #15023 · angular/angular-cli