-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SyntaxError: missing ) after argument list #250
Comments
The issue was fixed by moving NVM loader script from By doing that, this package works out of the box. |
@juangiordana I'm getting the same, I thought I'd followed your suggestion but it's not helped. Could you share the contents of your I moved the following from my
|
@IPWright83 try starting the editor from a terminal: # Just to check, you should see the the path to Node in there.
# i.e. ~/.nvm/versions/node/v17.6.0/bin
echo $PATH
cd path-to-project
subl . If you get your environment correct in your terminal sublime should be able to pick the variables right. Though it was working OK for a few days, suddenly it was like if the environment variables got wiped out. I'm not sure why that is, if its misconfiguration on my side, the fact that I could have opened a new editor window from a terminal, or who knows. |
@juangiordana after reading you're issue a bit more I went down setting the I found moving the nvm bits from |
Yeah, I find quite annoying having to set
Yeah, there is something messing with the environment variables, but I couldn't figure out what it was. |
👍🏻 Thanks for the help @juangiordana |
This issue has been automatically locked due to inactivity. Please open a new issue for related bugs. |
Explain the Issue and Expected Behavior
Plugin fails because of the provided/suggested path points to a bash wrapper script instead to
bin-prettier.js
.Setting
prettier_cli_path
tobin-prettier.js
fixes the issue.While investigating the issue I've found the SublimeLinter-eslint plugin uses a wrapper script as well and does not have this issue.
Prettier version
To show the currently installed prettier version, run the following command:
JsPrettier Plug-in Version
The JsPrettier Sublime Text Plug-in version is located in the
package.json
file.Platform Details
Provide your Sublime Text version and Platform details.
Example
The contents of your
User/JsPrettier.sublime-settings
fileThe text was updated successfully, but these errors were encountered: