News for hackers. Stuff that matters.
Re:Zed Editor automatically downloads binaries and NPM packa... by mxsjoberg on Monday July 08, 2024 @04:30AM (#40903628)
> I don't really see the big deal here. Who wants to approve and configure all of their language servers?

everyone

> If you open a file for that language, is there ever a time you would deny the download?

every time

default should be offline imo. want to download something? do it manually and place in folder etc

Re:Zed Editor automatically downloads binaries and NPM packa... by morgante on Monday July 08, 2024 @05:16AM (#40903875)
> everyone

Are you really so self-centered that you can't imagine anyone doesn't care?

I'll raise my hand and say I personally am happy to trust Zed and am fine with auto-installing whatever binaries they propose.

I do think it's reasonable to have an option for people with different security postures, but don't assume you speak for everyone.

Re:Zed Editor automatically downloads binaries and NPM packa... by Dobbs on Monday July 08, 2024 @04:36AM (#40903652)
Just migrated from Vim to NeoVim. Downloading and configuring all the various LSPs has genuinely been one of the most frustrating aspects.
Re:Zed Editor automatically downloads binaries and NPM packa... by nrabulinski on Monday July 08, 2024 @04:48AM (#40903719)
Then you’d click the „yes and never ask me again” if a prompt about whether you want to download a random binary showed up. But a lot of people wouldn’t want to click that and would either click „no and never ask me again” or vet each case one by one
Re:Zed Editor automatically downloads binaries and NPM packa... by theultdev on Monday July 08, 2024 @12:10PM (#40906630)
How are you going to "vet" the language server when it pops up?

It's not a "random binary" either, it's a hosted binary for language features coming from the zed developers github release.

Even if the binary was compiled on demand when you clicked the button, were you going to go through the entire source of node to verify?

Re:Zed Editor automatically downloads binaries and NPM packa... by wtetzner on Wednesday July 10, 2024 @05:43PM (#40931828)
> How are you going to "vet" the language server when it pops up?

You may not vet the source of the language server, but you might want to determine which ones you are willing to trust/take the risk, and which ones you aren't.

Re:Zed Editor automatically downloads binaries and NPM packa... by setopt on Monday July 08, 2024 @06:35AM (#40904195)
With Vim + ALE this is dead easy: Install LSP servers via your OS package manager, and ALE will find them in $PATH and use them.

If you want to use NeoVim, then LSP-zero + Mason was also a decent experience last I tried.

Re:Zed Editor automatically downloads binaries and NPM packa... by Woshiwuja on Monday July 08, 2024 @05:14AM (#40903865)
just use mason
Re:Zed Editor automatically downloads binaries and NPM packa... by Dobbs on Monday July 08, 2024 @06:49AM (#40904248)
mason can install them, but there isn't a way to "ensure-installed" built in. So that was a second package I needed. Then I needed a third package to configure things.

Maybe I'm missing something, but it was definitely more complicated than "just use mason".

Re:Zed Editor automatically downloads binaries and NPM packa... by KomoD on Monday July 08, 2024 @09:55AM (#40905473)
> everyone

Not true, everyone is not you, I don't want to.

Re:Zed Editor automatically downloads binaries and NPM packa... by octernion on Wednesday July 10, 2024 @02:53PM (#40930138)
a classic HN comment! "everyone is just like me"

absolutely incorrect, i loved that it does it for me and do not care even in the slightest and in fact this is 1000x preferable to vscode asking me.

what on earth made you think this was a reasonable reply.