Coming tomorrow to Kitten… Kitten icons!
Kitten will have built-in support for the Phosphor icons set with full authoring-time language intelligence where you can search for icons via category and tag (in addition to the canonical alphabetical categorisation).
Thought this was going to take me a few hours but it took a few days thanks to running into issues with size limits, type inference from JavaScript types in modules, etc., with the TypeScript language server but I believe I’ve finally cracked it :)
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.
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.
https://github.com/typescript-language-server/typescript-language-server/issues/951
Screen recording showing the issue:
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.
#PHP devs, do you use a #LanguageServer and if so which one? I tried searching but couldn't find any up-to-date non-proprietary options. That said, maybe some of the #foss options are good enough even if they haven't been updated in a while...?
A few days ago the maintainers of #homebrew accepted my contribution to bring #eclipse #languageserver a.k.a. #jdtls to this #packagemanager.
However, the workflow of accepting a #contribution in #homebrew is weird and frankly a bit disrespectful because my authorship is lost (I'm not even a commiter anymore).
Who can tell which of my PRs got accepted without looking into all comments? https://github.com/Homebrew/homebrew-core/pulls?q=is%3Apr+jdtls