You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running a target with an input or output glob pattern throws an error: error parsing glob 'a}{b': unclosed alternate group; missing '}' (maybe escape '{' with '[{]'?)
in the Nx daemon.log when the pattern:
ends with a group
uses multiple groups
has a path separator
The simplest pattern to reproduce this is {projectRoot}/{a}{b}
When the pattern is used as an input:
C:\...\unclosed-alternate-group\node_modules\nx\src\hasher\native-task-hasher-impl.js:33
const hashes = this.hasher.hashPlans(plans, env);
^
Error: error parsing glob 'a}{b': unclosed alternate group; missing '}' (maybe escape '{' with '[{]'?)
at NativeTaskHasherImpl.hashTasks (C:\...\unclosed-alternate-group\node_modules\nx\src\hasher\native-task-hasher-impl.js:33:36)
at InProcessTaskHasher.hashTasks (C:\...\unclosed-alternate-group\node_modules\nx\src\hasher\task-hasher.js:41:46)
at handleHashTasks (C:\...\unclosed-alternate-group\node_modules\nx\src\daemon\server\handle-hash-tasks.js:30:56)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async handleResult (C:\...\unclosed-alternate-group\node_modules\nx\src\daemon\server\server.js:186:16)
at async handleMessage (C:\...\unclosed-alternate-group\node_modules\nx\src\daemon\server\server.js:112:9)
at async C:\...\unclosed-alternate-group\node_modules\nx\src\daemon\server\server.js:74:9 {
code: 'GenericFailure'
}
When the pattern is used as an output:
[REQUEST]: Responding to the client with an error. recordOutputsHash failed Critical error when recording metadata about outputs: 'error parsing glob 'a}{b': unclosed alternate group; missing '}' (maybe escape '{' with '[{]'?)'.
Error: Critical error when recording metadata about outputs: 'error parsing glob 'a}{b': unclosed alternate group; missing '}' (maybe escape '{' with '[{]'?)'.
at handleRecordOutputsHash (C:\...\unclosed-alternate-group\node_modules\nx\src\daemon\server\handle-outputs-tracking.js:17:20)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async handleResult (C:\...\unclosed-alternate-group\node_modules\nx\src\daemon\server\server.js:186:16)
at async handleMessage (C:\...\unclosed-alternate-group\node_modules\nx\src\daemon\server\server.js:118:9)
at async C:\...\unclosed-alternate-group\node_modules\nx\src\daemon\server\server.js:74:9
Operating System
macOS
Linux
Windows
Other (Please specify)
The text was updated successfully, but these errors were encountered:
Current Behavior
Running a target with an input or output glob pattern throws an error:
error parsing glob 'a}{b': unclosed alternate group; missing '}' (maybe escape '{' with '[{]'?)
in the Nx
daemon.log
when the pattern:The simplest pattern to reproduce this is
{projectRoot}/{a}{b}
Expected Behavior
No error to be thrown. The glob pattern is valid.
GitHub Repo
https://github.com/tlaurie-cl/nx-unclosed-alternate-group
Steps to Reproduce
npx nx reset && npx nx run uag:fail
daemon.log
Note that while the pattern is
{projectRoot}/{a}{b}
, the error claims the group is unclosed.npx nx reset && npx nx run uag:pass-1
,pass-2
, andpass-3
Note the variants
{projectRoot}/{a}{b}c
,{projectRoot}/{a}
, and{projectRoot}{a}{b}
all run without error.Nx Report
Failure Logs
Operating System
The text was updated successfully, but these errors were encountered: