dju.social ist Teil eines dezentralisierten sozialen Netzwerks, angetrieben von Mastodon.
Die Deutsche Journalistinnen- und Journalisten-Union (dju) in ver.di bietet hier einen Raum für Medienmenschen und alle, die an einem freundlichen und konstruktiven Austausch interessiert sind.

Serverstatistik:

351
aktive Profile

Mehr erfahren

#object

3 Beiträge2 Beteiligte0 Beiträge heute
Antwortete Aral Balkan

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

I ran into an issue while creating and exporting a constant object that holds component versions of the ~1,500 icons in the Phorsphor icons library and I’ve created the simple reproduction below: D...
GitHubServer fails on import when exported object constant has too many entries/is too large · Issue #951 · typescript-language-server/typescript-language-serverVon 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.

#TypeScript#limit#constant

Ich muss die Wohnung meiner ausräumen. Sie waren deutsche Kriegskinder des Zweiten Weltkriegs, haben alles aufgehoben für schlechte Zeiten. Gestern fand ich ein , das meine Lage perfekt beschreibt.

I have to clean out my ‘ apartment. They were children in World War II in Germany, saved everything for hard times. Yesterday I came across an that perfectly well describes my situation.