Package Details: logseq-desktop 0.10.9-2

Git Clone URL: https://aur.archlinux.org/logseq-desktop.git (read-only, click to copy)
Package Base: logseq-desktop
Description: Privacy-first, open-source platform for knowledge sharing and management
Upstream URL: https://github.com/logseq/logseq
Licenses: AGPL-3.0-or-later
Submitter: xuanwo
Maintainer: xiota
Last Packager: xiota
Votes: 28
Popularity: 1.50
First Submitted: 2021-03-28 16:28 (UTC)
Last Updated: 2024-11-01 02:49 (UTC)

Latest Comments

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

LuciferianInk commented on 2022-08-17 02:51 (UTC)

@xuanwo,

I'm sorry, I was mistaken.

I'm not sure what's different about logseq-desktop or logseq-desktop-bin, but its like hardware acceleration is completely broken. Graph view takes 30+ seconds to render, at like 1 FPS. It's very laggy. (GTX 1070, proprietary driver)

If I build from source, and use the AppImage - it works great. So, I'll just keep doing that for now.

Thanks!

xuanwo commented on 2022-08-17 02:25 (UTC)

Hi, @LuciferianInk

Please modify the build.patch customization appropriately.

What customization do you expect to see in build.patch?

Electron 17 has awful performance compared to 19, at least for me (graph view is completely unusable).

In older versions, we patch the electron version during build.

https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=logseq-desktop#n27

Now, we have removed this patch and use upstream's version directly.

LuciferianInk commented on 2022-08-17 02:12 (UTC)

Logseq 0.8.1 has officially updated Electron to version 19. Please modify the build.patch customization appropriately. Electron 17 has awful performance compared to 19, at least for me (graph view is completely unusable). Thanks!

pychuang commented on 2022-08-09 21:25 (UTC)

@Dieter_be It should be working now.

Dieter_be commented on 2022-07-30 07:58 (UTC)

Hi. I get this error while trying to install the package with yay:

==> WARNING: Using existing $srcdir/ tree
==> Starting build()...
yarn run v1.22.19
$ clojure -M:cljs release app publishing electron
[:app] Compiling ...
------ WARNING #1 -  -----------------------------------------------------------
 Resource: node_modules/codemirror/mode/forth/forth.js:26
 String continuations are not recommended. See https://google.github.io/styleguide/jsguide.html#features-strings-no-line-continuations
--------------------------------------------------------------------------------
nil
------ WARNING #1 -  -----------------------------------------------------------
 Resource: node_modules/fuse_DOT_js/dist/fuse.common.js:2
 constant module$node_modules$fuse_DOT_js$dist$fuse_common assigned a value more than once.
Original definition at externs.shadow.js:41
--------------------------------------------------------------------------------
nil
[:app] Build completed. (1180 files, 1010 compiled, 0 warnings, 64.04s)
[:publishing] Compiling ...
------ WARNING #1 -  -----------------------------------------------------------
 Resource: node_modules/codemirror/mode/forth/forth.js:26
 String continuations are not recommended. See https://google.github.io/styleguide/jsguide.html#features-strings-no-line-continuations
--------------------------------------------------------------------------------
nil
------ WARNING #1 -  -----------------------------------------------------------
 Resource: node_modules/fuse_DOT_js/dist/fuse.common.js:2
 constant module$node_modules$fuse_DOT_js$dist$fuse_common assigned a value more than once.
Original definition at externs.shadow.js:40
--------------------------------------------------------------------------------
nil
[:publishing] Build completed. (1175 files, 1005 compiled, 0 warnings, 48.87s)
[:electron] Compiling ...
------ WARNING #1 -  -----------------------------------------------------------
 Resource: electron/utils.js:23:24
 variable readdir is undeclared
--------------------------------------------------------------------------------
------ WARNING #2 -  -----------------------------------------------------------
 Resource: electron/utils.js:43:28
 variable lstat is undeclared
--------------------------------------------------------------------------------
nil
[:electron] Build completed. (109 files, 42 compiled, 0 warnings, 5.85s)
Done in 128.07s.
yarn run v1.22.19
$ /home/dieter/.cache/yay/logseq-desktop/src/logseq-0.7.9/static/node_modules/.bin/electron-forge package
✔ Checking your system
⠹ Preparing to Package Application for arch: x64WARNING: Found 'electron' but not as a devDependency, pruning anyway
✔ Preparing to Package Application for arch: x64
⠹ Preparing native dependencies: 1 / 2gyp: name 'openssl_fips' is not defined while evaluating condition 'openssl_fips != ""' in binding.gyp while trying to load binding.gyp
✖ Preparing native dependencies: 1 / 2

An unhandled error has occurred inside Forge:
node-gyp failed to rebuild '/tmp/electron-packager/linux-x64/Logseq-linux-x64/resources/app/node_modules/electron-deeplink'.
For more information, rerun with the DEBUG environment variable set to "electron-rebuild".

Error: `gyp` failed with exit code: 1


Error: node-gyp failed to rebuild '/tmp/electron-packager/linux-x64/Logseq-linux-x64/resources/app/node_modules/electron-deeplink'.
For more information, rerun with the DEBUG environment variable set to "electron-rebuild".

