Comments (17)
I think the issue is on pygments pygments/pygments.rb#110
from hologram.
Ah good to know. We have another open issue regarding windows compatibility. It's on my plate to look at it.
from hologram.
Can I ask why are you using pygments? I mean where it's used... Can this be an optional dependency?
from hologram.
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.
Ok. Perhaps also simply changing the version you depend on like pygments/pygments.rb#110
from hologram.
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.
from hologram.
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.
+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.
Please help, I have the same issue on windows with ruby 1.9.3...
from hologram.
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.
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.
I tested this out tonight and with the 1.2 release we now work on windows!
from hologram.
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.
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.
Windows user reporting in. 1.3.0 seems to have helped a lot. The new output looks like:
I do not know what the warning means but hopefully it's helpful to you.
from hologram.
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.
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)
- Auto-generated nested navigation HOT 3
- `get_binding` error HOT 8
- Markdown not being parsed HOT 2
- How to doc colors HOT 3
- Link external files into HTML-example area? HOT 1
- Multiple styleguides for different sections? HOT 2
- Create new categories with .md files HOT 2
- How would you support multiple languages?
- Ignore subdirectories or specific file
- Can we access markdown variables inside a template? HOT 1
- `ignore_paths` causing error
- SCSS variables and mixins seem to be ignored HOT 1
- Annoying <p class="styleguide"> generated listing CSS styles commented HOT 1
- Seperate JSON file output
- Possible issue with latest rouge update HOT 1
- Primary menu is not useful in its current state
- Provide a means to set order to nav and section items
- haml rendering without code block output
- Still maintained? HOT 4
- Loop in the Markdown HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hologram.