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

task config parsing errors are not handled properly #6482

Closed
elaihau opened this issue Nov 2, 2019 · 0 comments · Fixed by #6515
Closed

task config parsing errors are not handled properly #6482

elaihau opened this issue Nov 2, 2019 · 0 comments · Fixed by #6515
Assignees
Labels
bug bugs found in the application tasks issues related to the task system

Comments

@elaihau
Copy link
Contributor

elaihau commented Nov 2, 2019

Description

In the current version of Theia, the invalid task configs from tasks.json, although not successfully parsed, are still added to the list of tasks.

Theia should handle those errors properly.

Reproduction Steps

Peek 2019-11-01 23-09

  • add an invalid task config to tasks.json - it could be as simple as an empty object { }
  • pull out the task list from the top menu bar "Terminal" -> "Run Task"

Expected: the invalid task should be hidden from the user
What happened: undefined: undefined shows up in the list of tasks

OS and Theia version:

Ubuntu 18.04. Example browser
Version 05f2e07

@elaihau elaihau added bug bugs found in the application tasks issues related to the task system labels Nov 2, 2019
@elaihau elaihau self-assigned this Nov 2, 2019
elaihau pushed a commit that referenced this issue Nov 4, 2019
- With this change, Theia updates the task schema on task definitions
are registered & unregistered. And users get content assist while they
enter task configs in the editor.
- first step of #6482

Signed-off-by: Liang Huang <[email protected]>
elaihau pushed a commit that referenced this issue Nov 8, 2019
- not display the invalid task configurations in the list of tasks.
- displays a warning message to inform users if Theia finds invalid task
configuration(s) in tasks.json.
- fixes #6482

Signed-off-by: Liang Huang <[email protected]>
elaihau pushed a commit that referenced this issue Nov 8, 2019
- not display the invalid task configurations in the list of tasks.
- displays a warning message to inform users if Theia finds invalid task
configuration(s) in tasks.json.
- fixes #6482

Signed-off-by: Liang Huang <[email protected]>
elaihau pushed a commit that referenced this issue Nov 8, 2019
- not display the invalid task configurations in the list of tasks.
- displays a warning message to inform users if Theia finds invalid task
configuration(s) in tasks.json.
- fixes #6482

Signed-off-by: Liang Huang <[email protected]>
elaihau pushed a commit that referenced this issue Nov 8, 2019
- not display the invalid task configurations in the list of tasks.
- displays a warning message to inform users if Theia finds invalid task
configuration(s) in tasks.json.
- fixes #6482

Signed-off-by: Liang Huang <[email protected]>
elaihau pushed a commit that referenced this issue Nov 8, 2019
- not display the invalid task configurations in the list of tasks.
- displays a warning message to inform users if Theia finds invalid task
configuration(s) in tasks.json.
- fixes #6482

Signed-off-by: Liang Huang <[email protected]>
elaihau pushed a commit that referenced this issue Nov 12, 2019
- not display the invalid task configurations in the list of tasks.
- displays a warning message to inform users if Theia finds invalid task
configuration(s) in tasks.json.
- fixes #6482

Signed-off-by: Liang Huang <[email protected]>
elaihau pushed a commit that referenced this issue Nov 12, 2019
- not display the invalid task configurations in the list of tasks.
- displays a warning message to inform users if Theia finds invalid task
configuration(s) in tasks.json.
- fixes #6482

Signed-off-by: Liang Huang <[email protected]>
elaihau pushed a commit that referenced this issue Nov 12, 2019
- not display the invalid task configurations in the list of tasks.
- displays a warning message to inform users if Theia finds invalid task
configuration(s) in tasks.json.
- fixes #6482

Signed-off-by: Liang Huang <[email protected]>
elaihau pushed a commit that referenced this issue Nov 12, 2019
- not display the invalid task configurations in the list of tasks.
- displays a warning message to inform users if Theia finds invalid task
configuration(s) in tasks.json.
- fixes #6482

Signed-off-by: Liang Huang <[email protected]>
elaihau pushed a commit that referenced this issue Nov 12, 2019
- not display the invalid task configurations in the list of tasks.
- displays a warning message to inform users if Theia finds invalid task
configuration(s) in tasks.json.
- fixes #6482

Signed-off-by: Liang Huang <[email protected]>
akosyakov pushed a commit to akosyakov/theia that referenced this issue Feb 24, 2020
- not display the invalid task configurations in the list of tasks.
- displays a warning message to inform users if Theia finds invalid task
configuration(s) in tasks.json.
- fixes eclipse-theia#6482

Signed-off-by: Liang Huang <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug bugs found in the application tasks issues related to the task system
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant