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: 4
Popularity: 0.108359
First Submitted: 2021-01-20 12:31 (UTC)
Last Updated: 2022-04-15 01:03 (UTC)

Latest Comments

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?

darkbasic commented on 2021-11-17 11:18 (UTC)

[12:07:25] Starting compilation...
[12:10:43] Finished compilation with 0 errors after 197256 ms
[12:10:43] Finished compile-build after 201357 ms
[12:10:43] Starting clean-extensions-build ...
[12:10:43] Finished clean-extensions-build after 114 ms
[12:10:43] Starting bundle-extensions-build ...

<--- Last few GCs --->

[9091:0x5ceb6e0]   243985 ms: Mark-sweep 2039.4 (2058.4) -> 2032.7 (2058.6) MB, 1551.8 / 0.0 ms  (average mu = 0.138, current mu = 0.017) allocation failure scavenge might not succeed
[9091:0x5ceb6e0]   245616 ms: Mark-sweep 2036.9 (2066.8) -> 2034.3 (2065.1) MB, 1590.3 / 0.1 ms  (average mu = 0.083, current mu = 0.025) allocation failure scavenge might not succeed


<--- JS stacktrace --->

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
 1: 0xa389b0 node::Abort() [gulp vscode-linux-x64-min]
 2: 0x96e0af node::FatalError(char const*, char const*) [gulp vscode-linux-x64-min]
 3: 0xbb7a4e v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [gulp vscode-linux-x64-min]
 4: 0xbb7dc7 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [gulp vscode-linux-x64-min]
 5: 0xd73fd5  [gulp vscode-linux-x64-min]
 6: 0xd74b5f  [gulp vscode-linux-x64-min]
 7: 0xd8299b v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [gulp vscode-linux-x64-min]
 8: 0xd8655c v8::internal::Heap::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [gulp vscode-linux-x64-min]
 9: 0xd54c3b v8::internal::Factory::NewFillerObject(int, bool, v8::internal::AllocationType, v8::internal::AllocationOrigin) [gulp vscode-linux-x64-min]
10: 0x109d21f v8::internal::Runtime_AllocateInYoungGeneration(int, unsigned long*, v8::internal::Isolate*) [gulp vscode-linux-x64-min]
11: 0x1446379  [gulp vscode-linux-x64-min]
/home/niko/.cache/yay/code-wayland/PKGBUILD: riga 99:  9091 Annullato               (core dump creato) gulp vscode-linux-$_vscode_arch-min

with 8GB of ram

progel commented on 2021-11-16 19:27 (UTC) (edited on 2021-11-18 08:00 (UTC) by progel)


 <--- JS stacktrace --->

FATAL ERROR: MarkCompactCollector: young object promotion failed Allocation failed - JavaScript heap out of memory
 1: 0x55d3f54b45b1 node::Abort() [gulp vscode-linux-x64-min]
 2: 0x55d3f53dbb81 node::FatalError(char const*, char const*) [gulp vscode-linux-x64-min]
 3: 0x55d3f563f362 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [gulp vscode-linux-x64-min]
 4: 0x55d3f563f5c8 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [gulp vscode-linux-x64-min]
 5: 0x55d3f57f8846  [gulp vscode-linux-x64-min]
 6: 0x55d3f5827b57 v8::internal::EvacuateNewSpaceVisitor::Visit(v8::internal::HeapObject, int) [gulp vscode-linux-x64-min]
 7: 0x55d3f58332fe void v8::internal::LiveObjectVisitor::VisitBlackObjectsNoFail<v8::internal::EvacuateNewSpaceVisitor, v8::internal::MajorNonAtomicMarkingState>(v8::internal::MemoryChunk*, v8::internal::MajorNonAtomicMarkingState*, v8::internal::EvacuateNewSpaceVisitor*, v8::internal::LiveObjectVisitor::IterationMode) [gulp vscode-linux-x64-min]
 8: 0x55d3f58523d0 v8::internal::FullEvacuator::RawEvacuatePage(v8::internal::MemoryChunk*, long*) [gulp vscode-linux-x64-min]
 9: 0x55d3f58247a7 v8::internal::Evacuator::EvacuatePage(v8::internal::MemoryChunk*) [gulp vscode-linux-x64-min]
