Compile Error Using the Stylesheet Factory [SOLVED]

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Compile Error Using the Stylesheet Factory [SOLVED]

TheMagician
This post was updated on .
I want to compile the .css files that come bundled with the Stylesheet Factory. However, I run into a compilation error.

I've followed the steps to install the Stylesheet Factory (see manual, chapter 72).

I used:

gem install compass --version 0.12.2
gem install zurb-foundation --version 4.3.2

By the way, during the installation of Compass I got the following warning message:

"Ruby Sass has reached end-of-life and should no longer be used."

However, installation completed without errors.

When I now navigate to the root directory of the Stylesheet Factory and type:

compass compile

I get the following error message:

D:/Programs/Ruby/lib/ruby/gems/2.6.0/gems/compass-0.12.2/lib/compass/sass_extensions/functions/urls.rb:5:in `has?': undefined method `has?' for Sass::Util:Module (NoMethodError)
Did you mean?  hash

Any ideas what could cause this error?

Kind regards.
Reply | Threaded
Open this post in threaded view
|

Re: Compile Error Using the Stylesheet Factory

mojavelinux
Administrator
Please use bundle install instead of the gem command.


> By the way, during the installation of Compass I got the following warning message:

I'm aware of that. This project will continue to use Ruby Sass since it serves its purpose (to produce the default stylesheet) and I don't have time right now to deal with upgrading it.

Best,

-Dan

On Mon, Oct 7, 2019 at 4:15 PM TheMagician [via Asciidoctor :: Discussion] <[hidden email]> wrote:
I want to compile the .css files that come bundled with the Stylesheet Factory. However, I run into a compilation error.

I've followed the steps to install the Stylesheet Factory (see manual, chapter 72).

I used:

gem install compass --version 0.12.2
gem install zurb-foundation --version 4.3.2

By the way, during the installation of Compass I got the following warning message:

"Ruby Sass has reached end-of-life and should no longer be used."

However, installation completed without errors.

When I now navigate to the root directory of the Stylesheet Factory and type:

compass compile

I get the following error message:

D:/Programs/Ruby/lib/ruby/gems/2.6.0/gems/compass-0.12.2/lib/compass/sass_extensions/functions/urls.rb:5:in `has?': undefined method `has?' for Sass::Util:Module (NoMethodError)
Did you mean?  hash

Any ideas what could cause this error?

Kind regards.


If you reply to this email, your message will be added to the discussion below:
https://discuss.asciidoctor.org/Compile-Error-Using-the-Stylesheet-Factory-tp7185.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML


--
Dan Allen | @mojavelinux | https://twitter.com/mojavelinux
Reply | Threaded
Open this post in threaded view
|

Re: Compile Error Using the Stylesheet Factory

TheMagician
Thank you very much for your quick reply and your hard work on Asciidoctor!

Using Bundler solved the problem.

Perhaps point 72.1.1. ("Install the Gems") of the manual could be updated to make it clearer that using Bundler is the only option to set up the libraries needed to compile the Stylesheet Factory. Right now it sounds like the two options (Bundler and Gems) are equivalent.

I would suggest the following changes (in bold):

In order to build the stylesheets, you must download the Asciidoctor stylesheet factory repository and install the Compass and Foundation gems.

1) Download or clone the Asciidoctor stylesheet factory repository.

It does not matter where you save the project on your system.

2) Make sure you have Ruby and RubyGems and Bundler installed

3) Navigate to the Asciidoctor stylesheet factory directory on your system.

4) Run Bundler to install the Compass and Foundation gems.

$ bundle install

Then leave out the info box about the install process via gems.
Reply | Threaded
Open this post in threaded view
|

Re: Compile Error Using the Stylesheet Factory

mojavelinux
Administrator
Glad to hear it worked!

The stylesheet factory documentation is slated to be removed from the user manual. That's because it's no longer a supported project and only continues to exist to build the default stylesheet. We will be creating a new project for creating stylesheets in the future that is based on a simpler stack.


Best,

-Dan

On Tue, Oct 8, 2019 at 4:08 AM TheMagician [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Thank you very much for your quick reply and your hard work on Asciidoctor!

Using Bundler solved the problem.

Perhaps point 72.1.1. ("Install the Gems") of the manual could be updated to make it clearer that using Bundler is the only option to set up the libraries needed to compile the Stylesheet Factory. Right now it sounds like the two options (Bundler and Gems) are equivalent.

I would suggest the following changes (in bold):

In order to build the stylesheets, you must download the Asciidoctor stylesheet factory repository and install the Compass and Foundation gems.

1) Download or clone the Asciidoctor stylesheet factory repository.

It does not matter where you save the project on your system.

2) Make sure you have Ruby and RubyGems and Bundler installed

3) Navigate to the Asciidoctor stylesheet factory directory on your system.

4) Run Bundler to install the Compass and Foundation gems.

$ bundle install

Then leave out the info box about the install process via gems.


If you reply to this email, your message will be added to the discussion below:
https://discuss.asciidoctor.org/Compile-Error-Using-the-Stylesheet-Factory-tp7185p7189.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML


--
Dan Allen | @mojavelinux | https://twitter.com/mojavelinux