urbanists.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
We're a server for people who like bikes, transit, and walkable cities. Let's get to know each other!

Server stats:

525
active users

#constant

0 posts0 participants0 posts today
WordofTheHour<p><a href="https://mastodon.social/tags/constant" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>constant</span></a> : firm; solid; fixed; immovable</p><p>- French: soutenu</p><p>- German: beständig</p><p>- Italian: costante</p><p>- Portuguese: constante</p><p>- Spanish: constante</p><p>------------</p><p>Thank you so much for being a member of our community!</p>
Aral Balkan<p>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.</p><p>Still not sure if this is documented anywhere or not (haven’t been able to find it, if it is).</p><p>99.99999% of the time, unless you’re doing niche stuff like I am, you won’t run into this.</p><p>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.</p><p><a href="https://github.com/typescript-language-server/typescript-language-server/issues/951#issuecomment-2786000876" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/typescript-language</span><span class="invisible">-server/typescript-language-server/issues/951#issuecomment-2786000876</span></a></p><p><a href="https://mastodon.ar.al/tags/TypeScript" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>TypeScript</span></a> <a href="https://mastodon.ar.al/tags/max" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>max</span></a> <a href="https://mastodon.ar.al/tags/lines" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>lines</span></a> <a href="https://mastodon.ar.al/tags/memory" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>memory</span></a> <a href="https://mastodon.ar.al/tags/constant" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>constant</span></a> <a href="https://mastodon.ar.al/tags/object" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>object</span></a> <a href="https://mastodon.ar.al/tags/import" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>import</span></a> <a href="https://mastodon.ar.al/tags/bug" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>bug</span></a> <a href="https://mastodon.ar.al/tags/issue" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>issue</span></a> <a href="https://mastodon.ar.al/tags/LSP" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>LSP</span></a> <a href="https://mastodon.ar.al/tags/languageServer" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>languageServer</span></a> <a href="https://mastodon.ar.al/tags/HelixEditor" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>HelixEditor</span></a> <a href="https://mastodon.ar.al/tags/VSCode" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>VSCode</span></a> <a href="https://mastodon.ar.al/tags/JavaScript" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>JavaScript</span></a> <a href="https://mastodon.ar.al/tags/microsoft" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>microsoft</span></a> <a href="https://mastodon.ar.al/tags/workaround" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>workaround</span></a></p>
Aral Balkan<p>Right, well, I can reproduce it with a simple example so I just filed a bug. Let’s see if it’s a known issue/limitation or what.</p><p><a href="https://github.com/typescript-language-server/typescript-language-server/issues/951" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/typescript-language</span><span class="invisible">-server/typescript-language-server/issues/951</span></a></p><p>Screen recording showing the issue:</p><p><a href="https://vimeo.com/1073284447?share=copy#t=0" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">vimeo.com/1073284447?share=cop</span><span class="invisible">y#t=0</span></a></p><p><a href="https://mastodon.ar.al/tags/TypeScript" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>TypeScript</span></a> <a href="https://mastodon.ar.al/tags/max" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>max</span></a> <a href="https://mastodon.ar.al/tags/lines" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>lines</span></a> <a href="https://mastodon.ar.al/tags/memory" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>memory</span></a> <a href="https://mastodon.ar.al/tags/constant" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>constant</span></a> <a href="https://mastodon.ar.al/tags/object" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>object</span></a> <a href="https://mastodon.ar.al/tags/import" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>import</span></a> <a href="https://mastodon.ar.al/tags/bug" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>bug</span></a> <a href="https://mastodon.ar.al/tags/issue" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>issue</span></a> <a href="https://mastodon.ar.al/tags/LSP" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>LSP</span></a> <a href="https://mastodon.ar.al/tags/languageServer" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>languageServer</span></a> <a href="https://mastodon.ar.al/tags/HelixEditor" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>HelixEditor</span></a> <a href="https://mastodon.ar.al/tags/VSCode" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>VSCode</span></a> <a href="https://mastodon.ar.al/tags/JavaScript" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>JavaScript</span></a> <a href="https://mastodon.ar.al/tags/microsoft" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>microsoft</span></a></p>
Aral Balkan<p>Hit an interesting limit in the TypeScript language server¹:</p><p>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.</p><p>(I’m generating an object for an icon library.)</p><p>Doesn’t appear to be related to file/memory size (breaking up the same number of entries into several objects works).</p><p>Anyone know what limitation exactly I’m hitting (if it’s documented somewhere?) Been searching but couldn’t find any reference to it.</p><p>¹ It’s definitely a language server limit as I tried in VSCode as well to rule out it being a limit in Helix Editor.</p><p><a href="https://mastodon.ar.al/tags/TypeScript" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>TypeScript</span></a> <a href="https://mastodon.ar.al/tags/limit" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>limit</span></a> <a href="https://mastodon.ar.al/tags/constant" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>constant</span></a> <a href="https://mastodon.ar.al/tags/object" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>object</span></a> <a href="https://mastodon.ar.al/tags/languageServer" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>languageServer</span></a> <a href="https://mastodon.ar.al/tags/LSP" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>LSP</span></a></p>
Dagblad Van het Noorden RSS<p>[08:12] Waarom kopen we zo veel online, en kan dat ook anders? ‘Mensen worden wel bewuster maar kopen toch hetzelfde’</p><p> 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?</p><p> <a href="https://dvhn.nl/meer/geld/Waarom-kopen-we-zo-veel-uit-China-en-kan-dat-ook-anders-45516031.html" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">dvhn.nl/meer/geld/Waarom-kopen</span><span class="invisible">-we-zo-veel-uit-China-en-kan-dat-ook-anders-45516031.html</span></a><br> <br> <a href="https://mastodon.ozioso.online/tags/Constant" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Constant</span></a> <a href="https://mastodon.ozioso.online/tags/tropische" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>tropische</span></a></p>