Closed stephengeorgewest closed 2 years ago
Letโs continue tracking this in https://github.com/angular/angular-cli/issues/21282 as it shares the same root cause.
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.
๐ Bug report
Command (mark with an
x
)Is this a regression?
Probably not.
Description
The checkmark before "Compiled successfully." is different from the checkmark before "Browser application bundle generation complete." Text copy: โ Compiled successfully. โ Browser application bundle generation complete.
๐ฌ Minimal Reproduction
generate a new project run
ng serve
in powershell it is more noticeable after modifying a file and it rebuilds, then the checkmarks are right next to each other.๐ Your Environment
Anything else relevant? Yeah. This is a super minor thing. It does provide a sense of comradery when I see it pasted into issues (hello there fellow powershell user), yet I can't get past it. Much like having a stray \ pull a word to the next line that should fit. or kerning issues, or having the div off center by a few pixels, or
๐คI must not fear ๐คFear is the mind killer ๐ค ๐ฎโ๐จ kittens riding on dogs ๐ฎโ๐จ pygmy goats headbutting toddlers ๐ฎโ๐จ Namaste ๐
Ok, jokes aside (๐). I dug into it a bit.
Windows/Powershell specific. The "Browser..." checkmark comes from: https://github.com/angular/angular-cli/blob/32dbf659acb632fac1d76d99d8191ea9c5e6350b/packages/angular_devkit/build_angular/src/webpack/configs/common.ts#L74-L77 -> https://github.com/angular/angular-cli/blob/32dbf659acb632fac1d76d99d8191ea9c5e6350b/packages/angular_devkit/build_angular/src/utils/spinner.ts#L41 or https://github.com/angular/angular-cli/blob/1341ad6406fbd1c733dad40020d8b4bb52d73ff7/packages/angular/cli/utilities/spinner.ts#L32 -> https://github.com/sindresorhus/ora/blob/c5026b7b411765636ae08a8f4a15789617ba695e/index.js#L360 import ora from 'ora'; // spinner (checkmark) --import { colors } from './color'; -> ora: import chalk from 'chalk'; ... import logSymbols from 'log-symbols'; return this.stopAndPersist({symbol: logSymbols.success, text}); -> https://github.com/sindresorhus/log-symbols/blob/main/index.js -> https://github.com/sindresorhus/is-unicode-supported/blob/main/index.js -> โ
The "Compiled..." checkmark comes from: https://github.com/angular/angular-cli/blob/32dbf659acb632fac1d76d99d8191ea9c5e6350b/packages/angular_devkit/build_angular/src/builders/dev-server/index.ts#L328 -> https://github.com/angular/angular-cli/blob/32dbf659acb632fac1d76d99d8191ea9c5e6350b/packages/angular_devkit/build_angular/src/utils/color.ts -> https://github.com/doowb/ansi-colors/blob/master/symbols.js -> โ
It seems that the criteria for unicode support differs between LogSymbols and Colors. I see a few options to fix/avoid this issue.
ng serve
could just skip the one from Colors, and havebuilders/dev-server/index.ts
uselogger.info(`\n${colors.greenBright(logSymbols.success)} Compiled successfully.`);