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

Merge 'exec: internal error' with ShellJSInternalError #734

Closed
nfischer opened this issue Jun 14, 2017 · 5 comments
Closed

Merge 'exec: internal error' with ShellJSInternalError #734

nfischer opened this issue Jun 14, 2017 · 5 comments
Assignees
Labels
exec Issues specific to the shell.exec() API stability
Milestone

Comments

@nfischer
Copy link
Member

nfischer commented Jun 14, 2017

I can't actually remember why we have both ShellJSInternalError and exec: internal error, but they mean the same thing: there's a bug in ShellJS code somewhere. These should probably get merged together, so that we can actually keep the exception stack for bugs in exec. This would help immensely in debugging.

While it's true that exec() sometimes crashes unavoidably (like if we overrun the max buffer), it's definitely still helpful to have the stack trace, and it still makes sense to report it as an exception, instead of with shell.error() (that should be reserved for the external command's stderr).

@nfischer nfischer added the exec Issues specific to the shell.exec() API label Jun 14, 2017
@nfischer nfischer added this to the v0.8.0 milestone Jun 14, 2017
@nfischer nfischer self-assigned this Jun 14, 2017
@nfischer
Copy link
Member Author

@freitagbr can you investigate this?

@nfischer nfischer modified the milestones: v0.8.0, v0.9.0 Oct 20, 2017
@nfischer nfischer assigned freitagbr and unassigned nfischer Oct 20, 2017
@freitagbr
Copy link
Contributor

Yes, I will look into this.

@nfischer nfischer added the breaking Breaking change label Nov 10, 2017
@nfischer
Copy link
Member Author

@freitagbr is this something we can land for v0.8.0?

@freitagbr
Copy link
Contributor

Yeah, I can put something together in the next few days.

@nfischer
Copy link
Member Author

I think we'll have to bump this back to v0.9.0, didn't quite sort out the PR in time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
exec Issues specific to the shell.exec() API stability
Projects
None yet
Development

No branches or pull requests

2 participants