VSCode on Ubuntu 24.10

Andrea Fontana nospam at example.com
Tue Oct 29 08:30:05 UTC 2024


I recently installed the new version of Ubuntu (24.10) from 
scratch. Opening VSCode with code-d makes it unusable, and even 
without plugins, simply running dub from VSCode's terminal 
consumes 100% of the CPU and 8GB of RAM.

The reason for this is that VSCode raises the open file ulimit 
significantly. As a result, when Phobos performs a fork to start 
a process, it triggers a known bug [1].

While waiting for the PR to be merged, you can launch VSCode by 
setting a lower ulimit, for example with:

```bash
#!/bin/bash
ulimit -n 16384
/opt/your_vscode_bin_path "$@"
```

I hope that once the pull request is merged and the new compiler 
(2.110) is released, the tools will be compiled with version 
2.110 instead of 2.109; otherwise, the bug will persist until the 
next release.

As I’ve mentioned before, I firmly believe that everything 
released should go through a bootstrap, including the compiler 
itself (i.e., once 2.110 is compiled with 2.109, 2.110 should be 
recompiled with itself to take advantage of any fixes applied).

[1] https://github.com/dlang/phobos/pull/8990

Andrea Fontana


More information about the Digitalmars-d mailing list