Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
alberto56 opened this issue Mar 22, 2024 · 0 comments

Comments

@alberto56
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant