Open jsfiles opened 9 years ago
That seems strange, as there haven’t been any source code updates since October of last year. Have you tried npm cache clean
and a reinstall? Also, what are your node an npm versions?
I went through those steps before opening the issue. After the uninstall and cache clean, the install gives the following, which can be addressed by downgrading npm, installing, then upgrading npm -- captured below -- Still creates 0 byte files
[13:05:56]> npm install codepainter
npm ERR! Darwin 14.3.0
npm ERR! argv "node" "/usr/local/bin/npm" "install" "codepainter"
npm ERR! node v0.12.4
npm ERR! npm v2.11.1
npm ERR! path /Users/jim.files/node_modules/codepainter/node_modules/editorconfig/bin\editorconfig
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! enoent ENOENT, chmod '/Users/jim.files/node_modules/codepainter/node_modules/editorconfig/bin\editorconfig'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! Please include the following file with any support request:
npm ERR! /Users/jim.files/npm-debug.log
jim.files@MSANIT1003696 [13:07:20]> npm install -g npm@2.7.5
/usr/local/bin/npm -> /usr/local/lib/node_modules/npm/bin/npm-cli.js
npm@2.7.5 /usr/local/lib/node_modules/npm
jim.files@MSANIT1003696 [13:07:50]> npm install -g codepainter
/usr/local/bin/codepaint -> /usr/local/lib/node_modules/codepainter/bin/codepaint
/usr/local/bin/codepainter -> /usr/local/lib/node_modules/codepainter/bin/codepaint
codepainter@0.4.4 /usr/local/lib/node_modules/codepainter
├── memorystream@0.2.0
├── async@0.9.2
├── gitlike-cli@0.1.0
├── node.extend@1.1.5 (is@3.0.1)
├── mkdirp@0.5.1 (minimist@0.0.8)
├── editorconfig@0.11.4 (sigmund@1.0.1, lru-cache@2.0.4, commander@1.1.1)
├── glob@4.5.3 (inherits@2.0.1, once@1.3.2, inflight@1.0.4, minimatch@2.0.8)
├── esprima@1.2.5
└── cli-color@0.3.3 (d@0.1.1, timers-ext@0.1.0, memoizee@0.3.8, es5-ext@0.10.7)
jim.files@MSANIT1003696 [13:08:01]> npm install npm@latest
npm@2.11.1 node_modules/npm
On Sun, Jun 7, 2015 at 1:04 PM, Jed Mao notifications@github.com wrote:
That seems strange, as there haven’t been any source code updates since October of last year. Have you tried npm cache clean and a reinstall? Also, what are your node an npm versions?
— Reply to this email directly or view it on GitHub https://github.com/jedmao/codepainter/issues/42#issuecomment-109794256.
I'm having the same issue as @jsfiles. It only happens on my Macbook, not on an ubuntu VM. Since @jsfiles's error message include mention of Darwin, I think he is using MacOS X as well, so it might be specific to that OS.
codepainter (+dependencies) is installed locally as the only module
└─┬ codepainter@0.4.4
├── async@0.9.2
├─┬ cli-color@0.3.3
│ ├── d@0.1.1
│ ├─┬ es5-ext@0.10.7
│ │ ├── es6-iterator@0.1.3
│ │ └── es6-symbol@2.0.1
│ ├─┬ memoizee@0.3.8
│ │ ├─┬ es6-weak-map@0.1.4
│ │ │ ├── es6-iterator@0.1.3
│ │ │ └── es6-symbol@2.0.1
│ │ ├── event-emitter@0.3.3
│ │ ├── lru-queue@0.1.0
│ │ └── next-tick@0.2.2
│ └─┬ timers-ext@0.1.0
│ └── next-tick@0.2.2
├─┬ editorconfig@0.11.4
│ ├─┬ commander@1.1.1
│ │ └── keypress@0.1.0
│ ├── lru-cache@2.0.4
│ └── sigmund@1.0.1
├── esprima@1.2.5
├── gitlike-cli@0.1.0
├─┬ glob@4.5.3
│ ├─┬ inflight@1.0.4
│ │ └── wrappy@1.0.1
│ ├── inherits@2.0.1
│ ├─┬ minimatch@2.0.8
│ │ └─┬ brace-expansion@1.1.0
│ │ ├── balanced-match@0.2.0
│ │ └── concat-map@0.0.1
│ └─┬ once@1.3.2
│ └── wrappy@1.0.1
├── memorystream@0.2.0
├─┬ mkdirp@0.5.1
│ └── minimist@0.0.8
└─┬ node.extend@1.1.5
└── is@3.0.1
and npm (+dependencies) is the only one installed globally
└─┬ npm@2.7.5
├── abbrev@1.0.5
├── ansi@0.3.0
├── ansicolors@0.3.2
├── ansistyles@0.1.3
├── archy@1.0.0
├── async-some@1.0.1
├── block-stream@0.0.7
├── char-spinner@1.0.1
├── child-process-close@0.1.1
├── chmodr@0.1.0
├── chownr@0.0.1
├── cmd-shim@2.0.1
├─┬ columnify@1.4.1
│ ├─┬ strip-ansi@2.0.1
│ │ └── ansi-regex@1.1.0
│ └─┬ wcwidth@1.0.0
│ └─┬ defaults@1.0.0
│ └── clone@0.1.19
├─┬ config-chain@1.1.8
│ └── proto-list@1.2.3
├─┬ dezalgo@1.0.1
│ └── asap@1.0.0
├── editor@0.1.0
├── fs-vacuum@1.2.5
├── fs-write-stream-atomic@1.0.2
├── fstream@1.0.4
├─┬ fstream-npm@1.0.2
│ └── fstream-ignore@1.0.2
├── github-url-from-git@1.4.0
├── github-url-from-username-repo@1.0.2
├── glob@5.0.3
├── graceful-fs@3.0.6
├── hosted-git-info@1.5.3
├── inflight@1.0.4
├── inherits@2.0.1
├── ini@1.3.3
├─┬ init-package-json@1.3.0
│ ├── glob@4.5.3
│ └── promzard@0.2.2
├── lockfile@1.0.0
├── lru-cache@2.5.0
├─┬ minimatch@2.0.4
│ └─┬ brace-expansion@1.1.0
│ ├── balanced-match@0.2.0
│ └── concat-map@0.0.1
├─┬ mkdirp@0.5.0
│ └── minimist@0.0.8
├─┬ node-gyp@1.0.3
│ ├─┬ glob@4.5.3
│ │ └─┬ minimatch@2.0.4
│ │ └─┬ brace-expansion@1.1.0
│ │ ├── balanced-match@0.2.0
│ │ └── concat-map@0.0.1
│ ├─┬ minimatch@1.0.0
│ │ └── sigmund@1.0.0
│ └── tar@1.0.3
├── nopt@3.0.1
├── normalize-git-url@1.0.0
├── normalize-package-data@1.0.3
├── npm-cache-filename@1.0.1
├── npm-install-checks@1.0.5
├── npm-package-arg@3.1.1
├─┬ npm-registry-client@6.1.2
│ └─┬ concat-stream@1.4.7
│ ├─┬ readable-stream@1.1.13
│ │ ├── core-util-is@1.0.1
│ │ ├── isarray@0.0.1
│ │ └── string_decoder@0.10.31
│ └── typedarray@0.0.6
├── npm-user-validate@0.1.1
├─┬ npmlog@1.2.0
│ ├─┬ are-we-there-yet@1.0.3
│ │ └── delegates@0.1.0
│ └─┬ gauge@1.2.0
│ ├── has-unicode@1.0.0
│ ├── lodash._basetostring@3.0.0
│ ├─┬ lodash._createpad@3.0.1
│ │ └── lodash.repeat@3.0.0
│ ├── lodash.pad@3.0.0
│ ├── lodash.padleft@3.0.0
│ └── lodash.padright@3.0.0
├── once@1.3.1
├── opener@1.4.1
├── osenv@0.1.0
├── path-is-inside@1.0.1
├─┬ read@1.0.5
│ └── mute-stream@0.0.4
├─┬ read-installed@3.1.5
│ ├── debuglog@1.0.1
│ ├── readdir-scoped-modules@1.0.1
│ └── util-extend@1.0.1
├─┬ read-package-json@1.3.2
│ ├── glob@4.5.3
│ └─┬ json-parse-helpfulerror@1.0.3
│ └── jju@1.2.0
├─┬ readable-stream@1.0.33
│ ├── core-util-is@1.0.1
│ ├── isarray@0.0.1
│ └── string_decoder@0.10.31
├── realize-package-specifier@2.2.0
├─┬ request@2.54.0
│ ├── aws-sign2@0.5.0
│ ├── bl@0.9.4
│ ├── caseless@0.9.0
│ ├─┬ combined-stream@0.0.7
│ │ └── delayed-stream@0.0.5
│ ├── forever-agent@0.6.0
│ ├─┬ form-data@0.2.0
│ │ └── async@0.9.0
│ ├─┬ har-validator@1.4.0
│ │ ├── async@0.9.0
│ │ ├── bluebird@2.9.15
│ │ ├─┬ chalk@1.0.0
│ │ │ ├── ansi-styles@2.0.1
│ │ │ ├── escape-string-regexp@1.0.3
│ │ │ ├─┬ has-ansi@1.0.3
│ │ │ │ ├── ansi-regex@1.1.1
│ │ │ │ └── get-stdin@4.0.1
│ │ │ ├─┬ strip-ansi@2.0.1
│ │ │ │ └── ansi-regex@1.1.1
│ │ │ └── supports-color@1.3.1
│ │ ├─┬ commander@2.7.1
│ │ │ └── graceful-readlink@1.0.1
│ │ ├─┬ debug@2.1.3
│ │ │ └── ms@0.7.0
│ │ ├─┬ is-my-json-valid@2.10.0
│ │ │ ├── generate-function@2.0.0
│ │ │ ├─┬ generate-object-property@1.1.0
│ │ │ │ └── is-property@1.0.2
│ │ │ ├── jsonpointer@1.1.0
│ │ │ └── xtend@4.0.0
│ │ └── require-directory@2.1.0
│ ├─┬ hawk@2.3.1
│ │ ├── boom@2.6.1
│ │ ├── cryptiles@2.0.4
│ │ ├── hoek@2.12.0
│ │ └── sntp@1.0.9
│ ├─┬ http-signature@0.10.1
│ │ ├── asn1@0.1.11
│ │ ├── assert-plus@0.1.5
│ │ └── ctype@0.5.3
│ ├── isstream@0.1.2
│ ├── json-stringify-safe@5.0.0
│ ├─┬ mime-types@2.0.10
│ │ └── mime-db@1.8.0
│ ├── node-uuid@1.4.3
│ ├── oauth-sign@0.6.0
│ ├── qs@2.4.1
│ ├── stringstream@0.0.4
│ ├─┬ tough-cookie@0.12.1
│ │ └── punycode@1.3.2
│ └── tunnel-agent@0.4.0
├── retry@0.6.1
├─┬ rimraf@2.3.2
│ └── glob@4.5.3
├── semver@4.3.2
├─┬ sha@1.3.0
│ └─┬ readable-stream@1.1.13
│ ├── core-util-is@1.0.1
│ ├── isarray@0.0.1
│ └── string_decoder@0.10.31
├── slide@1.1.6
├── sorted-object@1.0.0
├── tar@2.0.0
├── text-table@0.2.0
├── uid-number@0.0.6
├── umask@1.1.0
├── which@1.0.9
├── wrappy@1.0.1
└── write-file-atomic@1.1.0
Yes, Macbook with OSX.
jim.files@MSANIT1003696 [21:13:32]> uname -a Darwin MSANIT1003696 14.3.0 Darwin Kernel Version 14.3.0: Mon Mar 23 11:59:05 PDT 2015; root:xnu-2782.20.48~5/RELEASE_X86_64 x86_64
I'm having this problem on Windows as well.
👍
Recently, I've found that instead of formatting files, it has been replacing them with 0 byte files. Yuck! This seemed to be tied to one of the supporting modules getting updated, then it went away later (another module update?) and then came back last week.
I'd be happy to learn this is just a configuration issue somewhere. What thoughts do you have?
Sample of codepaint emptying a file
Sample code to format
My ~/.editorconfig
installed stuff