Package Details: code-wayland 1.66.2-1

Git Clone URL: https://aur.archlinux.org/code-wayland.git (read-only, click to copy)
Package Base: code-wayland
Description: The Open Source build of Visual Studio Code (vscode) editor, with ozone enabled for wayland support
Upstream URL: https://github.com/microsoft/vscode
Licenses: MIT
Conflicts: code
Provides: vscode
Submitter: hedgepigdaniel
Maintainer: hedgepigdaniel
Last Packager: hedgepigdaniel
Votes: 5
Popularity: 0.003580
First Submitted: 2021-01-20 12:31 (UTC)
Last Updated: 2022-04-15 01:03 (UTC)

Latest Comments

1 2 Next › Last »

tronicdude commented on 2023-03-28 17:14 (UTC)

Installing dependencies in test/smoke...
$ yarn 
yarn install v1.22.19
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
Done in 0.75s.
Done in 106.34s.
[10:08:54] Using gulpfile ~/.cache/yay/code-wayland/src/code-wayland/gulpfile.js
[10:08:54] Starting 'compile-build'...
[10:08:54] Starting clean-out-build ...
[10:08:54] Finished clean-out-build after 2 ms
[10:08:54] Starting build-web-node-paths ...
[10:08:54] Finished build-web-node-paths after 2 ms
[10:08:54] Starting compile-build ...
[10:08:56] Starting compilation...
[10:10:41] Finished compilation with 0 errors after 104555 ms
[10:10:41] Finished compile-build after 106641 ms
[10:10:41] Finished 'compile-build' after 1.77 min
[10:10:46] Using gulpfile ~/.cache/yay/code-wayland/src/code-wayland/gulpfile.js
[10:10:46] Starting 'compile-extension-media'...
[10:10:46] Finished esbuilding extension media /home/bruh/.cache/yay/code-wayland/src/code-wayland/extensions/markdown-language-features/esbuild-preview.js with 0 errors.
[10:10:46] Finished esbuilding extension media /home/bruh/.cache/yay/code-wayland/src/code-wayland/extensions/markdown-language-features/esbuild-notebook.js with 0 errors.
[10:10:46] Finished esbuilding extension media /home/bruh/.cache/yay/code-wayland/src/code-wayland/extensions/simple-browser/esbuild-preview.js with 0 errors.
[10:10:46] Finished esbuilding extension media /home/bruh/.cache/yay/code-wayland/src/code-wayland/extensions/notebook-renderers/esbuild.js with 0 errors.
[10:10:46] Finished esbuilding extension media /home/bruh/.cache/yay/code-wayland/src/code-wayland/extensions/markdown-math/esbuild.js with 0 errors.
[10:10:46] Finished 'compile-extension-media' after 132 ms
[10:10:51] Using gulpfile ~/.cache/yay/code-wayland/src/code-wayland/gulpfile.js
[10:10:51] Starting 'compile-extensions-build'...
[10:10:51] Starting clean-extensions-build ...
[10:10:51] Finished clean-extensions-build after 2 ms
[10:10:51] Starting bundle-extensions-build ...
[10:10:55] 'compile-extensions-build' errored after 4.3 s
[10:10:55] Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:71:19)
    at Object.createHash (node:crypto:130:10)
    at BulkUpdateDecorator.hashFactory (/home/bruh/.cache/yay/code-wayland/src/code-wayland/node_modules/webpack/lib/util/createHash.js:145:18)
    at BulkUpdateDecorator.update (/home/bruh/.cache/yay/code-wayland/src/code-wayland/node_modules/webpack/lib/util/createHash.js:46:50)
    at SourceMapSource.updateHash (/home/bruh/.cache/yay/code-wayland/src/code-wayland/node_modules/webpack/node_modules/webpack-sources/lib/SourceMapSource.js:233:8)
    at NormalModule._initBuildHash (/home/bruh/.cache/yay/code-wayland/src/code-wayland/node_modules/webpack/lib/NormalModule.js:868:17)
    at handleParseResult (/home/bruh/.cache/yay/code-wayland/src/code-wayland/node_modules/webpack/lib/NormalModule.js:934:10)
    at /home/bruh/.cache/yay/code-wayland/src/code-wayland/node_modules/webpack/lib/NormalModule.js:1026:4
    at processResult (/home/bruh/.cache/yay/code-wayland/src/code-wayland/node_modules/webpack/lib/NormalModule.js:743:11)
    at /home/bruh/.cache/yay/code-wayland/src/code-wayland/node_modules/webpack/lib/NormalModule.js:807:5
    at /home/bruh/.cache/yay/code-wayland/src/code-wayland/node_modules/loader-runner/lib/LoaderRunner.js:406:3
    at iterateNormalLoaders (/home/bruh/.cache/yay/code-wayland/src/code-wayland/node_modules/loader-runner/lib/LoaderRunner.js:232:10)
    at iterateNormalLoaders (/home/bruh/.cache/yay/code-wayland/src/code-wayland/node_modules/loader-runner/lib/LoaderRunner.js:239:10)
    at /home/bruh/.cache/yay/code-wayland/src/code-wayland/node_modules/loader-runner/lib/LoaderRunner.js:254:3
    at context.callback (/home/bruh/.cache/yay/code-wayland/src/code-wayland/node_modules/loader-runner/lib/LoaderRunner.js:124:13)
    at Object.module.exports (/home/bruh/.cache/yay/code-wayland/src/code-wayland/node_modules/vscode-nls-dev/lib/webpack-loader.js:40:9)
