TL;DR
the "SublimeJsPrettier" setup described in your README, doesn't work for me
problem
i tried to use "prettier-standard" with SublimeText3 package "JsPrettier"...
after struggling around with some unrecognized rule definitions (#72),
i managed to successfully run "prettier-standard" via CLI
(sideinfo: "prettier-eslint" was running fine in "JsPrettier")
but when i change JsPrettier's config prettier_cli_path to "prettier-standard"...
i always get weird errors... (permission denied)
tried several path combinations... here are the results:
"prettier_cli_path": "node_modules/prettier-standard/src/index.js" - "No parser and no filepath given"
tried to use "prettier-standard" globally... wihtout success
detailed errors
Permission denied
```
error: JsPrettier - [Errno 13] Permission denied
Traceback (most recent call last):
File "/opt/sublime_text/sublime_plugin.py", line 1072, in run_
return self.run(edit)
File "/home/doubleu23/.config/sublime-text-3/Packages/JsPrettier/JsPrettier.py", line 283, in run
provide_cursor=True)
File "/home/doubleu23/.config/sublime-text-3/Packages/JsPrettier/JsPrettier.py", line 378, in format_code
shell=is_windows())
File "./python3.3/subprocess.py", line 819, in __init__
File "./python3.3/subprocess.py", line 1448, in _execute_child
PermissionError: [Errno 13] Permission denied
```
"No parser and no filepath given"
```
Traceback (most recent call last):
File "/opt/sublime_text/sublime_plugin.py", line 1072, in run_
return self.run(edit)
File "/home/doubleu23/.config/sublime-text-3/Packages/JsPrettier/JsPrettier.py", line 283, in run
provide_cursor=True)
File "/home/doubleu23/.config/sublime-text-3/Packages/JsPrettier/JsPrettier.py", line 406, in format_code
return stdout.decode('utf-8'), int(new_cursor)
ValueError: invalid literal for int() with base 10: "No parser and no filepath given, using 'babylon' the parser now but this will throw an error in the future. Please specify a parser or a filepath so one can be inferred."
```
"Exec format Error"
```
error: JsPrettier - [Errno 8] Exec format error
Traceback (most recent call last):
File "/opt/sublime_text/sublime_plugin.py", line 1072, in run_
return self.run(edit)
File "/home/doubleu23/.config/sublime-text-3/Packages/JsPrettier/JsPrettier.py", line 283, in run
provide_cursor=True)
File "/home/doubleu23/.config/sublime-text-3/Packages/JsPrettier/JsPrettier.py", line 378, in format_code
shell=is_windows())
File "./python3.3/subprocess.py", line 819, in __init__
File "./python3.3/subprocess.py", line 1448, in _execute_child
OSError: [Errno 8] Exec format error
```
chmod info
i double checked the files and they are (testwise) on chmod 777!
as the Error points out "prettier-standard" isn't executable (python - _execute_child)
i also set 777 on the node_module/prettier-standard...
TL;DR the "SublimeJsPrettier" setup described in your README, doesn't work for me
problem
i tried to use "prettier-standard" with SublimeText3 package "JsPrettier"...
after struggling around with some unrecognized rule definitions (#72), i managed to successfully run "prettier-standard" via CLI
(sideinfo: "prettier-eslint" was running fine in "JsPrettier")
but when i change JsPrettier's config
prettier_cli_path
to "prettier-standard"...i always get weird errors... (permission denied)
tried several path combinations... here are the results:
prettier-eslint-cli
"prettier_cli_path": "node_modules/prettier-eslint-cli/dist/index.js"
- RUNNING FINE `npx prettier-eslint-cli "./path/glob" - running (but triggers npm ? install/update )"prettier_cli_path": "node_modules/prettier-eslint-cli"
- permission deniedprettier-eslint-cli "./path/glob"
- running fineprettier-eslint
"prettier_cli_path": "node_modules/prettier-eslint/dist/index.js"
- Exec format error`npx prettier-eslint "./path/glob" - running fine
"prettier_cli_path": "node_modules/prettier-eslint"
- permission deniedprettier-standard
"prettier_cli_path": "node_modules/prettier-standard"
- permission denied`npx prettier-standard "./path/glob" - running fine
"prettier_cli_path": "node_modules/prettier-standard/src/index.js"
- "No parser and no filepath given"tried to use "prettier-standard" globally... wihtout success
detailed errors
Permission denied
``` error: JsPrettier - [Errno 13] Permission denied Traceback (most recent call last): File "/opt/sublime_text/sublime_plugin.py", line 1072, in run_ return self.run(edit) File "/home/doubleu23/.config/sublime-text-3/Packages/JsPrettier/JsPrettier.py", line 283, in run provide_cursor=True) File "/home/doubleu23/.config/sublime-text-3/Packages/JsPrettier/JsPrettier.py", line 378, in format_code shell=is_windows()) File "./python3.3/subprocess.py", line 819, in __init__ File "./python3.3/subprocess.py", line 1448, in _execute_child PermissionError: [Errno 13] Permission denied ```"No parser and no filepath given"
``` Traceback (most recent call last): File "/opt/sublime_text/sublime_plugin.py", line 1072, in run_ return self.run(edit) File "/home/doubleu23/.config/sublime-text-3/Packages/JsPrettier/JsPrettier.py", line 283, in run provide_cursor=True) File "/home/doubleu23/.config/sublime-text-3/Packages/JsPrettier/JsPrettier.py", line 406, in format_code return stdout.decode('utf-8'), int(new_cursor) ValueError: invalid literal for int() with base 10: "No parser and no filepath given, using 'babylon' the parser now but this will throw an error in the future. Please specify a parser or a filepath so one can be inferred." ```"Exec format Error"
``` error: JsPrettier - [Errno 8] Exec format error Traceback (most recent call last): File "/opt/sublime_text/sublime_plugin.py", line 1072, in run_ return self.run(edit) File "/home/doubleu23/.config/sublime-text-3/Packages/JsPrettier/JsPrettier.py", line 283, in run provide_cursor=True) File "/home/doubleu23/.config/sublime-text-3/Packages/JsPrettier/JsPrettier.py", line 378, in format_code shell=is_windows()) File "./python3.3/subprocess.py", line 819, in __init__ File "./python3.3/subprocess.py", line 1448, in _execute_child OSError: [Errno 8] Exec format error ```chmod info
i double checked the files and they are (testwise) on
chmod 777
!as the Error points out "prettier-standard" isn't executable (python - _execute_child)
i also set 777 on the node_module/prettier-standard...
any idea(s)?