Error: `gyp` failed with exit code: 1


    at NodeGyp.rebuildModule (/home/dieter/.cache/yay/logseq-desktop/src/logseq-0.7.9/static/node_modules/@electron-forge/core/node_modules/electron-rebuild/lib/src/module-type/node-gyp.js:117:19)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async ModuleRebuilder.rebuildNodeGypModule (/home/dieter/.cache/yay/logseq-desktop/src/logseq-0.7.9/static/node_modules/@electron-forge/core/node_modules/electron-rebuild/lib/src/module-rebuilder.js:98:9)
    at async ModuleRebuilder.rebuild (/home/dieter/.cache/yay/logseq-desktop/src/logseq-0.7.9/static/node_modules/@electron-forge/core/node_modules/electron-rebuild/lib/src/module-rebuilder.js:128:14)
    at async Rebuilder.rebuildModuleAt (/home/dieter/.cache/yay/logseq-desktop/src/logseq-0.7.9/static/node_modules/@electron-forge/core/node_modules/electron-rebuild/lib/src/rebuild.js:149:13)
    at async Rebuilder.rebuild (/home/dieter/.cache/yay/logseq-desktop/src/logseq-0.7.9/static/node_modules/@electron-forge/core/node_modules/electron-rebuild/lib/src/rebuild.js:112:17)
    at async /home/dieter/.cache/yay/logseq-desktop/src/logseq-0.7.9/static/node_modules/@electron-forge/core/dist/util/rebuild.js:30:9
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...

jzacsh commented on 2022-06-03 23:53 (UTC) (edited on 2022-06-03 23:54 (UTC) by jzacsh)

2022-06-01 pkg update seems to fail for me with:

error /home/me/.cache/yay/logseq-desktop/src/logseq-0.7.1/node_modules/playwright: Command failed.
Exit code: 1
Command: node install.js
Arguments:
Directory: /home/me/.cache/yay/logseq-desktop/src/logseq-0.7.1/node_modules/playwright
Output:
/home/me/.cache/yay/logseq-desktop/src/logseq-0.7.1/node_modules/playwright/install.js:1



SyntaxError: Invalid or unexpected token
    at Object.compileFunction (node:vm:352:18)
    at wrapSafe (node:internal/modules/cjs/loader:1033:15)
    at Module._compile (node:internal/modules/cjs/loader:1069:27)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)

shinanqu commented on 2022-05-06 19:58 (UTC)

@ddlsak Worked perfectly, you are my hero of the week. Thank you very much!

ddlsak commented on 2022-04-29 06:09 (UTC)

@shinanqu I had the same problem. It was resolved by

replacing nodejs with nodejs-lts-gallium.

See this comment.

Maybe nvm might be a possible solution to allow people to have latest nodejs installed while also satisfying the build dependencies?

shinanqu commented on 2022-04-27 13:19 (UTC) (edited on 2022-04-27 13:21 (UTC) by shinanqu)

Sadly the newest version 0.6.6-1 always leads to an error message when updating.

$ /var/tmp/pamac-build-admin/logseq-desktop/src/logseq-0.6.6/static/node_modules/.bin/electron-forge package
✔ Checking your system
⠦ Preparing to Package Application for arch: x64WARNING: Found 'electron' but not as a devDependency, pruning anyway
✔ Preparing to Package Application for arch: x64
⠧ Preparing native dependencies: 1 / 2gyp: name 'openssl_fips' is not defined while evaluating condition 'openssl_fips != ""' in binding.gyp while trying to load binding.gyp
✖ Preparing native dependencies: 1 / 2

An unhandled error has occurred inside Forge:
node-gyp failed to rebuild '/tmp/electron-packager/linux-x64/Logseq-linux-x64/resources/app/node_modules/electron-deeplink'.
For more information, rerun with the DEBUG environment variable set to "electron-rebuild".

Error: `gyp` failed with exit code: 1


Error: node-gyp failed to rebuild '/tmp/electron-packager/linux-x64/Logseq-linux-x64/resources/app/node_modules/electron-deeplink'.
For more information, rerun with the DEBUG environment variable set to "electron-rebuild".

Error: `gyp` failed with exit code: 1


at NodeGyp.rebuildModule (/var/tmp/pamac-build-admin/logseq-desktop/src/logseq-0.6.6/static/node_modules/@electron-forge/core/node_modules/electron-rebuild/src/module-type/node-gyp.ts:129:13)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at ModuleRebuilder.rebuildNodeGypModule (/var/tmp/pamac-build-admin/logseq-desktop/src/logseq-0.6.6/static/node_modules/@electron-forge/core/node_modules/electron-rebuild/src/module-rebuilder.ts:93:5)
at ModuleRebuilder.rebuild (/var/tmp/pamac-build-admin/logseq-desktop/src/logseq-0.6.6/static/node_modules/@electron-forge/core/node_modules/electron-rebuild/src/module-rebuilder.ts:129:8)
at Rebuilder.rebuildModuleAt (/var/tmp/pamac-build-admin/logseq-desktop/src/logseq-0.6.6/static/node_modules/@electron-forge/core/node_modules/electron-rebuild/src/rebuild.ts:203:9)
at Rebuilder.rebuild (/var/tmp/pamac-build-admin/logseq-desktop/src/logseq-0.6.6/static/node_modules/@electron-forge/core/node_modules/electron-rebuild/src/rebuild.ts:158:9)
at /var/tmp/pamac-build-admin/logseq-desktop/src/logseq-0.6.6/static/node_modules/@electron-forge/core/src/util/rebuild.ts:38:5
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...

pychuang commented on 2022-01-11 14:09 (UTC) (edited on 2022-01-11 14:12 (UTC) by pychuang)

@ojford It's from the package postcss (one of Logseq's dependencies): https://github.com/postcss/postcss-safe-parser/issues/29

Logseq upstream does not mention anything related to this issue. The upstream dev team probably uses an older nodejs, I guess? I think Logseq dev team has to either bump the postcss version or limit the supported nodejs version to 16.

However, nodejs is just a build time dependency, not a runtime dependency. Though annoying, you can switch back to nodejs 17 after installing logseq-desktop...