==> ERROR: A failure occurred in build().

florinb commented on 2022-08-25 15:55 (UTC) (edited on 2022-08-25 15:55 (UTC) by florinb)

I wanted to try this since I am having hangs with the official 'code' package on Sway. I tried building it a couple of times, but stuck at the same error:

[18:31:44] Downloading extension: ms-vscode.references-view@0.0.89 ...
[18:31:44] Downloading extension: ms-vscode.js-debug-companion@1.0.17 ...
[18:31:44] Downloading extension: ms-vscode.js-debug@1.66.1 ...
[18:31:44] Downloading extension: ms-vscode.vscode-js-profile-table@1.0.0 ...
[18:31:45] 'compile-extensions-build' errored after 1.08 min
[18:31:45] Error: Request https://marketplace.visualstudio.com/_apis/public/gallery/publishers/ms-vscode/vsextensions/references-view/0.0.89/vspackage failed with status code:404
    at Request.<anonymous> (/home/florin/.cache/yay/code-wayland/src/code-wayland/node_modules/gulp-remote-retry-src/index.js:70:33)
    at Request._callback (/home/florin/.cache/yay/code-wayland/src/code-wayland/node_modules/lodash/lodash.js:10118:25)
    at Request.requestRetryReply [as reply] (/home/florin/.cache/yay/code-wayland/src/code-wayland/node_modules/requestretry/index.js:105:19)
    at Request.<anonymous> (/home/florin/.cache/yay/code-wayland/src/code-wayland/node_modules/requestretry/index.js:146:10)
    at Request.self.callback (/home/florin/.cache/yay/code-wayland/src/code-wayland/node_modules/request/request.js:185:22)
    at Request.emit (node:events:527:28)
    at Request.emit (node:domain:537:15)
    at Request.<anonymous> (/home/florin/.cache/yay/code-wayland/src/code-wayland/node_modules/request/request.js:1154:10)
    at Request.emit (node:events:527:28)
    at Request.emit (node:domain:537:15)
    at IncomingMessage.<anonymous> (/home/florin/.cache/yay/code-wayland/src/code-wayland/node_modules/request/request.js:1076:12)
    at Object.onceWrapper (node:events:641:28)
    at IncomingMessage.emit (node:events:539:35)
    at IncomingMessage.emit (node:domain:537:15)
    at endReadableNT (node:internal/streams/readable:1345:12)
    at processTicksAndRejections (node:internal/process/task_queues:83:21)
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: code-wayland

Looks like a markerplace endpoint answers with 404. Any ideas how to solve it?

0BAD-C0DE commented on 2022-04-19 06:51 (UTC) (edited on 2022-04-19 07:24 (UTC) by 0BAD-C0DE)

I did some troubleshooting.

  1. There's no way to install code-wayland as it is failing to "pass the validity check" on "code.sh" source file checsum.

  2. Installing code works, but adding code-features triggers this error: "Writing login information to the keychain failed with error 'GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.secrets was not provided by any .service files'."

  3. The same happens when addin gitlens addon.

  4. Adding gnome-keyring silences this error but brings the timeout one (see below).

  5. None of these issues were happening with code-wayland.

0BAD-C0DE commented on 2022-04-15 06:59 (UTC) (edited on 2022-04-15 07:46 (UTC) by 0BAD-C0DE)

@hedgepigdaniel Whatever you fixed, it didn't work on my setup with the very same error as reported earlier.

Then I tried your suggestion. With some small changes, as I am in KDE/Plasma Needed packages to be installed are:

  • code
  • code-marketplace
  • code-features
  • gnome-keyring (added because of "GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown") 1 2

In the end we still get another error which is:

