Skip to content

NoMethodError on line ["89"] of /usr/local/bundle/gems/compass-1.0.3/lib/compass/configuration/helpers.rb: undefined method `exists?' for class File #2169

@alberto56

Description

@alberto56

When I create this Dockerfile:

FROM ruby:alpine

RUN apk add --no-cache build-base && \
  gem update --system && \
  gem install compass

VOLUME /src

WORKDIR /src

ENTRYPOINT [ "compass" ]

Then I run:

docker build -t my-compass .

docker run --rm -v "$(pwd)"/example01:/src my-compass compile /src/ --force --trace

If my "$(pwd)"/example01/scss/style.scss contains:

.facets-select-wrapper {
  position: relative;

  .facets-list {
    position: absolute;
    top: 100%;
    left: 0;
    display: inline-block;
    border: 1px solid #dedede;
    padding: 10px;
    max-height: 300px;
    overflow: scroll;
    z-index: 100;
    background: #fff;
    transition: 0.2s all;
    opacity: 0;
    visibility: hidden;
  }
  .facets-trigger {
    display: inline-block;
  }
  .facets-trigger:hover > .facets-list {
    opacity: 1;
    visibility: visible;
  }
}

I would expect this to generate css files, however i see the following:

NoMethodError on line ["89"] of /usr/local/bundle/gems/compass-1.0.3/lib/compass/configuration/helpers.rb: undefined method `exists?' for class File

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions