Closed pemsbr closed 2 years ago
I'm experiencing the same issue. Environment:
Node : 14.18.1
OS : darwin x64
npm : 8.1.3
nx : 13.3.8
@nrwl/angular : undefined
@nrwl/cli : 13.3.8
@nrwl/cypress : undefined
@nrwl/devkit : 13.4.2
@nrwl/eslint-plugin-nx : undefined
@nrwl/express : undefined
@nrwl/jest : 13.4.2
@nrwl/linter : 13.4.2
@nrwl/nest : undefined
@nrwl/next : undefined
@nrwl/node : undefined
@nrwl/nx-cloud : 13.0.1
@nrwl/react : undefined
@nrwl/react-native : undefined
@nrwl/schematics : undefined
@nrwl/tao : 13.3.8
@nrwl/web : undefined
@nrwl/workspace : 13.3.8
@nrwl/storybook : undefined
@nrwl/gatsby : undefined
typescript : 4.5.4
rxjs : 6.6.7
---------------------------------------
Community plugins:
+1
> NX WARNING Running affected:* commands with --all can result in very slow builds.
--all is not meant to be used for any sizable project or to be used in CI.
Learn more about checking only what is affected: https://nx.dev/latest/angular/cli/affected#affected.
[error] ENAMETOOLONG: name too long, stat '/Users/chrispearce/Projects/seed/**/*{.js,._js,.bones,.cjs,.es,.es6,.frag,.gs,.jake,.jsb,.jscad,.jsfl,.jsm,.jss,.mjs,.njs,.pac,.sjs,.ssjs,.xsjs,.xsjslib,.wxs,.js.flow,.jsx,.ts,.mts,.cts,.tsx,.json,.avsc,.geojson,.gltf,.har,.ice,.JSON-tmLanguage,.mcmeta,.tfstate,.tfstate.backup,.topojson,.webapp,.webmanifest,.yy,.yyp,.jsonc,.sublime-build,.sublime-commands,.sublime-completions,.sublime-keymap,.sublime-macro,.sublime-menu,.sublime-mousemap,.sublime-project,.sublime-settings,.sublime-theme,.sublime-workspace,.sublime_metrics,.sublime_session,.json5,.css,.wxss,.pcss,.postcss,.less,.scss,.handlebars,.hbs,.graphql,.gql,.graphqls,.md,.markdown,.mdown,.mdwn,.mkd,.mkdn,.mkdown,.ronn,.scd,.workbook,.mdx,.component.html,.html,.htm,.html.hl,.inc,.xht,.xhtml,.mjml,.vue,.yml,.mir,.reek,.rviz,.sublime-syntax,.syntax,.yaml,.yaml-tmlanguage,.yaml.sed,.yml.mysql,.js,._js,.bones,.cjs,.es,.es6,.frag,.gs,.jake,.jsb,.jscad,.jsfl,.jsm,.jss,.mjs,.njs,.pac,.sjs,.ssjs,.xsjs,.xsjslib,.wxs,.js.flow,.jsx,.ts,.mts,.cts,.tsx,.md,.markdown,.mdown,.mdwn,.mkd,.mkdn,.mkdown,.ronn,.scd,.workbook,.mdx}'
failed formatting
chrispearce@Chriss-MacBook-Pro seed % npx nx report
> NX Report complete - copy this into the issue template
Node : 14.18.1
OS : darwin arm64
npm : 8.1.3
nx : 13.3.8
@nrwl/angular : undefined
@nrwl/cli : 13.3.8
@nrwl/cypress : undefined
@nrwl/devkit : 13.4.2
@nrwl/eslint-plugin-nx : undefined
@nrwl/express : undefined
@nrwl/jest : 13.4.2
@nrwl/linter : 13.4.2
@nrwl/nest : undefined
@nrwl/next : undefined
@nrwl/node : undefined
@nrwl/nx-cloud : 13.0.1
@nrwl/react : undefined
@nrwl/react-native : undefined
@nrwl/schematics : undefined
@nrwl/tao : 13.3.8
@nrwl/web : undefined
@nrwl/workspace : 13.3.8
@nrwl/storybook : undefined
@nrwl/gatsby : undefined
typescript : 4.5.4
rxjs : 6.6.7
---------------------------------------
Community plugins:
Can workaround by always using --affected
.
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.
Current Behavior
nx format:write --all
fails withENAMETOOLONG: name too long
.prettier -write .
works as expected.Expected Behavior
Why are all the prettier supported languages being used in the glob pattern? Not only is it causing this problem but it's skipping some files such as
.babelrc
. Shouldn't invoking prettier with--write .
suffice?Failure Logs
Environment