10: 0x55d3f5824ac7 v8::internal::PageEvacuationTask::RunInParallel(v8::internal::ItemParallelJob::Task::Runner) [gulp vscode-linux-x64-min]
11: 0x55d3f5814b19 v8::internal::ItemParallelJob::Run() [gulp vscode-linux-x64-min]
12: 0x55d3f5830c82 void v8::internal::MarkCompactCollectorBase::CreateAndExecuteEvacuationTasks<v8::internal::FullEvacuator, v8::internal::MarkCompactCollector>(v8::internal::MarkCompactCollector*, v8::internal::ItemParallelJob*, v8::internal::MigrationObserver*, long) [gulp vscode-linux-x64-min]
13: 0x55d3f5850fa3 v8::internal::MarkCompactCollector::EvacuatePagesInParallel() [gulp vscode-linux-x64-min]
14: 0x55d3f585117a v8::internal::MarkCompactCollector::Evacuate() [gulp vscode-linux-x64-min]
15: 0x55d3f5851ce3 v8::internal::MarkCompactCollector::CollectGarbage() [gulp vscode-linux-x64-min]
16: 0x55d3f5807c87 v8::internal::Heap::MarkCompact() [gulp vscode-linux-x64-min]
17: 0x55d3f5808568 v8::internal::Heap::PerformGarbageCollection(v8::internal::GarbageCollector, v8::GCCallbackFlags) [gulp vscode-linux-x64-min]
18: 0x55d3f5808dbe v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [gulp vscode-linux-x64-min]
19: 0x55d3f580c61d v8::internal::Heap::AllocateRawWithLightRetrySlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [gulp vscode-linux-x64-min]
20: 0x55d3f580c685 v8::internal::Heap::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [gulp vscode-linux-x64-min]
21: 0x55d3f57d2a18 v8::internal::Factory::NewFillerObject(int, bool, v8::internal::AllocationType, v8::internal::AllocationOrigin) [gulp vscode-linux-x64-min]
22: 0x55d3f5b17b8f v8::internal::Runtime_AllocateInYoungGeneration(int, unsigned long*, v8::internal::Isolate*) [gulp vscode-linux-x64-min]
23: 0x55d3f5e799f9  [gulp vscode-linux-x64-min] 

with 16GB of RAM.

zwastik commented on 2021-11-01 05:23 (UTC) (edited on 2021-11-01 05:24 (UTC) by zwastik)

[02:17:03] Bundled extension: ipynb/extension.webpack.config.js...
[02:17:03] Bundled extension: php-language-features/extension.webpack.config.js...
[02:17:08] Bundled extension: microsoft-authentication/extension.webpack.config.js...
/home/oiu7/.cache/pikaur/build/code-wayland/PKGBUILD: line 99: 12158 Killed                  /usr/bin/node $mem_limit /usr/bin/gulp vscode-linux-$_vscode_arch-min

*** NOTE: If the build failed due to running out of file handles (EMFILE),
*** you will need to raise your max open file limit.
*** You can check this for more information on how to increase this limit:
***    https://ro-che.info/articles/2017-03-26-increase-open-files-limit

I increased limit to 200000 but I still cant build the package

yayowd commented on 2021-05-11 08:34 (UTC) (edited on 2021-05-11 08:49 (UTC) by yayowd)

When I tried to use it, I ran into some problems:
  1. Imagemagick is required to build
  2. When the "~/.config/Code-Wayland/" directory exists, you need to start it twice to open the window
  3. When I open a directory for editing and press Ctrl+Q to exit, and then open code-wayland again, the directory cannot be opened

System: Linux alpsibex 5.11.15-arch1-2 #1 SMP PREEMPT Sat, 17 Apr 2021 00:22:30 +0000 x86_64 GNU/Linux
Desktop: sway version 1.6
code-wayland version: Version: 1.55.2 Submit: 3c4e3df9e89829dce27b7b5c24508306b151f30d Date: 2021-05-11T04:06:50.403Z Electron: 12.0.6 Chrome: 89.0.4389.128 Node.js: 14.16.0 V8: 8.9.255.25-electron.0 OS: Linux x64 5.11.15-arch1-2

hedgepigdaniel commented on 2021-04-22 21:21 (UTC)

good point, I've updated it :)

justinkb commented on 2021-04-22 15:57 (UTC)

upstream is building this with node 14 now (fermium)