GithubHelp home page GithubHelp logo

Comments (20)

emilgpa avatar emilgpa commented on August 25, 2024

The error is raised in build.Run() from GoInstall(), GoFmt() and GoBuild() methods

from realize.

asoseil avatar asoseil commented on August 25, 2024

@DasHaus how many files do you have? could be a problem of the fsnotify package.

from realize.

 avatar commented on August 25, 2024

@DasHaus thanks for the tip, we'll investigate as soon as possible how fresh work.

from realize.

 avatar commented on August 25, 2024

Probably it is a problem related to operating system limits as you can read in the last FAQ of fsnotify. @DasHaus have you ran realize and fresh at same time? In this case you may have reached the maximum limit of files that can be watched.

from realize.

emilgpa avatar emilgpa commented on August 25, 2024

@asoseil I don't know. How can I know it?
@conventi No, only realize. There is any possibility to know when files is trying to open realize?

from realize.

asoseil avatar asoseil commented on August 25, 2024

In your config yaml, under the Watcher obj, add "preview:true"

from realize.

emilgpa avatar emilgpa commented on August 25, 2024

I changed to "github.com/howeyc/fsnotify" package (the same that uses fresh), then I execute the command go install in the realize package and try it but the result is the same...

from realize.

 avatar commented on August 25, 2024

@DasHaus if you are on a MAC OS X or a GNU/Linux system you can count the number of files (recursively) by executing find . -type f | wc -l form working directory. Let us know!

from realize.

emilgpa avatar emilgpa commented on August 25, 2024

@conventi I'am on Mac OS X. Sorry by not saying it before. The total is 3092 files.

from realize.

 avatar commented on August 25, 2024

@DasHaus you have 3093 files that you want to watch (have you cd into right directory)? Sorry if I ask but we have to retrive all informations to debug realize. Thanks for help!

from realize.

emilgpa avatar emilgpa commented on August 25, 2024

Yes. Is the total files that I want to watch.

from realize.

emilgpa avatar emilgpa commented on August 25, 2024
iMac-de-Emilio:monoculum emilio$ ulimit -a
core file size          (blocks, -c) 0
data seg size           (kbytes, -d) unlimited
file size               (blocks, -f) unlimited
max locked memory       (kbytes, -l) unlimited
max memory size         (kbytes, -m) unlimited
open files                      (-n) 8192
pipe size            (512 bytes, -p) 1
stack size              (kbytes, -s) 8192
cpu time               (seconds, -t) unlimited
max user processes              (-u) 709
virtual memory          (kbytes, -v) unlimited

from realize.

 avatar commented on August 25, 2024

Ok thanks a lot! At this point this is obviously a bug related to realize and we will investigate into fresh package to resolve this issue.

from realize.

emilgpa avatar emilgpa commented on August 25, 2024

OK, thanks you!

from realize.

emilgpa avatar emilgpa commented on August 25, 2024

Ok. I found a solution. In the function routines(), I added to the end wg.Wait(), and now it works.

routines := func() {
        channel = make(chan bool)
        err = p.fmt()
        if err == nil {
            wr.Add(1)
            go p.build()
            go p.install(channel, &wr)
            wr.Wait() // I ADDED THIS LINE AND NOW WORKS!
        }
    }

from realize.

emilgpa avatar emilgpa commented on August 25, 2024

Also, inside the routines function, when an error is raised, this error is not displayed in the terminal.

from realize.

 avatar commented on August 25, 2024

@DasHaus thanks a lot for your debug. We will testing your fix and if it's ok for all our cases we will integrate it!

from realize.

emilgpa avatar emilgpa commented on August 25, 2024

@conventi You are welcome. Thank you for the package. I was long time looking for a substitute for fresh!

from realize.

asoseil avatar asoseil commented on August 25, 2024

Sorry, i lost your contribute with the last merge. added back just now.

from realize.

emilgpa avatar emilgpa commented on August 25, 2024

The last commit does that live reload not works... Is by this that I closed my pull request #6

from realize.

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.