Is vscode broken ?

The unfortunate news is that VSCode 1.90 was just dropped in ports. The better news: you won't need to rebuild *all* your dependencies to get it.
 
We should have a thread about how to get fast-building hardware cheaply.

Lots of building going on even without -STABLE/-CURRENT.
 
Get RAM and use tmpfs, then add as many cores as you can. My server box with 64GB RAM and a Ryzen 5 3600 builds quite nicely and it has spinning disks for storage. Using tmpfs makes a world of difference.
 
☝️Current comparable is Ryzen 5 5500. That's about $80. You can get an an extra two cores and a 7% boost to single-core for about $160 (Ryzen 7 5700)

If I donate new build machines, though, will FreeBSD build more than one version of electron to solve this problem? Since mixing ports and pkg isn't supported and building everything gets to be ridiculous.
 
FreshPorts issue reported.
 

Attachments

  • 1718144781144.png
    1718144781144.png
    32.4 KB · Views: 83
FreshPorts issue reported.

Fixed, albeit not the issue that was originally perceived.

Found now:
  • one package – 1.90.0 for FreeBSD:15:latest on AMD64
  • 2024-05-18 fallout for 140amd64-default (maybe negligible, since the port was updated on 2024-06-07 – I'm not checking the status server, someone else might like to).
 
Heads-up:

Code:
Aug  9 03:10:12 mowa219-gjp4-zbook-freebsd pkg[13358]: vscode-1.91.1_2 deinstalled
Aug  9 03:10:13 mowa219-gjp4-zbook-freebsd pkg[13358]: electron28-28.3.3 deinstalled

That's on FreeBSD 15.0-CURRENT. YMMV.

Consider temporarily locking vscode sndio before upgrading other packages.

1723172146080.pngCommitted on Monday: editors/vscode: update to 1.92.0. The linked change log mentioned Electron 30.

 
Correction: sndionot vscode:

Consider temporarily locking vscode sndio before upgrading other packages.

Without the lock on sndio:

Code:
% uname -aKU
FreeBSD mowa219-gjp4-zbook-freebsd 15.0-CURRENT FreeBSD 15.0-CURRENT main-n271625-104ee24349c0 GENERIC-NODEBUG amd64 1500023 1500023
% pkg iinfo electron signal vscode
pkg: No package(s) matching electron
signal-desktop-7.16.0
vscode-1.91.1_2
% pkg info -A signal-desktop
signal-desktop-7.16.0:
        FreeBSD_version: 1401000
        build_timestamp: 2024-07-19T11:17:13+0000
        built_by       : poudriere-git-3.4.99.20240424
        port_checkout_unclean: yes
        port_git_hash  : c2c4a232307
        ports_top_checkout_unclean: yes
        ports_top_git_hash: ca2cdcaebcd
% pkg info -A vscode
vscode-1.91.1_2:
        FreeBSD_version: 1500021
        build_timestamp: 2024-07-25T19:26:12+0000
        built_by       : poudriere-git-3.4.1-30-g79e3edcd
        port_checkout_unclean: no
        port_git_hash  : 72f604dbd29
        ports_top_checkout_unclean: no
        ports_top_git_hash: c890d5e85c9
        repo_type      : binary
        repository     : FreeBSD-ports
% vscode
ld-elf.so.1: Shared object "libsndio.so.7.2" not found, required by "code-oss"
% pkg provides libsndio.so.7.2
Name    : sndio-1.10.0
Comment : Small audio and MIDI framework from the OpenBSD project
Repo    : FreeBSD-ports
Filename: usr/local/lib/libsndio.so.7.2
Name    : sndio-1.10.0
Comment : Small audio and MIDI framework from the OpenBSD project
Repo    : local-poudriere
Filename: usr/local/lib/libsndio.so.7.2
% pkg iinfo sndio
gstreamer1-plugins-sndio-1.8.0.1_1
sndio-1.10.0
% su -
Password:
root@mowa219-gjp4-zbook-freebsd:~ # pkg check -B vscode
Checking vscode:   0%
(vscode-1.91.1_2) /usr/local/share/code-oss/code-oss - required shared library libsndio.so.7.2 not found
Checking vscode: 100%
root@mowa219-gjp4-zbook-freebsd:~ # pkg which usr/local/lib/libsndio.so.7.2
/root/usr/local/lib/libsndio.so.7.2 was not found in the database
root@mowa219-gjp4-zbook-freebsd:~ # grep sndio /var/log/messages
Aug  9 03:10:23 mowa219-gjp4-zbook-freebsd pkg[13358]: sndio upgraded: 1.9.0 -> 1.10.0
Aug  9 03:11:39 mowa219-gjp4-zbook-freebsd pkg[13358]: gstreamer1-plugins-sndio reinstalled: 1.8.0.1_1 -> 1.8.0.1_1
Aug  9 04:02:04 mowa219-gjp4-zbook-freebsd pkg[21894]: sndio upgraded: 1.9.0 -> 1.10.0
Aug  9 04:03:00 mowa219-gjp4-zbook-freebsd pkg[21894]: gstreamer1-plugins-sndio reinstalled: 1.8.0.1_1 -> 1.8.0.1_1
root@mowa219-gjp4-zbook-freebsd:~ # pkg info --list audio/sndio | grep usr/local/lib/libsndio.so.
        /usr/local/lib/libsndio.so.7.3
root@mowa219-gjp4-zbook-freebsd:~ # ln -s /usr/local/lib/libsndio.so.7.3 /usr/local/lib/libsndio.so.7.2
root@mowa219-gjp4-zbook-freebsd:~ # exit
logout
% vscode
%

If you create a symbolic link as shown above, proceed with caution:
  1. vscode does run, however I can't guess whether there'll be any negative effect from using a superior version of libsndio.so
  2. remember to remove your symlink when it's no longer required.
 
Back
Top