Giter VIP home page Giter VIP logo

Comments (4)

ArturT avatar ArturT commented on May 25, 2024

This looks similar to the error from another user #165

Most likely you have a typo in the bind method called in spec helper:

Please add at the beginning of your spec/rails_helper.rb or spec/spec_helper.rb:

require 'knapsack_pro'
KnapsackPro::Adapters::RSpecAdapter.bind

This is from the installation guide: https://docs.knapsackpro.com/knapsack_pro-ruby/guide/

Please ensure the name of RSpec has 2 capital letters RS in the RSpecAdapter name.

Let me know if this helps.

from knapsack_pro-ruby.

tachyons avatar tachyons commented on May 25, 2024

That is unlikely to be the case as I have written the correct name
Screenshot 2022-01-19 at 6 36 44 AM

from knapsack_pro-ruby.

ArturT avatar ArturT commented on May 25, 2024

By any chance do you see errors about no access permission while writing to the directory .knapsack_pro?

knapsack_pro gem creates the .knapsack_pro directory for temporary files inside of your project directory.

I'm wondering if your issue could be related to this #158

Could you share all errors you see (full backtrace). If you don't want to share it publicly please send an email to the support https://knapsackpro.com/contact
I could also check what's recorded on our API side for your account by knowing your email address.

from knapsack_pro-ruby.

ArturT avatar ArturT commented on May 25, 2024

This issue has been solved. The root cause of the issue was that Dir.pwd was getting reset in one spec which caused the knapsack_pro gem process to not find the .knapsack directory as knapsack_pro uses a relative path to fetch config. Dir.chdir with a block in the user's codebase is not thread-safe by design.

from knapsack_pro-ruby.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.