frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Meta's Pyrefly sabotages competing Python extensions without telling you

https://github.com/facebook/pyrefly/issues/3292
38•FossAndFurious•2h ago

Comments

FossAndFurious•2h ago
Pyrefly is Meta's new Python type checker and VS Code extension, released earlier this year. While auditing the VSIX before installing it, I found that on activation it silently writes `disableLanguageServices = true` to the user's global settings for three named extensions: basedpyright, windsurfpyright, and cursorpyright.

The write uses `ConfigurationTarget.Global`, so it affects all workspaces. There is no `deactivate()` cleanup, so the setting persists after Pyrefly is uninstalled.

This was verified by live reproduction: installed Pyrefly alongside basedpyright, opened a Python file, and observed the key appear in `settings.json`. Uninstalled Pyrefly — key remained, basedpyright still broken.

The code is in plain TypeScript in the public repo (`lsp/src/extension-interop.ts`), added December 2025. This isn't obfuscated or hidden — it just hasn't been noticed.

Bug report with full details, source references, and reproduction steps: https://github.com/facebook/pyrefly/issues/3292

The fix is straightforward: ask the user before touching settings they didn't set, and restore them in `deactivate()`.

PufPufPuf•1h ago
"it's not X, m-dash, it's Y"
refulgentis•1h ago
A, B, C.

A, B, C — D.

IceDane•1h ago
Have you just completely retired your brain in favor of a bidirectional pipe to an LLM?
Esophagus4•34m ago
I’ll answer that once my brain’s usage limit resets at 10:30pm
jqpabc123•1h ago
Once again; if it has a Meta label, it most likely has added "features" you may not expect ... or want.
jaen•1h ago
Noticed this myself as a VSCode-derivative user.

But I think this is just because having multiple Python extensions enabled generally breaks the UX...

Since VSCode doesn't really have a nice way for multiple language extensions to cooperate, this looks like just a quick hack to make the initial UX better, unlikely to be "malicious".

EDIT: Silent downvotes, really? Prejudice is strong here...

pityJuke•1h ago
Could they not gate this behind a notification on install?
PufPufPuf•1h ago
Fixed title: Pyrefly automatically disables conflicting extensions on installation.

That's a convenient thing to do: if user installs Pyrefly, they probably want to use Pyrefly. Everyone likes a good outrage against Meta, but this is a nothingburger.

LaurensBER•1h ago
Agreed, it should definitely be documented and undone on uninstall but the action itself is reasonable.

I spent some time figuring out how to disable the default language server after installing Ty.

hamandcheese•1h ago
> but the action itself is reasonable.

I'm not outraged (the intentions were probably good), but I also strongly disagree. Don't touch my config without my consent.

NewsaHackO•1h ago
Yeah, I think the OP is overreacting. I am pretty sure it even says it in the initial installation instructions and gives a clear reason why it interferes with other language servers. In the "Features" section of the VsCodium extensions "Adds language features from Pyrefly's analysis like go-to definition, hover, etc. (full list here) and disables Pylance completely (VSCode's built-in Python extension)". I suspect there is an element of LLM-sycophancy-driven activism here.
d_sem•1h ago
OP is an LLM.
axus•1h ago
Never attribute to malice what can be explained by vibe-coding
3darl•1h ago
This is typical in the Python space. Windows is also broken after installing Conda.

Given that now one has to pray that one does not get Shai Hulud when using PyPI, the best thing Meta could do is switch Instagram to PHP/Hack and PyTorch back to Lua (or Haskell or whatever).

gavmor•53m ago
Wow, I wasn't going to say it, but I was thinking it—python libraries and clobbering my environment? Name a more iconic duo.
gavmor•55m ago
From the people who brought you "move fast and break things."
OutOfHere•40m ago
Speaking of sabotage, Microsoft's SwiftKey keyboard app sabotages the use of a competing search engine (DuckDuckGo) in Firefox in Android for me. When typing a multi-word quoted search phrase, it doesn't allow it to be typed correctly.
Lihh27•15m ago
Disabling conflicting extensions, sure. Writing to global settings and leaving the mess behind after uninstall is not the same thing.

NetHack 5.0.0

https://nethack.org/v500/release.html
132•rsaarelm•51m ago•20 comments

Videolan Dav2d

https://code.videolan.org/videolan/dav2d
58•dabinat•1h ago•11 comments

Uber wants to turn its drivers into a sensor grid for self-driving companies

https://techcrunch.com/2026/05/01/uber-wants-to-turn-its-millions-of-drivers-into-a-sensor-grid-f...
77•nickvec•3h ago•87 comments

