photog.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A place for your photos and banter. Photog first is our motto Please refer to the site rules before posting.

Administered by:

Server stats:

238
active users

#constant

0 posts0 participants0 posts today
Continued thread

So it does look like the TypeScript language server has a limit of 4MB source size where it disables type checking (and actually shows an erroneous error stating that exports that exist in the file do not exist) for files that are imported but not open in the current workspace/session.

Still not sure if this is documented anywhere or not (haven’t been able to find it, if it is).

99.99999% of the time, unless you’re doing niche stuff like I am, you won’t run into this.

Workaround: should you have such a large file, e.g., with a large generated object, try and refactor to split it up into multiple files and rejoin it a separate file. The actual object size/memory usage isn’t the issue, it’s the file size.

github.com/typescript-language

GitHubServer fails on import when exported object constant has too many entries/is too large · Issue #951 · typescript-language-server/typescript-language-serverBy aral
#TypeScript#max#lines

Hit an interesting limit in the TypeScript language server¹:

Looks like there’s a limit on the number of entries an object (constant) can have before the language server balks. Seems to hit it around 1,343.

(I’m generating an object for an icon library.)

Doesn’t appear to be related to file/memory size (breaking up the same number of entries into several objects works).

Anyone know what limitation exactly I’m hitting (if it’s documented somewhere?) Been searching but couldn’t find any reference to it.

¹ It’s definitely a language server limit as I tried in VSCode as well to rule out it being a limit in Helix Editor.

[08:12] Waarom kopen we zo veel online, en kan dat ook anders? ‘Mensen worden wel bewuster maar kopen toch hetzelfde’

Constant nieuwe spullen kopen is niet goed voor het milieu. Dat weten we nu wel. En ja, als de prijs te laag is om waar te zijn, dan is daar vast een onprettige reden voor. De filmpjes van arme kinderen in sweatshops en tropische stranden vol aangespoelde troep hebben velen weleens gezien. Waarom blijven we die spullen dan toch kopen?

dvhn.nl/meer/geld/Waarom-kopen

#Constant #tropische

Dagblad van het Noorden · Waarom kopen we zo veel online, en kan dat ook anders? ‘Mensen worden wel bewuster maar kopen toch hetzelfde’By Samuel Boerma

Sit down at desk

Check phones to see which gets charged 1st

See notification of a vid I want to watch

Grab earphones

They connect to laptop instead

Grab mouse to unconnect them

Mouse dead

Dig around for mouse cable

Nothing

Touch desk light to turn on

Darkness

Tap tap tap

Crawl under desk to make sure plug isn't loose

Tap tap

Follow cable to make sure it's right one

Switch places w/ diff plug

*Light!*

Find mouse cable. Plug in

What just happened? How did I get here?

Workshop #DEDBUG by Maurits Fennis of @unbinare at #Constant studio #Brussels 27-28/05/2023 :boost_requested:

In 2019 alone, 83% of electronic waste had been shipped to the global south, with massive environmental consequences. This amount of unprocessed waste is only set to increase, growing from 53.6 Mt of #E-Waste in 2019 to an estimated 110 Mt by 2050. A large percentage of the devices shipped to the global south have very small components, called #SMD (surface-mounted device) components. The #DEDBUG toolkit by Unbinare revives and facilitates free-form, point-to-point construction techniques for small, surface-mount components salvaged from electronic waste, allowing for the construction of circuits without the requirement to design a #PCB beforehand. Each participant will receive a DEDBUG toolkit and basic electronics tools to experiment with at home. The kit will also be donated to workers in the informal sector surrounding waste management sites throughout the Global South.

The practicalities of the workshop: constantvzw.org/site/Workshop-
*This workshop is hosted by unbina.re/ & constantvzw.org/site/.
*For more information -> theanarchistlibrary.org/librar