GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Schematics : Copy then delete can cause "This should never happen" error. · Issue #16527 · angular/angular-cli Open Labels area: @angular-devkit/schematicsfreq1: lowOnly reported by a handful of users who observe it rarelyOnly reported by a handful of users who observe it rarelyseverity3: brokentype: bug/fix Milestone Description🐞 Bug reportDescriptionMoving files as part of a schematic can cause an error to be thrown: Message:
Error: This should never happen. Path: "/projects/bar".It seems to happen if those files were created by a previous rule and the move is done by copy and deletion. (As an aside here, it seems that delete operations are hoisted somehow...whenever they occur in a schematic, the logger output shows them to always happen first, this is not what I'd expect) I'm aware that there is a 🔬 Minimal Reproductionexport function move(schema: Schema): Rule { return (host: Tree, _context: SchematicContext): Tree => { const dir = host.getDir(schema.source); dir.visit(file => { const newPath = file.replace(schema.source, schema.destination); const buffer = host.read(file); if (buffer === null) { return; } host.create(newPath, buffer); }); host.delete(schema.source); return host; }; } See also: https://github.com/jdpearce/move-schematic NB - this schematic will probably work if run against a pre-existing workspace, but when the tree is set up by another schematic, as in the spec file, that's when the error is thrown. 🌍 Your EnvironmentAngular CLI: 8.3.21 Package Version@angular-devkit/architect 0.803.21 (cli-only) Reacted by Noorsil Karedia, Steven Nance, brain4711, Philip Fulcher, levimiller-qhrtech, 大胃王 and Sunda Amami Activity
MetadataMetadataAssigneesLabelsarea: @angular-devkit/schematicsfreq1: lowOnly reported by a handful of users who observe it rarelyOnly reported by a handful of users who observe it rarelyseverity3: brokentype: bug/fix TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |