Package Details: code-translucent 1.96.3-1

Git Clone URL: https://aur.archlinux.org/code-translucent.git (read-only, click to copy)
Package Base: code-translucent
Description: The Open Source build of Visual Studio Code (vscode) editor with translucent window, official marketplace, unblocked proprietary features and wayland support!
Upstream URL: https://github.com/microsoft/vscode
Keywords: code code-oss translucent transparent visual-studio-code vscode
Licenses: MIT
Conflicts: code-oss
Provides: code-oss
Submitter: observ33r
Maintainer: observ33r
Last Packager: observ33r
Votes: 7
Popularity: 0.000401
First Submitted: 2022-09-18 16:29 (UTC)
Last Updated: 2025-01-14 07:21 (UTC)

Pinned Comments

observ33r commented on 2022-09-18 17:36 (UTC) (edited on 2023-05-08 05:36 (UTC) by observ33r)

  • Completely rewritten patch with correct implementation of transparency for electron window!
  • It actually running from compiled binaries! No need for electron dependency!
  • No conflicting with official release! You can have installed both!
  • Added support for official marketplace!
  • Added support for flags configuration file!
  • Added support for Wayland!
  • Unblocked proprietary features!
How to change window color?
"workbench.colorCustomizations": {
    //Black window color with 75% transparency (#RRGGBBAA)
    "window.background": "#000000BF"
},

..assuming you have a customized theme with all other transparent elements!

Building within clean chroot!

You can build package in completely clean environment without conflicting with any local dependencies (latest nodejs package etc..)!

Execute the following commands inside the package directory:

yes | sudo pacman -S devtools
extra-x86_64-build -c && rm *.log
mapfile -t _pkgs <<< "$(printf '%s\n' code-translucent-*.pkg.tar.zst | sort -Vr)"
sudo pacman -U "${_pkgs[0]}"

..or just run "build-with-chroot.sh" script!

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 Next › Last »

Similacrest commented on 2023-12-28 17:30 (UTC)

I tried building from TTY and ran into the same issue. Physical memory consumption barely exceeded 4GB when the build crashed. vscodium builds normally.

fixaur commented on 2023-12-26 07:53 (UTC)

$ node --max_old_space_size=12288 ./node_modules/gulp/bin/gulp.js --openssl-legacy-provider vscode-linux-x64-min
[15:44:17] Node flags detected: --openssl-legacy-provider
[15:44:17] Respawned to PID: 101058
[15:44:22] Using gulpfile ~/.cache/yay/code-translucent/src/code-translucent/gulpfile.js
[15:44:22] Starting 'vscode-linux-x64-min'...
[15:44:22] Starting clean-out-build ...
[15:44:22] Finished clean-out-build after 5 ms
[15:44:22] Starting build-web-node-paths ...
[15:44:22] Finished build-web-node-paths after 2 ms
[15:44:22] Starting compile-api-proposal-names ...
[15:44:22] Starting compilation api-proposal-names...
[15:44:22] Finished compilation api-proposal-names with 0 errors after 63 ms
[15:44:22] Finished compile-api-proposal-names after 70 ms
[15:44:22] Starting compile-src ...
[15:44:35] [mangler] Done collecting. Classes: 7272. Exported symbols: 8859
[15:44:36] [mangler] Done creating class replacements
[15:44:36] [mangler] Starting prepare rename edits
[15:44:37] Starting compilation...
[15:45:37] 'vscode-linux-x64-min' errored after 1.25 min
[15:45:37] Error [ERR_WORKER_OUT_OF_MEMORY]: Worker terminated due to reaching memory limit: JS heap out of memory
    at new NodeError (node:internal/errors:405:5)
    at [kOnExit] (node:internal/worker:287:26)
    at Worker.<computed>.onexit (node:internal/worker:209:20)
    at Worker.callbackTrampoline (node:internal/async_hooks:130:17)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
==> 错误: 在 build() 中发生一个错误。
    正在放弃...

observ33r commented on 2023-12-24 18:06 (UTC) (edited on 2023-12-24 18:09 (UTC) by observ33r)

@Similacrest: Yes, but do you have enough free memory? ("free -m" available column). You can try build from TTY without xorg/wayland running ;)

Similacrest commented on 2023-12-24 11:40 (UTC) (edited on 2023-12-24 11:41 (UTC) by Similacrest)

Build is failing both in AUR‌ helper and when I try build-with-chroot.sh. I have 16GB of RAM.

Installing dependencies in test/smoke...
$ yarn --check-files
yarn install v1.22.21
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
Done in 1.73s.
Done in 340.73s.
yarn run v1.22.21
$ node --max_old_space_size=8192 ./node_modules/gulp/bin/gulp.js --openssl-legacy-provider vscode-linux-x64-min
[13:25:17] Node flags detected: --openssl-legacy-provider
[13:25:17] Respawned to PID: 8055
[13:25:23] Using gulpfile ~/code-translucent/src/code-translucent/gulpfile.js
[13:25:23] Starting 'vscode-linux-x64-min'...
[13:25:23] Starting clean-out-build ...
[13:25:23] Finished clean-out-build after 3 ms
[13:25:23] Starting build-web-node-paths ...
[13:25:23] Finished build-web-node-paths after 3 ms
[13:25:23] Starting compile-api-proposal-names ...
[13:25:23] Starting compilation api-proposal-names...
[13:25:23] Finished compilation api-proposal-names with 0 errors after 84 ms
[13:25:23] Finished compile-api-proposal-names after 94 ms
[13:25:23] Starting compile-src ...
[13:25:41] [mangler] Done collecting. Classes: 7272. Exported symbols: 8859
[13:25:42] [mangler] Done creating class replacements
[13:25:42] [mangler] Starting prepare rename edits
[13:25:43] Starting compilation...
[13:27:15] 'vscode-linux-x64-min' errored after 1.85 min
[13:27:15] Error [ERR_WORKER_OUT_OF_MEMORY]: Worker terminated due to reaching memory limit: JS heap out of memory
    at new NodeError (node:internal/errors:405:5)
    at [kOnExit] (node:internal/worker:287:26)
    at Worker.<computed>.onexit (node:internal/worker:209:20)
    at Worker.callbackTrampoline (node:internal/async_hooks:130:17)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
==> ERROR: A failure occurred in build().
    Aborting...
==> ERROR: Build failed, check /var/lib/archbuild/extra-x86_64/[redacted]/build
Build failed with status code: 255!

observ33r commented on 2023-12-14 19:47 (UTC)

@Gursheys: How stuck? Node process corresponding to gulp have no activity? I hope you understand that here the source code is compiling. Can take 15min or far more on low-end hardware!

Gursheys commented on 2023-12-14 01:47 (UTC) (edited on 2023-12-14 01:48 (UTC) by Gursheys)

Gets stuck building/compiling for me, even with clean chroot

rokaho commented on 2023-11-18 12:48 (UTC)

It's working good on arch but there is any way to build for windows? I have dual boot and want to have same vscode as on my arch :(

observ33r commented on 2023-10-15 07:11 (UTC) (edited on 2023-10-15 07:12 (UTC) by observ33r)

@Rubos: those warnings are expected and normal! Try it now! If not work, please let me know what is output of:

echo "-${DISPLAY:-null}-${XDG_SESSION_TYPE:-null}-${WAYLAND_DISPLAY:-null}-"

Rubos commented on 2023-10-08 22:06 (UTC) (edited on 2023-10-08 22:07 (UTC) by Rubos)

@observ33r Sorry for the late reply. Yes I can confirm, launching /opt/code-translucent/bin/code-oss directly fixes the issue for me.

What about Spotify? Spotify is also electron app..

Yeah all other electron apps work ootb. That includes "visual-studio-code-bin"

Interestingly enough, when i execute

/opt/code-translucent/bin/code-oss --ozone-platform=wayland --enable-features=UseOzonePlatform 

I get these warnings with the buggy behavior:

Warning: 'ozone-platform' is not in the list of known options, but still passed to Electron/Chromium.
Warning: 'enable-features' is not in the list of known options, but still passed to Electron/Chromium.

When i start it without these flags i don't get any errors and it just works... (i did set the flags in the .config dir for all electron apps)

Anyways with this workaround it's very usable for me. Thx for the great package