Dmitriy Plekhanov
Dmitriy Plekhanov
subscribed
I tried to install different versions of beautifiers, (tried changing editorconfig, but it seems it is not relevant) I'm using Mac OS X Yosemite, node version is v0.10.33, tried in...
Uh. How do i run this? I don't familiar with vimscript. It will take time to figure out this.
Ok. Run through call ErrorMsg() ``` node /Users/onemanstartup/Code/dotfiles/vim2/bundle/vim-jsbeautify/plugin/beautify.min.js --js_arguments "/var/folders/hm/ng5h j9t949s6ljmgzwng_7hh0000gp/T/vlj6gW0/0" "{\"indent_char\": \" \", \"path\": \"~/.nvim/bundle/vim-jsbeautify/plugin/lib/js/bin/j s-beautify.js\", \"max_line_length\": \"79\", \"indent_style\": \"space\", \"indent_size\": \"2\", \"wrap-line-length\": \"79\" , \"max_char\": \"79\"}" "/Users/onemanstartup/.nvim/bundle/vim-jsbeautify/plugin/lib/js/bin/js-beautify.js"' ```
It tells the same thing. I cat tmp file and it is containing content of the file. Also i ran `js-beautify /var/folders/hm/ng5hj9t949s6ljmgzwng_7hh0000gp/T/vlj6gW0/0.js` and it returned content.
Here the error ``` js fs.js:438 return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode); ^ TypeError: path must be a string at Object.fs.openSync (fs.js:438:18) at Object.fs.readFileSync (fs.js:289:15) at read (/Users/onemanstartup/Code/dotfiles/vim2/bundle/vim-jsbeautify/plugin/beautify.min.js:1:1462) at /Users/onemanstartup/Code/dotfiles/vim2/bundle/vim-jsbeautify/plugin/beautify.min.js:1:1581 at Object....
Here there error ``` /Users/onemanstartup/Code/dotfiles/vim2/bundle/vim-jsbeautify/plugin/beautify.min.js:1 s=require("fs");load=function(path){var context={},property;if(path.charAt(0)! ^ TypeError: Cannot call method 'charAt' of undefined at load (/Users/onemanstartup/Code/dotfiles/vim2/bundle/vim-jsbeautify/plugin/beautify.min.js:1:1194) at /Users/onemanstartup/Code/dotfiles/vim2/bundle/vim-jsbeautify/plugin/beautify.min.js:1:1644 at Object. (/Users/onemanstartup/Code/dotfiles/vim2/bundle/vim-jsbeautify/plugin/beautify.min.js:1:1982) at Object. (/Users/onemanstartup/Code/dotfiles/vim2/bundle/vim-jsbeautify/plugin/beautify.min.js:1:2011) at Module._compile (module.js:456:26) at...
It's the same `Must define at least one file`