Inventions for battery reuse and recycling increase more than 7-fold in last 10y

https://www.epo.org/en/news-events/news/inventions-battery-reuse-and-recycling-increase-more-seve...
64•JeanKage•2d ago•4 comments

California to begin ticketing driverless cars that violate traffic laws

https://www.bbc.com/news/articles/clypjx3rg2go
60•geox•55m ago•36 comments

Unsigned Sizes: A Five Year Mistake

https://c3-lang.org/blog/unsigned-sizes-a-five-year-mistake/
6•lerno•14m ago•0 comments

Flue is a TypeScript framework for building the next generation of agents

https://flueframework.com/
15•momentmaker•1h ago•1 comments

Barman – Backup and Recovery Manager for PostgreSQL

https://github.com/EnterpriseDB/barman
97•nateb2022•3d ago•18 comments

How fast is a macOS VM, and how small could it be?

https://eclecticlight.co/2026/05/02/how-fast-is-a-macos-vm-and-how-small-could-it-be/
191•moosia•9h ago•70 comments

Why does it take so long to release black fan versions?

https://www.noctua.at/en/expertise/blog/how-can-it-take-so-long-to-release-black-fan-versions
610•buildbot•14h ago•258 comments

Roblox shares plummet 18% as child safety measures weigh on bookings

https://www.cnbc.com/2026/05/01/roblox-rblx-stock-child-safety-earnings.html
57•1vuio0pswjnm7•1h ago•33 comments

Refusal in Language Models Is Mediated by a Single Direction

https://arxiv.org/abs/2406.11717
59•fagnerbrack•5h ago•19 comments

Open Design: Use Your Coding Agent as a Design Engine

https://github.com/nexu-io/open-design
131•steveharing1•6h ago•74 comments

Why are there both TMP and TEMP environment variables? (2015)

https://devblogs.microsoft.com/oldnewthing/20150417-00/?p=44213
164•ankitg12•10h ago•80 comments

America's Expanding Domestic Surveillance

https://www.wsj.com/articles/americas-expanding-domestic-surveillance-08b73187
112•Brajeshwar•3h ago•66 comments

Dotcl: Common Lisp Implementation on .NET

https://github.com/dotcl/dotcl
128•reikonomusha•2d ago•26 comments

AI Self-preferencing in Algorithmic Hiring: Empirical Evidence and Insights

https://arxiv.org/abs/2509.00462
300•laurex•3h ago•156 comments

Ti-84 Evo

https://education.ti.com/en/products/calculators/graphing-calculators/ti-84-evo
547•thatxliner•22h ago•447 comments

Also-RANS: Asymmetric Numeral Systems for Entropy Coding

https://fergusfinn.com/blog/understanding-rans/
5•mezark•2d ago•0 comments

Show HN: Pollen – distributed WASM runtime, no control plane, single binary

https://github.com/sambigeara/pollen
76•sambigeara•2d ago•39 comments

Zugzwang

https://en.wikipedia.org/wiki/Zugzwang
69•Qem•3h ago•40 comments

Show HN: DAC – open-source dashboard as code tool for agents and humans

https://github.com/bruin-data/dac
81•karakanb•3d ago•24 comments

Artemis II Photo Timeline

https://artemistimeline.com/#artemis-ii-walkout-nhq202604010003
312•geerlingguy•2d ago•25 comments

New research suggests people can communicate and practice skills while dreaming

https://www.newyorker.com/culture/annals-of-inquiry/its-possible-to-learn-in-our-sleep-should-we
420•XzetaU8•1d ago•244 comments

DeepSeek V4–almost on the frontier, a fraction of the price

https://simonwillison.net/2026/Apr/24/deepseek-v4/
402•indigodaddy•1d ago•258 comments

Show HN: Mljar Studio – local AI data analyst that saves analysis as notebooks

https://mljar.com/
57•pplonski86•8h ago•10 comments

To Restore an Island Paradise, Add Fungi

https://e360.yale.edu/digest/atoll-islands-sea-level-rise-fungi
124•Brajeshwar•3d ago•32 comments

SFO Gate Explorer

https://www.flysfo.com/passengers/services/gate-explorer
33•CaliforniaKarl•2d ago•38 comments

Show HN: Filling PDF forms with AI using client-side tool calling

https://copilot.simplepdf.com/?share=a7d00ad073c75a75d493228e6ff7b11eb3f2d945b6175913e87898ec96ca...
45•nip•10h ago•22 comments

Show HN: Browser-based light pollution simulator using real photometric data

https://iesna.eu/?wasm=skyglow_demo
35•holg•9h ago•11 comments