Giter Site home page Giter Site logo

Comments (17)

gagarine avatar gagarine commented on September 10, 2024

I think the issue is on pygments pygments/pygments.rb#110

from hologram.

jdcantrell avatar jdcantrell commented on September 10, 2024

Ah good to know. We have another open issue regarding windows compatibility. It's on my plate to look at it.

from hologram.

gagarine avatar gagarine commented on September 10, 2024

Can I ask why are you using pygments? I mean where it's used... Can this be an optional dependency?

from hologram.

jdcantrell avatar jdcantrell commented on September 10, 2024

It's used for syntax highlighting whenever you use a code block in markdown. I'm planning on starting work on a 2.0 release that would remove pygments completely as a dependency (and then those who choose to use it can use a custom renderer with it). That doesn't help in the short term though. I'll look into seeing if/how we can make it be an optional dependency for the 1.1 release.

from hologram.

gagarine avatar gagarine commented on September 10, 2024

Ok. Perhaps also simply changing the version you depend on like pygments/pygments.rb#110

from hologram.

OlsonAndrewD avatar OlsonAndrewD commented on September 10, 2024

I got this same error with Ruby 1.9.3 on Windows, with no Powershell. I was able to make it go away by changing this:

```html_example
<div class='alert'>Hello</div>
```

to this:

```html_example <div class='alert'>Hello</div> ```

Unfortunately, the "html_example" appears in the generated doc.

doc-including-html_example

from hologram.

OlsonAndrewD avatar OlsonAndrewD commented on September 10, 2024

Actually my error was a little different.

C:/Ruby/Ruby193/lib/ruby/gems/1.9.1/gems/posix-spawn-0.3.8/lib/posix/spawn.rb:162: warning: cannot close fd before spawn
'which' is not recognized as an internal or external command,
operable program or batch file.
?[32m(?°?°)??[0m?[31m? ??? ?[0m?[31m Build not complete.?[0m
 Could not load config file, try 'hologram init' to get started

from hologram.

vinayraghu avatar vinayraghu commented on September 10, 2024

+1 Please help fix on windows
Is there any known workaround? @OlsonAndrewD 's solution doesn't work for me.

My error is as follows

c:/Ruby193/lib/ruby/gems/1.9.1/gems/posix-spawn-0.3.8/lib/posix/spawn.rb:162: wa
rning: cannot close fd before spawn
'which' is not recognized as an internal or external command,
operable program or batch file.
←[32m(╯°□°)╯←[0m←[31m︵ ┻━┻ ←[0m←[31m Build not complete.←[0m
 Could not load config file, try 'hologram init' to get started

from hologram.

thedaviddias avatar thedaviddias commented on September 10, 2024

Please help, I have the same issue on windows with ruby 1.9.3...

from hologram.

aflanagan avatar aflanagan commented on September 10, 2024

As @gagarine mentioned, this looks like a problem with the pygments gem (which is a dependency of hologram). It's also affecting jekyll on windows.

We are thinking about moving away from pygments for the 2.0 release, but that is probably a ways off still.

from hologram.

gagarine avatar gagarine commented on September 10, 2024

I think the good way would be to move from pygments.rb to https://github.com/jneen/rouge . This should not be that hard.

from hologram.

jdcantrell avatar jdcantrell commented on September 10, 2024

I tested this out tonight and with the 1.2 release we now work on windows!

from hologram.

GaryJones avatar GaryJones commented on September 10, 2024

I've got this working for Mac, but another user using the same repo setup on Windows is still having trouble, even with 1.2.0.
Getting the same build failed errors as above, and notice about doing hologram init. Also, the documentation_assets, referencing cortana, are not being copied into the styleguide directory, so although it's partly working despite the warnings, the style guide doesn't look like it should.

documentation_assets: assets/bower/cortana doesn't seem to work for Windows (fine on Mac) - case matches the path in the repo.
custom_markdown: assets/bower/cortana/CortanaMarkdownRenderer.rb is copied fine.

Maybe documentation_assets are not having the slashes reversed or something daft to satisfy Windows?

from hologram.

jdcantrell avatar jdcantrell commented on September 10, 2024

We just released version 1.3.0 to rubygems.org, could you test with the new version and report back? I know there were a few updates that should make Windows users much happier.

from hologram.

robincornett avatar robincornett commented on September 10, 2024

Windows user reporting in. 1.3.0 seems to have helped a lot. The new output looks like:
image
I do not know what the warning means but hopefully it's helpful to you.

from hologram.

jdcantrell avatar jdcantrell commented on September 10, 2024

The warning is from hologram parsing your source code, you have two documentation blocks with the same name ('d-small'). That said if your output is what you're looking for it, it's not a big worry.

Thanks for the update though, I'm glad to hear it's working better.

from hologram.

GaryJones avatar GaryJones commented on September 10, 2024

Just confirming (Robin and I are working on the same project), and yes, there are indeed two documentation blocks with the name d-small; useful warning!

from hologram.

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.