-
Notifications
You must be signed in to change notification settings - Fork 15
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
Format command doesn't work on MacOS in v0.4.6 #63
Comments
Hi! |
I'm thinking that it might be a good idea to add a configuration to allow to expand the current PATH detected by ecode. BTW this worked for me. |
Hi, Thanks for the quick reply. However, we might be talking about different issues, bc prettier IS in the path in ecode's terminal, and also shows up green in the health check. But the format doc command still does nothing on macos. |
Then, I guess prettier must be complaining about something but the formatter does not print the errors, it just won't do anything. Can you please try to run prettier from the terminal in ecode to format your file manually and see the output? Thanks |
Just tried that, and it formats the file correctly. Meaning that the file does not have any syntax errors that would prevent prettier from working. It is strange, since it works on my Linux machine, and the format command seems correct. |
Did you tried using the shortcut or right click -> format doc or with the command palette? I'm trying to understand what could be happening. It works perfectly fine for me, even using prettier. You could also please run the application with the -ldebug argument, try to format, and send me the logs that are located at: Thanks |
Ok, after reading through your previous comments, it seems like you were right. I had initially moved from defining the PATH from .zprofile to .zshrc to try to get this to work. Here is what I've found so far:
I will try that work-around you linked to earlier. |
I was able to get around this by running It will do for now, but I believe this takes effect for all users. |
Thanks for taking the time to investigate the issue. It's really annoying certainly, but I'm not sure how to provide a better user experience. I'm still thinking... The biggest problem for the application is that it cannot know if PATH is "wrong", maybe I could search if there's a PATH definition over the shell configuration files ( |
…ATHs to the current environment. This should improve binary finding. Solves issue SpartanJ/ecode#63. Renamed MACOSX references to MACOS / macOS.
Despite the configured formatter (prettier, in this case) being in the users PATH in the ecode terminal, the format command doesn't work on MacOS (Intel, Ventura 13.0.1).
It is, however, working fine on Linux (Fedora 37).
The text was updated successfully, but these errors were encountered: