Andrew Dupont

Results 560 comments of Andrew Dupont

This might be more salient — the ESM-to-CommonJS transpiling, at least — once we're on PulsarNext. Someone writing a package for current Pulsar is bound to pull in dependencies that...

I made [pulsar-hover](https://web.pulsar-edit.dev/packages/pulsar-hover) using the TypeScript preset described above and it's gone quite well. There's one way that it _didn't_ go well, but it's a bit of an edge case:...

> Delay the unloading of the current page until the `stop` method resolves; I've hacked together a proof of concept and it actually works, but it's a bit impractical in...

Good news! My horrible idea from the previous comment won't be needed. The specific crash I've been seeing is the fault of our path-watching strategy: * Suppose we want to...

Good news! `nsfw` [accepted my PR](https://github.com/Axosoft/nsfw/pull/185#event-14419744715) adding `NODE_API_SWALLOW_UNTHROWABLE_EXCEPTIONS`. I'll keep this open until they put out a new release with this change.

There's a second half of this that I failed to mention. The old [node-pathwatcher](https://github.com/pulsar-edit/node-pathwatcher) library is something that we'd love to eliminate our dependency on. In an ideal world we'd...

> Am I on the right track, or is this not possible for reasons you found out while investigating this issue? The one issue I had with `nsfw` is the...

OK, my best effort so far is [this branch](https://github.com/savetheclocktower/node-pathwatcher/tree/n-api-with-efsw-bundled). It defers to `efsw` for the vast majority of file-change-detection logic; that library uses `inotify` on Linux, `FSEvents` (instead of the...

Everything was going great with the `patchwatcher` refactor… and then I realized that `efsw` is quite profligate when it comes to FSEvents. `fseventsd` on macOS apparently has a limit on...

The problem with `kqueue` and `efsw` is that it takes a full half-second after a watcher is added before it starts reporting events. This is not a problem we seemed...