23maverick23/sublime-jekyll

Doesn't seem to work on Linux (eOS) Sublime text 3

Closed this issue · 8 comments

Doesn't seem to work on Linux (eOS) Sublime text 3

Can you be a bit more specific? Any errors in the ST3 console? Does the package not load?

I don't run Linux (I'm on OSX) so I may need some community help to debug unless you can provide some details. Thanks!

I guess it doesnt work on sublime 3 then because I deleted the 3rd and installed the second and Jekyll package worked

@timbog80 I'm still trying to understand what you mean by "it doesn't work". Are you saying that the package doesn't load, or that specific commands in the command palette aren't triggering? I would love to help if you could give me some additional info.

I developed the latest version of the package on ST3, so maybe there is a conflict with another installed package or an issue with your version of ST3. Can you open the console and see if there are any errors, and if so copy/paste them here?

To open the Python console, press Ctrl + ` or select View | Show Console in the menu.

@23maverick23 I think its something to do with sublime text 3 because after deleting the 3rd and installing the 2nd the package worked. So its something on their end, sorry for the late response.

Ok - I'll close the issue for now, but if you run into the issue again, feel free to reopen.

I have some more info on this. I am running sublime text 3065. I see it when I choose package install it says it installs but the package is not there and there are no jekyll commands in the command pallette. If I download manually and place the folder in the .config/sublime-text-3/Packages folder I see all the commands. I have configured the posts_path and drafts_path in the user settings as well as in my project folder. Some of the commands work e.g. Jekyll:insert new date. However, it does not create a new post or a new draft and I can't open an existing draft. So there are possibly two issues. The one is the package installation problem. The other is that after manual install you can not create new drafts or posts or browse to existing drafts or posts. Adding the jekyll build in the project setttings also works. I don't see any error messages.

Ubuntu 14.04 64bit.

Let me know if you need more info or if you want me to open this issue or a new one.

ok more info, I opened the console and from the error messages I could figure what was wrong. The new post command now works sometimes, with all the messing about I had indeed had a problem with the paths. However it still sometimes can't manage to create the file and I get the following error:

File "/home/maia/.config/sublime-text-3/Packages/sublime-jekyll-master/jekyll.py", line 246, in run
for f in os.listdir(path):
FileNotFoundError: [Errno 2] No such file or directory: '_drafts'

"settings":
    {
        "Jekyll":
        {
            "posts_path": "./_posts",
            "drafts_path": "./_drafts",
        }
    }

Hmmm this is still intermittent it sometimes gives that error and sometimes it works. I'll see if I can figure out why. Maybe related to relative paths.

Ok you have to use a full path. If you use a relative path such as ./_drafts then it only starts working after you open the .sublime-project file in the editor and make it the active tab. 😖 I think it is a sublime text 3 bug and not your plugin bug.

@maiatoday Thanks for the extra info! Very helpful and glad to hear this isn't likely related/specific to this package, and likely a Package Control issue

re: the "posts_path" and "drafts_path" settings, you are correct that this package only supports absolute paths. I tried to call this out in the README instructions under After Installing....

You may want to review and follow some of the suggestions over at the Package Control repo. It seems there are a few other users with Ubuntu related install issues.

You could also enable debug mode in your ST3 Build 3065 and see if anything in the log output is helpful. You can read how to enable this here.