Comments (11)
Hi Vlad, glad to see you here!
Sorry, I can't reproduce the bug (http://img.darthsim.me/iq8tr.png). Do you use the latest version of Hivemind?
from hivemind.
Hey, yeah, last version
$ hivemind -v
Hivemind version 1.0.1
okay, looks like for the current project it does not work :(
from hivemind.
Does https://github.com/DarthSim/overmind work the same way?
from hivemind.
Yeah, overmind works for me :), thanks for great tools!
from hivemind.
@DarthSim This issue is probably because you not only let sub-processes know they are in tty session, but also that they are in interactive terminal what is a lie
from hivemind.
This issue is still relevant and still exists ;-) In fact, even in overmind, the issue is similar. To get webpack-dev-server
to do anything I have to connect to the tmux session and hit a key.
from hivemind.
As I said, I can't reproduce the issue. I'll open it with help wanted
label.
from hivemind.
For me this error happened after I had the bootstrap-vue module. Without it, it works fine.
And more, if I comment the bootstrap-vue import line, start the server and after uncomment the line, webpack will work just fine. But if I let the import statement there, wepack won't compile and I've to start the rails server and webpack server separately for it to work.
My hivemind version is 1.0.4.
from hivemind.
I also get this problem on Hivemind version 1.0.6. Webpack dev server runs fine in overmind, but not in hivemind.
I haven't gone super deep into debugging like trying to watch the actual output of the pty for each process, but just by watching hiveminds output it seems like the webpack dev server just hangs after printing this line:
Starting development server...
It then just sits there forever and nothing happens. Could an option be added to hivemind to specify whether a process should be tricked into thinking its on an interactive tty or not? I feel like that does have something to do with this.
This is tangentially related but I would also personally love the feature in a process runner to strip certain terminal escape codes from output. Many tools like webpack's dev server send a code to clear the terminal before printing something. This unfortunately wipes out whatever was visible in the terminal. I think it would be doable to just strip certain codes out of the process's output though.
from hivemind.
Could an option be added to hivemind to specify whether a process should be tricked into thinking its on an interactive tty or not?
You can do this without Overmind. Just add | cat
to the command like this:
assets: bin/webpack-dev-server | cat
This will redirect the process's output to cat
disconnecting the process from tty/pty.
from hivemind.
Interesting, but unfortunately that does not fix the problem between hivemind and webpack-dev-server. It still ends up hanging the webpack dev server process unresponsively.
I'm sure this is more of a case of webpack-dev-server being weird then hivemind doing anything wrong, but it'd be sweet if we could figure out the why and get a workaround in the README, considering how popular webpack is.
from hivemind.
Related Issues (20)
- Option to turn off log prefixes HOT 1
- Fault creating process HOT 2
- Timeout when committing large files via gRPC in background jobs
- Error installing Hivemind with Go 1.13 HOT 2
- Installation via `go get` as documented in README fails HOT 6
- Make logging of timestamps optional HOT 1
- Building on Apple Silicon HOT 1
- Go module release HOT 3
- hivemind hangs when handling more than 65536 bytes of output HOT 1
- how to install binary on linux? HOT 2
- Hivemind process exits 0 regardless of child process status
- Option to skip reading .env? HOT 3
- hivemind fails to start some processes properly, but foreman works as expected
- [Bug] Hivemind prints nothing
- Add command line argument to set window title HOT 1
- Ignore release command? HOT 2
- Using hive mind with overseer HOT 1
- hivemind takes 99% CPU HOT 2
- Sub-processes aren't in the same process group HOT 4
- use PORT= in .env HOT 2
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 hivemind.