Writing login information to the keychain failed with error
  'Errore nel chiamare StartServiceByName per org.freedesktop.secrets:
  Failed to activate service 'org.freedesktop.secrets':
    timed out (service_start_timeout=120000ms)'.
  • 1: http://openbracket.ca/untitled/
  • 2: https://askubuntu.com/questions/1256345/cant-connect-to-github-with-vs-code

Of course, none of those two errors was happening with code-wayland and no gnome-keyring package was needed.

hedgepigdaniel commented on 2022-04-15 01:16 (UTC) (edited on 2022-04-15 01:34 (UTC) by hedgepigdaniel)

PSA: there is no point using this package.

Instead, you can use the combination of:

--ozone-platform=wayland
# Any other electron/chromium flags

As the electron version updates, you need to change the file name electron17-flags.conf to suit.

hedgepigdaniel commented on 2022-04-15 01:06 (UTC)

@0BAD-C0DE thanks, fixed.

0BAD-C0DE commented on 2022-04-14 12:27 (UTC) (edited on 2022-04-14 12:28 (UTC) by 0BAD-C0DE)

Error ahead!

:: Downloading PKGBUILDs...
 PKGBUILDs up to date
fetching devel info...
==> Making package: code-wayland 1.66.2-1 (gio 14 apr 2022, 14:25:26)
==> Retrieving sources...
  -> Updating code-wayland git repo...
Fetching origin
  -> Found code.js
  -> Found code.sh
  -> Found 0001-patch-product.json-to-enable-all-extensions.patch
==> Validating source files with sha512sums...
    code-wayland ... Skipped
    code.js ... Passed
    code.sh ... FAILED
    0001-patch-product.json-to-enable-all-extensions.patch ... Passed
==> ERROR: One or more files did not pass the validity check!
error: failed to download sources for 'code-wayland-1.66.2-1': 
error: packages failed to build: code-wayland-1.66.2-1

dedguy21 commented on 2022-01-22 09:53 (UTC)

Error:

<--- JS stacktrace --->

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
 1: 0x5595315d01b9 node::Abort() [gulp vscode-linux-x64-min]
 2: 0x55953150de4a node::FatalError(char const*, char const*) [gulp vscode-linux-x64-min]
 3: 0x559531745b52 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [gulp vscode-linux-x64-min]
 4: 0x559531745e8b v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [gulp vscode-linux-x64-min]
 5: 0x55953192c136  [gulp vscode-linux-x64-min]
 6: 0x559531914fee v8::internal::Heap::RecomputeLimits(v8::internal::GarbageCollector) [gulp vscode-linux-x64-min]
 7: 0x55953191b4c0 v8::internal::Heap::PerformGarbageCollection(v8::internal::GarbageCollector, v8::GCCallbackFlags) [gulp vscode-linux-x64-min]
 8: 0x55953191be03 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [gulp vscode-linux-x64-min]
 9: 0x55953191fb9e v8::internal::Heap::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [gulp vscode-linux-x64-min]
10: 0x5595318e3555 v8::internal::Factory::NewFillerObject(int, bool, v8::internal::AllocationType, v8::internal::AllocationOrigin) [gulp vscode-linux-x64-min]
11: 0x559531c318a5 v8::internal::Runtime_AllocateInYoungGeneration(int, unsigned long*, v8::internal::Isolate*) [gulp vscode-linux-x64-min]
12: 0x559532325e39  [gulp vscode-linux-x64-min]

/home/air/.cache/yay/code-wayland/PKGBUILD: line 99: 21101 Aborted (core dumped) gulp vscode-linux-$_vscode_arch-min ==> ERROR: A failure occurred in build().

dedguy21 commented on 2022-01-22 09:44 (UTC)

So has anyone successfully compiled without errors?

I still can't, with a 16GB AMD Znver2 16 core laptop?

What needs to be done?

0BAD-C0DE commented on 2021-12-24 08:12 (UTC) (edited on 2021-12-24 08:14 (UTC) by 0BAD-C0DE)

internal/fs/utils.js:307
    throw err;
    ^

Error: EACCES: permission denied, open '/usr/lib/code-wayland/out/cli.js'
    at Object.openSync (fs.js:476:3)
    at Object.func [as openSync] (electron/js2c/asar_bundle.js:5:1846)
    at Object.readFileSync (fs.js:377:35)
    at Object.e.readFileSync (electron/js2c/asar_bundle.js:5:8872)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1106:18)
    at Module.load (internal/modules/cjs/loader.js:935:32)
    at Module._load (internal/modules/cjs/loader.js:776:14)
    at Function.f._load (electron/js2c/asar_bundle.js:5:12913)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
    at internal/main/run_main_module.js:17:47 {
  errno: -13,
  syscall: 'open',
  code: 'EACCES',
  path: '/usr/lib/code-wayland/out/cli.js'
}

Now what?