Git Product home page Git Product logo

Comments (8)

mmistakes avatar mmistakes commented on August 26, 2024

That's really weird, though not surprising since Windows is notorious for causing a ruckus. I don't think you have tinker at all with your posts or the theme, it's totally a gem conflict/issue on Windows. Which gem that is can be a problem to track down because the error handling isn't always specific.

The theme doesn't require any additional gems except the ones Jekyll specifies. What's probably going on is one of the versions required in Gemfile.lock is probably different or didn't install properly on your machine, so Jekyll barfs when you try to execute it.

Did you do a bundle update and observe any errors? For giggles you could try and remove both Gemfile and Gemfile.lock and see if Jekyll runs.

The only other thing I could think of that I see occasional problems with is the Octopress gem. You can strip that out of everything since it's completely optional. I only included it because people kept writing Rake and Thor tasks as generators for creating new posts and pages. Octopress seemed way more robust than that so here we are.

from jekyll-theme-skinny-bones.

mmistakes avatar mmistakes commented on August 26, 2024

Also it should be fairly easy to pare the theme down to "vanilla" Jekyll. In the Gemfile I included dependencies for Bourbon and Neat. Neither of these gems are needed since I'm already bundling the Sass partials them come with directly in the theme. The only reason you'd need the gems installed is if you wanted to update the .scss files that come with them manually.

Octopress I already mentioned so that could be removed safely. And then there is Jekyll sitemap. I noticed an error for that in the first part of your issue. That plugin is written by the Jekyll folks so there shouldn't be any extraneous dependencies, but you never know. As a test you could remove that as well, it only builds a sitemap.xml which could be done in other ways if the gem causes you problems.

So to summarize. I'd remove Gemfile and Gemfile.lock, make sure Jekyll is updated to the latest version, and run it the prescribed way: jekyll build and jekyll serve.

I wouldn't worry too much about older gems being installed. That's the point of using Bundler and having a Gemfile. It manages what versions you should be using with your project. If you remove the Gemfile and execute the normal way the latest versions will be used by default.

I've definitely seen the errors you're having before so it's not something uncommon. Getting gems to play nice on Windows can be a pain sometimes. If you still have problems I'd bump around the closed issued on the Jekyll repo or even my other theme's repos. I could have sworn I've provided these solutions before 😉

from jekyll-theme-skinny-bones.

javlc avatar javlc commented on August 26, 2024

Thank you for the prompt responses!
I was into reviewing the guidelines provided in this thread and also in other issues already posted. Indeed, some of the problems I came across are addressed in other issues that are closed.

So far I can tell that I did not have any problems with the octopress gem. In fact it worked swiftly when generating new posts.

[edit] I also ran a bundle update command on my installation, and problems not gone yet.

Removing the gemfile and gemfile.lock archives do not prevent the second issue from happening (this time is shown when using jekyll serve command.instead of bundle).
I am yet to review the jekyll-sitemap issue.
Since I am fairly new on this, I am into reviewing the Gemfile.lock details so as to learn and maybe pinpoint the issue. My aim is to not take too much out from your setup, after all, it worked in your machine. :)
I'll give any update on what I find. Thanks again!

from jekyll-theme-skinny-bones.

mmistakes avatar mmistakes commented on August 26, 2024

Sounds good. I've gotten it to work on a Windows 7 setup, so it's possible. I previously had to do a lot of sorting out of gems and such and really can't remember what I changed. But I do know Pygments.rb (that does syntax highlighting) is a real big pain point with Windows and often gives cryptic errors that appear to be unrelated to it.

Do you have posts with code in them or are you using the demo posts? Sounds to me Markdown is having problems with some of the content. I only ask because that "welcome to Jekyll" post in the error you posted above has code in it. There's a good chance Markdown or the syntax highlighter is having problems.

Some other things to try:

  1. Remove all the posts and see if the site builds.
  2. Triple check your _config.yml to make sure you don't have invalid YAML. Spaces/tabs matter and can blow things up.

from jekyll-theme-skinny-bones.

javlc avatar javlc commented on August 26, 2024

Some updates:

  • I changed highlighter: rouge (I saw in this tutorial that I needed to install python for the pygments to work, so just changed it from the get go, although I noticed that pygments.rb in the project doesn't seem a python file)
    • I checked my .yml and .md posts with an online yml linter, and all green.
    • I attempted to serve the site without any posts files (.md) and would not serve.

I am targeting the issue around the specific gem dependencies I installed on my portfolio project.
I will be testing -among others- editing the gemfile to not require the potentially problematic gems (using some bundler parameters i.e. gem 'rspec', :require => false )
Still sifting through documentation.

from jekyll-theme-skinny-bones.

javlc avatar javlc commented on August 26, 2024

More updates.

  • Changed back the highlighter to pygments.rb (there was an error with rouge, my huntch is that it was not installed for the specific project)

Finally got the server to serve the web page successfully!

I noticed a pattern in the errors that were displaying: they referred almost exclusively to test files included with the gems that were of type .md, html, even scss.
After I removed the containing folders of the files, site was served successfully.

The removed gem test directories inside my vendor\bundle dir include:

  • jekyll-2.4.0\lib\site_template
  • octopress-3.0.0.rc.15\test
  • octopress-3.0.0.rc.34\local (updated gem through bundle update command)
  • octopress-3.0.0.rc.34\site (updated gem through bundle update command)
  • octopress-docs-0.0.9\docs
  • octopress-escape-code-1.0.2\test
  • octopress-escape-code-2.0.6\test (updated gem through bundle update command)

I'm yet to measure the impact (if any) of these removals on the project. If I encounter any issues will let you know.
I am yet to pinpoint how to strip down the project-specific gem installation, but that's a meal for another time.

I'm closing this issue.
Thanks!

from jekyll-theme-skinny-bones.

mmistakes avatar mmistakes commented on August 26, 2024

That's a strange one. I'd follow up with the gem creators to let them know
of the issues. Just in case their bugs on their end.

On Mon, Mar 2, 2015 at 10:55 AM, Javier Lopez C. [email protected]
wrote:

Closed #24 #24.


Reply to this email directly or view it on GitHub
#24 (comment)
.

from jekyll-theme-skinny-bones.

javlc avatar javlc commented on August 26, 2024

It is weird indeed.
Will be logging the issue within the jekyll repo.
[update] Logged issue here.

from jekyll-theme-skinny-bones.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.