-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Replace nsfw
with @parcel/watcher
#12784
Conversation
@msujew do you feel this is pretty much a 1:1 replacement? Are we aware what the advantages/disadvantages of this change is? How does it affect adopters? We're exporting it from |
@tsmaeder Yes, this is supposed a 1:1 replacement without any functional advantages/disadvantages. The only drawback that I've noticed is that you cannot watch single files anymore. Only directories. Any adopter that has previously been using NSFW in their code will need to switch to the parcel watcher. The API is pretty similar, so hopefully the migration shouldn't be too difficult for adopters. The main motivation behind this change is to move to native dependencies that don't rely so heavily on new versions of libc on Linux. See arduino/arduino-ide#2018 and #12782 (with #12618 being closely related). |
@msujew I like the idea! One potential concern is that it might do not as well, in a Linux environment where the
I think previously we would immediately, on startup, individually watch specific, important config files, like Have you noticed anything in vscode's side, along with the switch to Would you please rebase this PR to latest master? [1]: e.g. Imagine a service that offers "push the button" containerized development environments, that each include a Theia app. The host runs Linux, and the update: In other words, if I'm correct about how it works with |
Looking quickly at the parcel-bundler/watcher#122 This reminds me, we should test successful watching through symbolic links |
I've dug a bit deeper into the glibc rabbit hole in relation with nsfw. Now things a bit more clear to me in regards to why the binaries I distribute over here even require such a new version of glibc. I've downgraded the required glibc version, which makes this kind of obsolete. I'll close this PR, but in case anyone wants to come back to this topic, you can see the required changes in the changes tab of this PR. |
That's awesome, thanks @msujew |
I've looked into the failures of the Playwright tests. They only fail on Linux. IMO, this is a bug in the "compressed tree" and is probably unrelated to the change at hand. So, with the resources folder from the playwright test, you can do the following scenario:
The same events seem to be sent on Linux and Windows, so my suspicion is that this is a reordering of async blocks du to the different timings on the respective platforms. |
What it does
Closes #12782.
Replaces our
nsfw
dependency with@parcel/watcher
to align with vscode and to reduce our reliance on new libc versions.How to test
settings.json
should be reflected in changes in the preferenceslaunch.json
should be reflected in the debug viewReview checklist
Reminder for reviewers