-
Notifications
You must be signed in to change notification settings - Fork 2
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
dprint
not available in Package Control
#4
Comments
Sorry, I never actually ended up getting this on package control. There were some outstanding issues: |
@dsherret Thanks for quick reply and link. Seems currently solution is installing via Steps:
It works for me and should work for everyone. Have a nice day! Regards, |
@dalisoft did the package end up actually working? Upon installing no commands seem to become available for me. |
Anyone manage to get this working? |
When cloning to the
I'm not familiar with the sublime plugin api, so this doesn't really mean anything to me. Thanks |
So I've done some investigating and it looks like there are a few problems. json_text = subprocess.check_output(["dprint", "editor-info"], cwd=dir_path, shell=True).decode("utf8") If I change If I change that to The issue is again with the array arguments in p = Popen(["dprint", "stdin-fmt", "--file-name", os.path.basename(file_path)],
stdin=PIPE, stdout=PIPE, stderr=PIPE, cwd=dir_path, shell=True) If I merge them again I dprint complains with |
One other thing I forgot. I had to move the line dprint_exec = DprintExec() to the bottom of the file. |
Update: Removed json_text = subprocess.check_output(["dprint", "editor-info"], cwd=dir_path).decode("utf8") Also looked at dprint src to find out why p = Popen(["dprint", "fmt", "stdin", os.path.basename(file_path)],
stdin=PIPE, stdout=PIPE, stderr=PIPE, cwd=dir_path) I've reached the point where the problem is with: print("#----------", file_text)
stdout, stderr = p.communicate(bytes(file_text, "utf8"))
print("#----------", stdout)
|
So. Turns out I misread the code. Should have been |
Thanks for the help @rope-hmg! I opened wbond/package_control_channel#8509 |
Hi @dsherret
I tried install package via Package control and it did not found, so i looked at here and seems error 404, can you look please if you can find time?
The text was updated successfully, but these errors were encountered: