Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean Up Old PHP Instances / Assigned Ports #55

Open
sghoweri opened this issue Dec 27, 2019 · 1 comment
Open

Clean Up Old PHP Instances / Assigned Ports #55

sghoweri opened this issue Dec 27, 2019 · 1 comment

Comments

@sghoweri
Copy link
Contributor

sghoweri commented Dec 27, 2019

I started to run into this issue a couple of days ago where local Jest tests using the Twig Renderer randomly started to hang before eventually crashing my entire computer.

After this happened 5+ times, I did some digging and think I've found the problem + came up with a fix...

Essentially the problem was that getPort couldn't find any "available, previously unused" ports because old PHP instances (the port previously assigned) aren't cleared out of the cache that gets created and saved locally.

Fix coming soon!

@danielamorse
Copy link

danielamorse commented Jun 8, 2020

@sghoweri, @EvanLovely I recently ran into this same issue. My tests started hanging after running a ton of local Jest tests.

With help from @sghoweri, I got Jest tests running again by adding this.configStore.clear(); immediately after line 38 of twig-renderer.js, clearing out all the previously used ports.

Note that I am on v0.13.0. It looks like newer versions of twig-renderer do not use the conf package to store the config, and may or may not have this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants