debug icon indicating copy to clipboard operation
debug copied to clipboard

Please fix the spell mistake in 2.4.0

Open hefangshi opened this issue 9 years ago • 69 comments

https://github.com/visionmedia/debug/blob/master/debug.js#L126

https://travis-ci.org/fex-team/node-ral/jobs/183832044

hefangshi avatar Dec 14 '16 06:12 hefangshi

see my pull request ;-) https://github.com/visionmedia/debug/pull/349

this is really a problem right now

hereandnow avatar Dec 14 '16 06:12 hereandnow

126: debug.color = selectColor(namespae); should be namespace

JustFly1984 avatar Dec 14 '16 07:12 JustFly1984

Yes, this is breaking many apps.

dashmug avatar Dec 14 '16 07:12 dashmug

How can this be released! This should have been caught by a very simple static analysis!

budde377 avatar Dec 14 '16 07:12 budde377

please use eslint before deploy)

JustFly1984 avatar Dec 14 '16 07:12 JustFly1984

Ha I just came here for the same reason. Was recording a dailydrip episode when suddenly my build, which worked moments prior, was failing during the recording :)

knewter avatar Dec 14 '16 07:12 knewter

Geez, the timing!!! Same issue.

adamgoose avatar Dec 14 '16 07:12 adamgoose

@JustFly1984 maybe you could put together a PR that adds it as a pre-commit hook

knewter avatar Dec 14 '16 07:12 knewter

Sending you a bill for $75 in lost earnings wasted troubleshooting 7 failed builds caused by this typo :P

Edit: This was a joke. Please see my clarification below.

chrisatomix avatar Dec 14 '16 07:12 chrisatomix

I've just google ERROR in namespae..... how could this be released...

thkdog avatar Dec 14 '16 07:12 thkdog

@chrisatomix maybe don't be an absolute jerk to someone who gave away his labor for free. Did you pay him for the passing builds?

knewter avatar Dec 14 '16 07:12 knewter

sorry I have my own things to do, and I don't know how to do PR yet, and currently have no time to learn that, altho you can just edit the module by yourself until it will be fixed by module owner

JustFly1984 avatar Dec 14 '16 07:12 JustFly1984

This is a problem because the NodeJS ecosystem allows automatic updates depending on what projects use in their dependencies.

It's much easier in Python since dependencies are usually frozen.

dashmug avatar Dec 14 '16 07:12 dashmug

It astonishes me that a library downloaded ~7 million times per ~month~ week has no test spec or even static analysis commit hook.

glebec avatar Dec 14 '16 07:12 glebec

@glebec send a PR - this wasn't malicious, but it sucks. Imagine, though, if people only talked to you about your project when it broke their build. yarn.lock would fix it, or pinning a version. Have some empathy for the maintainers.

knewter avatar Dec 14 '16 07:12 knewter

For everyone that ends up here, pasting this from the fine folks at ember-cli on their issue tracking this:

Mitigations

  • Use yarn with a yarn.lock would have prevented this issue from affecting your project.
  • Run npm install --save-dev -E [email protected] && rm -rf node_modules && npm install will force usage of a known working version in your app

knewter avatar Dec 14 '16 07:12 knewter

@knewter agreed on all counts — I'm not angry, just amazed.

glebec avatar Dec 14 '16 07:12 glebec

@glebec I just feel bad for him. I was suggesting that you direct the amazed energy at a quick PR to help avoid the problems in the future too :)

knewter avatar Dec 14 '16 07:12 knewter

I created a module that leverages other modules to help maintain a good development environment, including automatically running npm scripts from git hooks (using git-validate). It will create these under ./git/hooks/pre-commit as well as place .eslint in the root and test directories. A script using the depcheck module leverages a .depcheckrc file for confirmation to make sure the dependencies in package.json line up to your project.

npm i -D developer-tools

npm run depcheck
npm run validate
npm run lint

doublesharp avatar Dec 14 '16 07:12 doublesharp

This is ridiculous! Don't you have 100% coverage for such a widely used npm module???

catamphetamine avatar Dec 14 '16 07:12 catamphetamine