-
Notifications
You must be signed in to change notification settings - Fork 1
Update to remark 14? #14
Comments
Unfortunately the error is because the plugins are ESM, and Atom does not support ESM at all. Updating to remark 14 wouldn’t help, because that’s ESM too, and thus would also throw this error. |
FUUUUUU, I hate VS Code for some reasons, but it's too sadly that a lot of Atom users (and maintainers) moving to VSC and staling Atom ecosystem… there is almost no more competition between Electron-based (easily configurable) code editors, only fat IDEs and low-level like vim, emacs, etc., and at the middle VS Code (with problems) and Sublime (paid, closed-source, not too handful, pretty staled too). |
@wooorm can we call remark via shell command (CLI) to avoid such integration issues? |
I‘ve been thinking a little bit about this. What if we’d use |
CLI can care about its config, I guess, I see no reason to load the config file of |
I meant to imply there are two approaches. One is CLIs, which you mention. Spawning processes takes time though. Hence the other idea: esbuild. I tried that today it works well for the linter, but the problem remains that ESM from inside config files doesn’t work, which is the point of this issue. |
I still don't completely understand the point with "ESM from inside config files", but I'm not expert in this and trust you. But I consider that slower (this point I understand) but working CLI is better than non-working approach. Probably, temporary, or as a fork, or as a side branch (released temporary). |
I’ll try to explain: All plugins are ESM. So in practise that means folks have to add a I can write this linter, and But the bundled linter will try to load those ESM config files, which crash, because Electron doesn’t support ESM.
True! But as I thing the bundled version, if it would work, would be better, I’d rather try and get that to work. But you’re right that something working is better than nothing. Btw, you can also use |
I guess I understood the part above this line, I though even about remark's plugins which can be ESM and will not be converted properly to CJS on-the-fly. But "ESM config files" still frustrating me. 😅 I personally configure remark and its plugins via YAML config files, I know about JSON configs and even sections inside
I like real-time underlines in my editor! And it'd be hard to remember to switch to a separate terminal tab for checking "is everything OK?", especially when I sometimes work on few projects (parallel or consistently). |
Closing as this package is now deprecated, due to Atom’s own deprecation: https://github.blog/2022-06-08-sunsetting-atom/ |
Until recently, linter-remark was working fine for me in Atom. I then updated the devdependencies in my package, including everything related to remark. Now, when I open a markdown file, I get an Error from remark:
I think the problem is that linter-remark is still on remark 13, and with remark 14 came a move to pure ESM. I will downgrade all my remark-related devdeps for now, but it would be great if linter-remark supported the current release.
Thanks,
Adam
The text was updated successfully, but these errors were encountered: