-
Notifications
You must be signed in to change notification settings - Fork 52
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
Rendering not functional on Mac #39
Comments
Hi @asbisen, Probably you aren't missing anything but it's just a bug: I have no mac to test it. Do you know a bit of python? could you help me to debug it? |
@mgaitan sure would be happy to assist. I do know a bit of Python but am new to Sublime. Let me know how you'd want to proceed. |
Thanks. The render feature is done calling external tools via
I guess the problem is in the
you can see the output in the python console built-in try to figure out which is the exact command list subprocess is trying to btw, are you using sublime 2 or 3? thanks in advance https://github.com/dbousamra/sublime-rst-completion/blob/master/render.py On Mon, Aug 26, 2013 at 12:00 PM, asbisen [email protected] wrote:
mgaitan.github.io |
Okay so I did some tinkering and here are the findings:
$ /opt/local/bin/pandoc /var/folders/x7/d09lcfrs63ncsqmy77hxxddc0000gn/T/tmpr5cWyV.rst -o /var/folders/x7/d09lcfrs63ncsqmy77hxxddc0000gn/T/tmpu0bLsa.pdf Type X to quit or to proceed, Enter file name: l.4 \usepackage |
And the pandoc issue was resolved by installing the following packages
Question I have is that how do I make these changes with Sublime3 as it zips up the packages. Would it be as simple as renaming the package with a zip extension; uncompressing the zip archive; make the change and then zip it up again? |
Ok @asbisen, good to know you can move forward with this. Do you think we should keep that tool path configurable? or just set the absolute path /opt/local ... in osx? about st3, really I'm not sure, but I guess it also works if it uncompressed in the packages folder. |
@mgaitan I don't think that would a good approach. If you make it an absolute path Additionally even with macports there could be multiple different variation of the executable rst2html-2.7.py (the 2.7 could be replaced by 3.0, 3.2 etc). _Either you cover for all of the scenarios and perform some path lookups or just have a section in Readme where you ask the users to create a symbolic link of rst2html.py to their version on the binary and place it in a location which is in the path (suggest /usr/bin for example)._ |
I was thinking in a For example https://github.com/jclement/SublimePandoc/blob/master/Pandoc.sublime-settings |
I am still having this problem on ST3 on Mac OSX 10.7 with docutils 0.11. I am trying to render RST to HTML using the rst2html command. I have verified that It is working on ST2, but not on ST3. Any ideas on this? |
I got this working by hacking the following custom plugin in: https://gist.github.com/6784840 It seems there should be an easier way to modify the ST's python environment - modifying the Python.submlime-build file did nothing for me. |
@jimklo How do you install your "hack"? Have you tried it with ST3? |
@sloria. Create a new plugin "Tools" > "New Plugin..." And that will create a boilerplate plugin. Replace the contents with the Gist, then save in a new directory inside the User directory. Directory should be called Pathmaster. Restart ST and /usr/local/bin and /usr/local/sbin should be on the Python Path. Not tested on ST3 but it's such a trivial plugin, it should just work. |
Thanks for the prompt reply. The plugin does successfully change the path, but still doesn't solve the |
Please, if somebody find a solution, could send a PR ? I have no access to a mac |
@mgaitan The problem is pretty much about altering ST's environment to include the location of rst2html. If you take a look at the Gist I posted, all it is a new plugin that puts /usr/local/bin and /usr/local/sbin on the environment path. A similar solution would be needed for windows - say if had rst2html installed in C:\Programs\Python\bin, you would need to alter the os.environment to put C:\Programs\Python\bin onto ST's environment path. If I get some time.. I might be able to figure out this project's architecture and insert the initialization sequence... the optimal method would be to add this via the config file as opposed through the hard-coded solution I did. |
With the PR @jimklo sent should be possible to config the custom path were the executables are. I'll open a new ticket to document this option. |
I am unable to render rst files on Mac. I have rst2pdf and pandoc both installed and functional using MacPorts.
When I execute rendering option (rst2pdf) I get two pop-ups the first says
Am I missing something?
The text was updated successfully, but these errors were encountered: