GithubHelp home page GithubHelp logo

Coffee not brewing ☕️ about coffee HOT 7 OPEN

petersolimine avatar petersolimine commented on July 17, 2024
Coffee not brewing ☕️

from coffee.

Comments (7)

1um avatar 1um commented on July 17, 2024

Nice, do you run Coffee docker from same folder as your FE code?

docker run --pull=always -it -e OPENAI_API_KEY=${OPENAI_API_KEY} -v $(pwd):/mount coframe/coffee:latest

In this command -v $(pwd):/mount is mirroring all files from current folder $(pwd) to /mount folder in docker.
I'll add check that /mount is not empty on startup.

from coffee.

1um avatar 1um commented on July 17, 2024

Scratch that, something else is an issue. What is filename of file you edit and OS you are using?

from coffee.

petersolimine avatar petersolimine commented on July 17, 2024

Yes, same directory. I'm on MacOS Monterey, M1 Chip. Filename is src/app/components/destinations.tsx

from coffee.

saikrishnaklu1993 avatar saikrishnaklu1993 commented on July 17, 2024

image
image

Have same issue on windows - it doesn't recognize the coffee component.

on windows(inside the app dir):
docker run --pull=always -it -e OPENAI_API_KEY="xxxx" -v "${PWD}:/mount" coframe/coffee:latest

@petersolimine great thanks for opensourcing!!

from coffee.

sam-shridhar1950f avatar sam-shridhar1950f commented on July 17, 2024

Same issue here on Windows. The coffee component isn't recognized despite running docker in the same directory.

from coffee.

OmmAshutosh avatar OmmAshutosh commented on July 17, 2024

ssue could be related to permissions or the location of the Compose binary.Here are a few steps you can take to troubleshoot this issue:

  1. which docker-compose; this should return the path to the Docker Compose binary. Make sure that this path is included in your system's PATH environment variable.
  2. ls -l $(which docker-compose)
  3. sudo chmod +x $(which docker-compose)
  4. docker-compose --version
  5. sudo chmod +x $(which docker-compose)
  6. docker-compose --version
    Check for any conflicting Docker installations: Make sure that there are no other Docker installations on your system that could be conflicting with Docker Desktop. If there are, you may need to uninstall them before reinstalling Docker Desktop.

from coffee.

mauricedb avatar mauricedb commented on July 17, 2024

I am having the same issue using Windows. I have run into similar issues before with file watching inside a container and it seems that that is a known issue. See https://stackoverflow.com/a/70686685

I tried using docker-volume-watcher but didn't help as the bind was skipped since it has invalid source path.

I tried using the PollingObserver but that didn't work for me either, probably my lack of Python skills.
One thing I did notice, With the PollingObserver it would list the files/folders in the root of my Next.js target project
image
While with the Observer it didn't
image

When I run py .\main.py on my Windows machine it works just fine with a small issue of always duplicating the import Coffee from './components/Coffee'; line.
image

from coffee.

Related Issues (7)

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.