Comments (20)
The error is raised in build.Run() from GoInstall(), GoFmt() and GoBuild() methods
from realize.
@DasHaus how many files do you have? could be a problem of the fsnotify package.
from realize.
@DasHaus thanks for the tip, we'll investigate as soon as possible how fresh work.
from realize.
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.
@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.
In your config yaml, under the Watcher obj, add "preview:true"
from realize.
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.
@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.
@conventi I'am on Mac OS X. Sorry by not saying it before. The total is 3092 files.
from realize.
@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.
Yes. Is the total files that I want to watch.
from realize.
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.
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.
OK, thanks you!
from realize.
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.
Also, inside the routines function, when an error is raised, this error is not displayed in the terminal.
from realize.
@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.
@conventi You are welcome. Thank you for the package. I was long time looking for a substitute for fresh
!
from realize.
Sorry, i lost your contribute with the last merge. added back just now.
from realize.
The last commit does that live reload not works... Is by this that I closed my pull request #6
from realize.
Related Issues (20)
- Realize is not killing the current app HOT 5
- github.com/labstack/echo Error
- Ability to run a bash command on Reload HOT 2
- Using realize with dockerised go+nginx app HOT 1
- invalid memory address or nil pointer dereference HOT 1
- build github.com/oxequa/realize: cannot load gopkg.in/urfave/cli.v2 HOT 23
- non-standard import when running realize HOT 2
- [QUESTION]How to setup multiple projects HOT 1
- PATH environment variable got reset if setting env HOT 1
- project dead? HOT 3
- Panic in run phase HOT 1
- Can't get the realize package HOT 4
- Adapt go modules for fixing dependencies HOT 2
- go: github.com/oxequa/realize imports gopkg.in/urfave/cli.v2: gopkg.in/urfave/[email protected]: parsing go.mod: module declares its path as: github.com/urfave/cli/v2 but was required as: gopkg.in/urfave/cli.v2 HOT 4
- it no works! HOT 2
- realize. file upload. No obvious error prompt HOT 1
- Issue with Quickstart HOT 1
- v3 branch: runtime error
- github.com/oxequa/realize imports => gopkg.in/urfave/cli.v2: cannot find module providing package gopkg.in/urfave/cli.v2 HOT 4
- module declares its path as: github.com/urfave/cli/v2 but was required as: gopkg.in/urfave/cli.v2 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from realize.