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

Function runTaskInForkedProcess hides error from user #26594

Closed
1 of 4 tasks
maxtomczyk opened this issue Jun 18, 2024 · 1 comment · Fixed by #28078
Closed
1 of 4 tasks

Function runTaskInForkedProcess hides error from user #26594

maxtomczyk opened this issue Jun 18, 2024 · 1 comment · Fixed by #28078
Assignees
Labels

Comments

@maxtomczyk
Copy link

Current Behavior

The function runTaskInForkedProcess catches the error and returns { code: 1 } without printing further information, making it hard to debug certain issues.

} catch (e) {
return {
code: 1,
};
}

Expected Behavior

Additional information about errors should be printed.

GitHub Repo

https://github.com/JacobLey/issue-recreator/tree/nx-parallel-devcontainer

Steps to Reproduce

To reproduce this behavior function forkProcessLegacy or forkProcess must throw. Reproduction provided by @JacobLey here can be used to reproduce this behavior.

Nx Report

Node   : 20.13.1
OS     : linux-x64
pnpm   : 9.1.1

nx (global)        : 19.2.3
nx                 : 19.2.3
@nx/js             : 19.2.3
@nx/jest           : 19.2.3
@nx/linter         : 19.2.3
@nx/eslint         : 19.2.3
@nx/workspace      : 19.2.3
@nx/devkit         : 19.2.3
@nx/eslint-plugin  : 19.2.3
@nx/plugin         : 19.2.3
@nrwl/tao          : 19.2.3
@nx/vite           : 19.2.3
@nx/vue            : 19.2.3
@nx/web            : 19.2.3
typescript         : 5.4.5
---------------------------------------
Registered Plugins:
nx/plugins/package-json
@rpl/nx-vue
---------------------------------------
Local workspace plugins:
         @rpl/nx-nuxt
         @rpl/nx-vue

Failure Logs

No response

Package Manager Version

No response

Operating System

  • macOS
  • Linux
  • Windows
  • Other (Please specify)

Additional Information

No response

@FrozenPandaz FrozenPandaz added the scope: core core nx functionality label Jul 16, 2024
FrozenPandaz pushed a commit that referenced this issue Sep 27, 2024
<!-- Please make sure you have read the submission guidelines before
posting an PR -->
<!--
https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr
-->

<!-- Please make sure that your commit message follows our format -->
<!-- Example: `fix(nx): must begin with lowercase` -->

<!-- If this is a particularly complex change or feature addition, you
can request a dedicated Nx release for this pull request branch. Mention
someone from the Nx team or the `@nrwl/nx-pipelines-reviewers` and they
will confirm if the PR warrants its own release for testing purposes,
and generate it for you if appropriate. -->

## Current Behavior
<!-- This is the behavior we have today -->

## Expected Behavior
<!-- This is the behavior we should expect with the changes in this PR
-->

## Related Issue(s)
<!-- Please link the issue being fixed so it gets closed when this is
merged. -->

Fixes #26594

(cherry picked from commit cc428c7)
Copy link

This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants