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 · May be fixed by #2170

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
jeffbyrnes added a commit to jeffbyrnes/compass that referenced this issue Oct 8, 2024
@jeffbyrnes jeffbyrnes linked a pull request Oct 8, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant