Package Details: marktext 0.17.1-1

Git Clone URL: https://aur.archlinux.org/marktext.git (read-only, click to copy)
Package Base: marktext
Description: A simple and elegant open-source markdown editor that focused on speed and usability
Upstream URL: https://marktext.app
Keywords: editor electron markdown note
Licenses: MIT
Submitter: dopsi
Maintainer: alerque
Last Packager: alerque
Votes: 26
Popularity: 0.84
First Submitted: 2018-05-01 08:22 (UTC)
Last Updated: 2022-03-12 19:01 (UTC)

Latest Comments

cubercsl commented on 2022-03-28 16:52 (UTC)

@chrislea it is because the _electronDist is /usr/lib/electron not /usr/bin

In the past /usr/bin/electron is a symlink of /usr/lib/electron/electron but now it is a wrapper. You can check my patch at marktext-git for reference.

chrislea commented on 2022-03-28 16:28 (UTC)

I am also getting a build failure using Node 16.x. I am unsure if this is the bug @jose1711 referenced. He's relevant output:

To ensure your native dependencies are always matched electron version, simply add script `"postinstall": "electron-builder install-app-deps" to your `package.json`
  • writing effective config  file=build/builder-effective-config.yaml
  • rebuilding native dependencies  dependencies=@hfelix/spellchecker@4.1.0, ced@2.0.0, cld@2.7.1, fontmanager-redux@1.1.0, keyboard-layout@2.0.17, keytar@7.9.0, native-keymap@3.2.1 platform=linux arch=x64
  • rebuilding native dependency  name=ced version=2.0.0
  • rebuilding native dependency  name=@hfelix/spellchecker version=4.1.0
  • rebuilding native dependency  name=cld version=2.7.1
  • rebuilding native dependency  name=fontmanager-redux version=1.1.0
  • rebuilding native dependency  name=keyboard-layout version=2.0.17
  • rebuilding native dependency  name=keytar version=7.9.0
  • rebuilding native dependency  name=native-keymap version=3.2.1
  • packaging       platform=linux arch=x64 electron=15.4.2 appOutDir=build/linux-unpacked
  • copying Electron  source=/usr/bin destination=/home/chl/AUR/marktext/src/marktext-0.17.1/build/linux-unpacked
  ⨯ EACCES: permission denied, copyfile '/usr/bin/rscsi' -> '/home/chl/AUR/marktext/src/marktext-0.17.1/build/linux-unpacked/rscsi'  failedTask=build stackTrace=Error: EACCES: permission denied, copyfile '/usr/bin/rscsi' -> '/home/chl/AUR/marktext/src/marktext-0.17.1/build/linux-unpacked/rscsi'
    at processImmediate (node:internal/timers:466:21)
From previous event:
    at walk (/home/chl/AUR/marktext/src/marktext-0.17.1/node_modules/builder-util/src/fs.ts:77:51)
    at unpack (/home/chl/AUR/marktext/src/marktext-0.17.1/node_modules/app-builder-lib/src/electron/ElectronFramework.ts:190:5)
    at LinuxPackager.doPack (/home/chl/AUR/marktext/src/marktext-0.17.1/node_modules/app-builder-lib/src/platformPackager.ts:233:5)
    at LinuxPackager.pack (/home/chl/AUR/marktext/src/marktext-0.17.1/node_modules/app-builder-lib/src/platformPackager.ts:136:5)
    at Packager.doBuild (/home/chl/AUR/marktext/src/marktext-0.17.1/node_modules/app-builder-lib/src/packager.ts:441:9)
    at Object.executeFinally (/home/chl/AUR/marktext/src/marktext-0.17.1/node_modules/builder-util/src/promise.ts:12:14)
    at Packager._build (/home/chl/AUR/marktext/src/marktext-0.17.1/node_modules/app-builder-lib/src/packager.ts:376:31)
    at Packager.build (/home/chl/AUR/marktext/src/marktext-0.17.1/node_modules/app-builder-lib/src/packager.ts:337:12)
    at Object.executeFinally (/home/chl/AUR/marktext/src/marktext-0.17.1/node_modules/builder-util/src/promise.ts:12:14)
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...
╭─chl at luthien in ~/AUR/marktext on master✔ 22-03-28 - 9:26:41
╰─⠠⠵ node -v
v16.14.2

cubercsl commented on 2022-03-28 15:31 (UTC) (edited on 2022-03-28 15:31 (UTC) by cubercsl)

For all of offical electron package, which $_electron becomes electron launch wrapper after this commit.

So the local _electronDist=$(dirname $(realpath $(which $_electron))) can not follow the symlink, and it be should changed.

See my patch at marktext-git for recent commit.

simona commented on 2022-03-25 23:48 (UTC)

gyp ERR! configure error
gyp ERR! stack Error: gyp failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/home/simona/.cache/yay/marktext/src/marktext-0.17.1/node_modules/node-gyp/lib/configure.js:259:16)
gyp ERR! stack at ChildProcess.emit (node:events:527:28)
gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)
gyp ERR! System Linux 5.16.17-1-ck-generic-v3
gyp ERR! command "/usr/bin/node" "/home/simona/.cache/yay/marktext/src/marktext-0.17.1/node_modules/.bin/node-gyp" "rebuild"
gyp ERR! cwd /home/simona/.cache/yay/marktext/src/marktext-0.17.1/node_modules/keytar
gyp ERR! node -v v17.8.0
gyp ERR! node-gyp -v v8.4.1
gyp ERR! not ok
error Command failed with exit code 1.

jose1711 commented on 2022-03-15 23:05 (UTC)

for me the build fails due to missing permissions on multiple files: /usr/bin/rscsi, /usr/bin/readcd, /usr/bin/mount.nfs, /usr/bin/cups (i stopped here). there is a related bug open at https://bugs.archlinux.org/task/66073.

not sure what is the proper way of dealing with this (other than temporarily lifting the permissions of many binaries).

alerque commented on 2021-12-11 20:33 (UTC)

@cuihao This looks like it is a problem with Arch's default nodejs package updating to 17. I'll look at holding this back this build to an LTS release.

cuihao commented on 2021-11-29 15:16 (UTC)

Build failed (tested inside extra-x86_64-build as well): https://fars.ee/ah5C

alerque commented on 2021-06-11 15:53 (UTC)

I don't know why the electron11 dependency I just posted is showing up without a link, it is currently available in [community].

alerque commented on 2021-06-11 14:52 (UTC)

Thanks @WillyPillow, yes that appears to be the case. Here we go again, man I hate Electron! 12 came out as default in Arch repos after I packaged this. I just posted an update that holds it back to 11 until an upstream release that supports 12 comes along.

WillyPillow commented on 2021-06-05 08:31 (UTC)

Currently this seems to only work for me if I replace electron with electron11.

alerque commented on 2021-01-07 19:31 (UTC)

@yochananmarqos Your PKGBULID is significantly different in a number of aspects. I'm not even entirely sure what the point of all the changes is, but I know that namcap is not giving us the same results. You do understand that we're punting and throwing away a large chuck of what would normally be built here and punting to the system electron instead of what would normally be bundled. Hence we don't need all the dependencies that Electron & electron-builder would normally want to see in a build scenario.

yochananmarqos commented on 2021-01-07 17:59 (UTC)

@caleb: Yes, I just ran namcap again just now after building in a clean chroot using my PKGBUILD.

Also fontconfig is listed as a dependency in the electron-builder.yml.

alerque commented on 2021-01-07 13:53 (UTC)

@yochananmarqos I'm not saying you're wrong here, but are you sure you ran namcap on a freshly built package using the current electron dependency? I think the fontconfig dependency is buried inside Electron and is not used directly by this app. After the latest update that uses the [community] electron package again I don't think that dependency should be needed, and running namcap on my build backs me up. Can you confirm — one or the other of us is doing something wrong.

yochananmarqos commented on 2020-12-29 16:31 (UTC)

fontconfig is a missing dependency:

marktext I: Link-level dependence (fontconfig) in file ['usr/lib/libfontconfig.so.1']

marktext I: Depends as namcap sees them: depends=(libsecret fontconfig libxkbfile)

alerque commented on 2020-12-29 12:18 (UTC) (edited on 2020-12-29 12:19 (UTC) by alerque)

Good news everyone. Since the upstream project has finally gotten up to speed with current Electron releases, as of the 0.16.3 release posted about an hour ago this build is back to working with the Arch [community] electron package. It also builds with any current nodejs package so you don't have to downgrade to an old LTS to build either.

If you don't want to build at all, as always the most recent successful build I've run is available in my user repository.

alerque commented on 2020-12-26 10:00 (UTC)

@kipsora Sorry for the confustion there, I did miss something. In the mean time while this package should work now I actually recommend using marktext-git because the upstream project has finally updated to use a real modern Electron (11) which can be supplied by the [community] packages again. This package will not reflet this until the 0.16.3 release, but the Git package already uses it (and that's what I'm actually running, which is why I didn't even notice this was only pretending on the Electron 8 bump).

kipsora commented on 2020-10-29 18:06 (UTC) (edited on 2020-10-29 18:06 (UTC) by kipsora)

Is the current building script corrupted? Well I can install electron8-bin as required but the PKGBUILD still uses electron7 for building stuffs.

alerque commented on 2020-09-25 10:04 (UTC)

@monoid What a fiasco! The electron7 package was dropped from [community] but there is an AUR package eletron7-bin that provides it. You can use that. This is actually available for 8 too and I didn't want to go down the road of using an AUR bin package, but there is less and less options available to us. I preferred the downgrade to 7 over the bin package. Now that our hand is forced I'll bump this to 8 again. People that want to build it can supply that how they want, but currently electron8-bin is the only way I know of.

If anybody submits a working electron8 source package to the [AUR] I'd be happy to build and host it in my package repository.

lambdaclan commented on 2020-09-16 00:50 (UTC)

@caleb

electron7 seems to have been removed from the official repos. Not sure what would be the best course of action, maybe adding electron7 to AUR and using that instead?

Not much work has been done towards electron9 support just yet https://github.com/marktext/marktext/issues/2128

yochananmarqos commented on 2020-09-15 21:32 (UTC)

PKGBUILD using NVM to set the Node.js version during build instead of replacing nodejs with nodejs-lts-erbium on one's system.

NicoHood commented on 2020-07-11 08:44 (UTC)

I still have a build error in a clean chroot:

 OKAY  take it away `electron-builder`

yarn run v1.22.4
$ /build/marktext/src/marktext-0.16.2/node_modules/.bin/electron-builder --linux --x64 --dir dist
  • electron-builder  version=22.7.0 os=5.7.7-arch1-1
  • loaded configuration  file=/build/marktext/src/marktext-0.16.2/electron-builder.yml
  • electron-rebuild not required if you use electron-builder, please consider to remove excess dependency from devDependencies

To ensure your native dependencies are always matched electron version, simply add script `"postinstall": "electron-builder install-app-deps" to your `package.json`
  • rebuilding native dependencies  dependencies=@hfelix/spellchecker@4.0.12-rc.2, ced@1.0.0, cld@2.7.0, fontmanager-redux@0.4.0, keyboard-layout@2.0.16, keytar@6.0.1 platform=linux arch=x64
  • install prebuilt binary  name=keytar version=6.0.1 platform=linux arch=x64
  • build native dependency from sources  name=keytar
                                          version=6.0.1
                                          platform=linux
                                          arch=x64
                                          reason=prebuild-install failed with error (run with env DEBUG=electron-builder to get more information)
                                          error=/build/marktext/src/marktext-0.16.2/node_modules/semver/semver.js:323
        throw new TypeError('Invalid Version: ' + version)
        ^

    TypeError: Invalid Version: 
        at new SemVer (/build/marktext/src/marktext-0.16.2/node_modules/semver/semver.js:323:11)
        at compare (/build/marktext/src/marktext-0.16.2/node_modules/semver/semver.js:614:39)
        at Function.lte (/build/marktext/src/marktext-0.16.2/node_modules/semver/semver.js:668:10)
        at getAbi (/build/marktext/src/marktext-0.16.2/node_modules/node-abi/index.js:25:16)
        at module.exports (/build/marktext/src/marktext-0.16.2/node_modules/prebuild-install/rc.js:73:57)
        at Object.<anonymous> (/build/marktext/src/marktext-0.16.2/node_modules/prebuild-install/bin.js:9:25)
        at Module._compile (internal/modules/cjs/loader.js:1138:30)
        at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
        at Module.load (internal/modules/cjs/loader.js:986:32)
        at Function.Module._load (internal/modules/cjs/loader.js:879:14)

  • rebuilding native dependency  name=ced version=1.0.0
  • rebuilding native dependency  name=@hfelix/spellchecker version=4.0.12-rc.2
  • rebuilding native dependency  name=fontmanager-redux version=0.4.0
  • rebuilding native dependency  name=cld version=2.7.0
  • rebuilding native dependency  name=keytar version=6.0.1
  • rebuilding native dependency  name=keyboard-layout version=2.0.16
  ⨯ cannot execute  cause=exit status 1
                    out=$ node-gyp rebuild
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

                    errorOut=gyp info it worked if it ends with ok
    gyp info using node-gyp@6.1.0
    gyp info using node@12.17.0 | linux | x64
    gyp info find Python using Python version 3.8.3 found at "/usr/bin/python3"
    gyp http GET https://electronjs.org/headers/v12.17.0/node-v12.17.0-headers.tar.gz
    gyp http 403 https://electronjs.org/headers/v12.17.0/node-v12.17.0-headers.tar.gz
    gyp WARN install got an error, rolling back install
    gyp ERR! configure error 
    gyp ERR! stack Error: 403 response downloading https://electronjs.org/headers/v12.17.0/node-v12.17.0-headers.tar.gz
    gyp ERR! stack     at Request.<anonymous> (/build/marktext/src/marktext-0.16.2/node_modules/node-gyp/lib/install.js:188:14)
    gyp ERR! stack     at Request.emit (events.js:327:22)
    gyp ERR! stack     at Request.onRequestResponse (/build/marktext/src/marktext-0.16.2/node_modules/request/request.js:1059:10)
    gyp ERR! stack     at ClientRequest.emit (events.js:315:20)
    gyp ERR! stack     at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:596:27)
    gyp ERR! stack     at HTTPParser.parserOnHeadersComplete (_http_common.js:119:17)
    gyp ERR! stack     at TLSSocket.socketOnData (_http_client.js:469:22)
    gyp ERR! stack     at TLSSocket.emit (events.js:315:20)
    gyp ERR! stack     at addChunk (_stream_readable.js:295:12)
    gyp ERR! stack     at readableAddChunk (_stream_readable.js:271:9)
    gyp ERR! System Linux 5.7.7-arch1-1
    gyp ERR! command "/usr/bin/node" "/build/marktext/src/marktext-0.16.2/node_modules/.bin/node-gyp" "rebuild"
    gyp ERR! cwd /build/marktext/src/marktext-0.16.2/node_modules/cld
    gyp ERR! node -v v12.17.0
    gyp ERR! node-gyp -v v6.1.0
    gyp ERR! not ok 
    error Command failed with exit code 1.

                    command=/usr/bin/node /usr/lib/node_modules/yarn/bin/yarn.js run install
                    workingDir=/build/marktext/src/marktext-0.16.2/node_modules/cld
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/nicohood/build

alerque commented on 2020-06-06 06:04 (UTC)

@monoid Having a -bin package definitely makes sense and will be what some people want to use for the least hassle approach. The -bin package should be kept up to date as well for those that want it, but the source package being a bit more Arch idiomatic is what some people expect and want. Yes it's some trouble, but in the end some people prefer that outcome.

lambdaclan commented on 2020-06-06 02:36 (UTC)

@caleb

Thanks for the explanation. Seems like being always on the bleeding edge is a maintenance nightmare for electron packages. Does it make sense to simply provide an updated bin package? There is one already but does not seem to be getting updates anymore.

Marktext provides an appimage that can be used at the basis for a -bin package.

I know that bin packages is not a recommended approach but it seems to be the easiest way to avoid this dependency issue.

alerque commented on 2020-06-04 22:40 (UTC)

Electron 9 has caused problems for hundreds of packages in the AUR, and Arch dropped all v8 packaging. I'm going to be downgrading some packages to 7 and maybe adding an AUR package for 8 to get us by until upstream projects like this one support 9 properly. Sorry for the whole fiasco --- in this case following Arch guidelines should have but did not save us from the "AUR is unsupported" issue.

lambdaclan commented on 2020-06-02 09:21 (UTC)

The new electron version 9.0.1 is causing an error during build also existing installations fail to launch with a Javascript exception.

I did try removing the package and doing a clean build but the issue persists.

Here is the stacktrace:

An unhandled error occurred inside electron-rebuild
Could not detect abi for version 9.0.1 and runtime electron.  Updating "node-abi" might help solve this issue if it is a new release of electron

Error: Could not detect abi for version 9.0.1 and runtime electron.  Updating "node-abi" might help solve this issue if it is a new release of electron
    at Object.getAbi (/home/clodius/.cache/yay/marktext/src/marktext-0.16.1/node_modules/node-abi/index.js:30:9)
    at new Rebuilder (/home/clodius/.cache/yay/marktext/src/marktext-0.16.1/node_modules/electron-rebuild/lib/src/rebuild.js:126:28)
    at rebuildWithOptions (/home/clodius/.cache/yay/marktext/src/marktext-0.16.1/node_modules/electron-rebuild/lib/src/rebuild.js:404:23)
    at Object.doRebuild [as rebuild] (/home/clodius/.cache/yay/marktext/src/marktext-0.16.1/node_modules/electron-rebuild/lib/src/rebuild.js:427:16)
    at /home/clodius/.cache/yay/marktext/src/marktext-0.16.1/node_modules/electron-rebuild/lib/src/cli.js:120:33
    at Generator.next (<anonymous>)
    at fulfilled (/home/clodius/.cache/yay/marktext/src/marktext-0.16.1/node_modules/electron-rebuild/lib/src/cli.js:6:58)
error Command failed with exit code 255.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
==> ERROR: A failure occurred in build().

This seems to be an upstream problem since electron 9 is still not supported: https://github.com/marktext/marktext/issues/2128

I am posting here in case there is a workaround or if the PKGBUILD needs to be updated when the time comes.

danisztls commented on 2020-04-24 04:54 (UTC)

@caleb My pleasure.

alerque commented on 2020-04-23 12:53 (UTC)

@danielsouzat Thanks for tracking that down, I'll make that a makedepends in the next pkgbuild coming up shortly.

danisztls commented on 2020-04-21 12:23 (UTC)

I found the problem. marktext expects to be built with node 10, building fails with node 13 but node 12 (nodejs-lts-erbium) works like a charm.

danisztls commented on 2020-04-21 11:42 (UTC) (edited on 2020-04-21 11:45 (UTC) by danisztls)

@caleb

Git: 3a6182b

yarn run v1.22.4
$ node .electron-vue/build.js && electron-builder --dir

| building main process
| building renderer process

ERROR  failed to build main process

Hash: 544d2efeccc8d499b9e6
Version: webpack 4.42.0
Time: 1859ms
Built at: 21/04/2020 08:40:22
      Asset      Size  Chunks         Chunk Names
    main.js  3.76 KiB       0         main
main.js.map   1.6 KiB       0  [dev]  main
Entrypoint main = main.js main.js.map
[0] ./src/main/index.js 2.8 KiB {0} [built] [failed] [1 error]

ERROR in ./src/main/index.js
Module build failed (from ./node_modules/babel-loader/lib/index.js):
Error: /home/daniel/AUR/marktext/src/marktext-0.16.1/babel.config.js: Error while loading config - Cannot find module '@babel/compat-data/corejs3-shipped-proposals'

Require stack:
- /home/daniel/AUR/marktext/src/marktext-0.16.1/node_modules/@babel/preset-env/lib/polyfills/corejs3/usage-plugin.js
- /home/daniel/AUR/marktext/src/marktext-0.16.1/node_modules/@babel/preset-env/lib/index.js
- /home/daniel/AUR/marktext/src/marktext-0.16.1/babel.config.js
- /home/daniel/AUR/marktext/src/marktext-0.16.1/node_modules/@babel/core/lib/config/files/module-types.js
- /home/daniel/AUR/marktext/src/marktext-0.16.1/node_modules/@babel/core/lib/config/files/configuration.js
- /home/daniel/AUR/marktext/src/marktext-0.16.1/node_modules/@babel/core/lib/config/files/index.js
- /home/daniel/AUR/marktext/src/marktext-0.16.1/node_modules/@babel/core/lib/index.js
- /home/daniel/AUR/marktext/src/marktext-0.16.1/node_modules/babel-loader/lib/index.js
- /home/daniel/AUR/marktext/src/marktext-0.16.1/node_modules/loader-runner/lib/loadLoader.js
- /home/daniel/AUR/marktext/src/marktext-0.16.1/node_modules/loader-runner/lib/LoaderRunner.js
- /home/daniel/AUR/marktext/src/marktext-0.16.1/node_modules/webpack/lib/NormalModule.js
- /home/daniel/AUR/marktext/src/marktext-0.16.1/node_modules/webpack/lib/NormalModuleFactory.js
- /home/daniel/AUR/marktext/src/marktext-0.16.1/node_modules/webpack/lib/Compiler.js
- /home/daniel/AUR/marktext/src/marktext-0.16.1/node_modules/webpack/lib/webpack.js
- /home/daniel/AUR/marktext/src/marktext-0.16.1/.electron-vue/build.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:952:15)
    at Function.Module._load (internal/modules/cjs/loader.js:835:27)
    at Module.require (internal/modules/cjs/loader.js:1012:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at Object.<anonymous> (/home/daniel/AUR/marktext/src/marktext-0.16.1/node_modules/@babel/preset-env/lib/polyfills/corejs3/usage-plugin.js:10:55)
    at Module._compile (internal/modules/cjs/loader.js:1123:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1143:10)
    at Module.load (internal/modules/cjs/loader.js:972:32)
    at Function.Module._load (internal/modules/cjs/loader.js:872:14)
    at Module.require (internal/modules/cjs/loader.js:1012:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at Object.<anonymous> (/home/daniel/AUR/marktext/src/marktext-0.16.1/node_modules/@babel/preset-env/lib/index.js:29:44)
    at Module._compile (internal/modules/cjs/loader.js:1123:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1143:10)
    at Module.load (internal/modules/cjs/loader.js:972:32)
    at Function.Module._load (internal/modules/cjs/loader.js:872:14)

...

alerque commented on 2020-04-21 11:21 (UTC)

@danielsouzat Lets see output from git describe --always --dirty=* and then from makepkg -C.

danisztls commented on 2020-04-21 11:08 (UTC)

@caleb I'm having the same issue as @halcek. Tested by cloning repo and running makepkg myself.

alerque commented on 2020-04-18 18:31 (UTC)

@halcek I don't think you're building from the latest commit in this package repository. Your error message shows you are building with yay and that somehow yarn is using your home directory for it's package cache. Anything outside of the build directory is explicitly against the Arch packaging guidelines, and that's something I fixed recently by specifying a cache dir inside the $srcdir. I suggest you do a clean build. You should test by cloning this repo and running makepkg yourself, I think yay might be tripping you up by using some older cached stuff in your home directory.

halcek commented on 2020-04-18 10:35 (UTC) (edited on 2020-04-18 10:38 (UTC) by halcek)

Currently, there's the following build error:

ERROR in ./src/main/index.js
    Module build failed (from ./node_modules/babel-loader/lib/index.js):
    Error: /home/mareklachbc/.cache/yay/marktext/src/marktext-0.16.1/babel.config.js: Error while loading config - Cannot find module '@babel/compat-data/corejs3-shipped-proposals'
    Require stack:
    - /home/mareklachbc/.cache/yay/marktext/src/marktext-0.16.1/node_modules/@babel/preset-env/lib/polyfills/corejs3/usage-plugin.js
    - /home/mareklachbc/.cache/yay/marktext/src/marktext-0.16.1/node_modules/@babel/preset-env/lib/index.js
    - /home/mareklachbc/.cache/yay/marktext/src/marktext-0.16.1/babel.config.js
    - /home/mareklachbc/.cache/yay/marktext/src/marktext-0.16.1/node_modules/@babel/core/lib/config/files/module-types.js
    - /home/mareklachbc/.cache/yay/marktext/src/marktext-0.16.1/node_modules/@babel/core/lib/config/files/configuration.js
    - /home/mareklachbc/.cache/yay/marktext/src/marktext-0.16.1/node_modules/@babel/core/lib/config/files/index.js
    - /home/mareklachbc/.cache/yay/marktext/src/marktext-0.16.1/node_modules/@babel/core/lib/index.js
    - /home/mareklachbc/.cache/yay/marktext/src/marktext-0.16.1/node_modules/babel-loader/lib/index.js
    - /home/mareklachbc/.cache/yay/marktext/src/marktext-0.16.1/node_modules/loader-runner/lib/loadLoader.js
    - /home/mareklachbc/.cache/yay/marktext/src/marktext-0.16.1/node_modules/loader-runner/lib/LoaderRunner.js
    - /home/mareklachbc/.cache/yay/marktext/src/marktext-0.16.1/node_modules/webpack/lib/NormalModule.js
    - /home/mareklachbc/.cache/yay/marktext/src/marktext-0.16.1/node_modules/webpack/lib/NormalModuleFactory.js
    - /home/mareklachbc/.cache/yay/marktext/src/marktext-0.16.1/node_modules/webpack/lib/Compiler.js
    - /home/mareklachbc/.cache/yay/marktext/src/marktext-0.16.1/node_modules/webpack/lib/webpack.js
    - /home/mareklachbc/.cache/yay/marktext/src/marktext-0.16.1/.electron-vue/build.js
        at Function.Module._resolveFilename (internal/modules/cjs/loader.js:952:15)
        at Function.Module._load (internal/modules/cjs/loader.js:835:27)
        at Module.require (internal/modules/cjs/loader.js:1012:19)
        at require (internal/modules/cjs/helpers.js:72:18)
        at Object.<anonymous> (/home/mareklachbc/.cache/yay/marktext/src/marktext-0.16.1/node_modules/@babel/preset-env/lib/polyfills/corejs3/usage-plugin.js:10:55)
        at Module._compile (internal/modules/cjs/loader.js:1123:30)
        at Object.Module._extensions..js (internal/modules/cjs/loader.js:1143:10)
        at Module.load (internal/modules/cjs/loader.js:972:32)
        at Function.Module._load (internal/modules/cjs/loader.js:872:14)
        at Module.require (internal/modules/cjs/loader.js:1012:19)
        at require (internal/modules/cjs/helpers.js:72:18)
        at Object.<anonymous> (/home/mareklachbc/.cache/yay/marktext/src/marktext-0.16.1/node_modules/@babel/preset-env/lib/index.js:29:44)
        at Module._compile (internal/modules/cjs/loader.js:1123:30)
        at Object.Module._extensions..js (internal/modules/cjs/loader.js:1143:10)
        at Module.load (internal/modules/cjs/loader.js:972:32)
        at Function.Module._load (internal/modules/cjs/loader.js:872:14)


error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

GitSquared commented on 2020-03-27 10:20 (UTC)

Updated to Marktext v0.16.0.

@caleb Sent you an email.

alerque commented on 2020-03-07 10:43 (UTC)

Please build this using the Arch electron package as a dependency instead of bundling it. I realize this is a pain to get going at first but it is a much better outcome for systems that run it. I can probably contribute a patch to get it working if you add me as a co-maintainer.

phiL0co commented on 2019-11-18 18:55 (UTC)

THX @GitSquared for adopting and solving the problem! :)

Maddix commented on 2019-11-18 18:21 (UTC)

@GitSquared That did it. Thanks!

GitSquared commented on 2019-11-18 18:08 (UTC)

@Maddix The latest builds of Chromium embedded into Electron have sandboxing enabled by default. On Linux this requires permission to run unprivileged containers in "User Namespaces". Most distros now default to allowing the use of this kernel features for all users, but the default used to be to only allow root to access it.

To enable user namespaces for non-root users (from ArchWiki): sysctl kernel.unprivileged_userns_clone=1

Mark Text should work once you enable that.

Maddix commented on 2019-11-18 18:03 (UTC) (edited on 2019-11-18 18:18 (UTC) by Maddix)

I just upgraded my system and can't seem to get this to run without the --no-sandbox flag. I wonder if its my system has a configuration issue or if a package is missing.

GitSquared commented on 2019-11-07 21:44 (UTC)

I adopted this package and rewrote the PKGBUILD, releasing v0.15.1-3. I reduced the number of dependencies and cleaned up some other stuff.

phiL0co commented on 2019-11-05 10:33 (UTC)

Same error here!

lujipeka commented on 2019-11-04 07:07 (UTC)

When I'm executing the app I got this error:

App threw an error during load
Error: Module did not self-register.
    at process.func (electron/js2c/asar.js:138:31)
    at process.func [as dlopen] (electron/js2c/asar.js:138:31)
    at Object.Module._extensions..node (internal/modules/cjs/loader.js:922:18)
    at Object.func (electron/js2c/asar.js:138:31)
    at Object.func [as .node] (electron/js2c/asar.js:147:18)
    at Module.load (internal/modules/cjs/loader.js:735:32)
    at Module._load (internal/modules/cjs/loader.js:648:12)
    at Module._load (electron/js2c/asar.js:715:26)
    at Function.Module._load (electron/js2c/asar.js:715:26)
    at Module.require (internal/modules/cjs/loader.js:775:19)
A JavaScript error occurred in the main process
Uncaught Exception:
Error: Module did not self-register.
    at process.func (electron/js2c/asar.js:138:31)
    at process.func [as dlopen] (electron/js2c/asar.js:138:31)
    at Object.Module._extensions..node (internal/modules/cjs/loader.js:922:18)
    at Object.func (electron/js2c/asar.js:138:31)
    at Object.func [as .node] (electron/js2c/asar.js:147:18)
    at Module.load (internal/modules/cjs/loader.js:735:32)
    at Module._load (internal/modules/cjs/loader.js:648:12)
    at Module._load (electron/js2c/asar.js:715:26)
    at Function.Module._load (electron/js2c/asar.js:715:26)
    at Module.require (internal/modules/cjs/loader.js:775:19)

lujipeka commented on 2019-10-22 05:39 (UTC)

I just installed the last version of the package and got this error

App threw an error during load
Error: /usr/share/marktext/app.asar.unpacked/node_modules/keyboard-layout/build/Release/keyboard-layout-manager.node: cannot open shared object file: No such file or directory
    at process.func (electron/js2c/asar.js:138:31)
    at process.func [as dlopen] (electron/js2c/asar.js:138:31)
    at Object.Module._extensions..node (internal/modules/cjs/loader.js:828:18)
    at Object.func (electron/js2c/asar.js:138:31)
    at Object.func [as .node] (electron/js2c/asar.js:147:18)
    at Module.load (internal/modules/cjs/loader.js:645:32)
    at Function.Module._load (internal/modules/cjs/loader.js:560:12)
    at Module.require (internal/modules/cjs/loader.js:685:19)
    at require (internal/modules/cjs/helpers.js:16:16)
    at Object.<anonymous> (/usr/share/marktext/app.asar/node_modules/keyboard-layout/lib/keyboard-layout.js:4:35)
A JavaScript error occurred in the main process
Uncaught Exception:
Error: /usr/share/marktext/app.asar.unpacked/node_modules/keyboard-layout/build/Release/keyboard-layout-manager.node: cannot open shared object file: No such file or directory
    at process.func (electron/js2c/asar.js:138:31)
    at process.func [as dlopen] (electron/js2c/asar.js:138:31)
    at Object.Module._extensions..node (internal/modules/cjs/loader.js:828:18)
    at Object.func (electron/js2c/asar.js:138:31)
    at Object.func [as .node] (electron/js2c/asar.js:147:18)
    at Module.load (internal/modules/cjs/loader.js:645:32)
    at Function.Module._load (internal/modules/cjs/loader.js:560:12)
    at Module.require (internal/modules/cjs/loader.js:685:19)
    at require (internal/modules/cjs/helpers.js:16:16)
    at Object.<anonymous> (/usr/share/marktext/app.asar/node_modules/keyboard-layout/lib/keyboard-layout.js:4:35)

dc3p commented on 2019-07-22 22:26 (UTC) (edited on 2019-07-22 22:28 (UTC) by dc3p)

I just tried installed this, and got the following error when trying to execute:

A JavaScript error occurred in the main process
Uncaught Exception:
Error: /tmp/.org.chromium.Chromium.EOA3xs: undefined symbol: _ZN2v82V813DisposeGlobalEPPNS_8internal6ObjectE
    at process.func [as dlopen] (electron/js2c/asar.js:155:31)
    at Object.Module._extensions..node (internal/modules/cjs/loader.js:857:18)
    at Object.func [as .node] (electron/js2c/asar.js:164:18)
    at Module.load (internal/modules/cjs/loader.js:677:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:609:12)
    at Function.Module._load (internal/modules/cjs/loader.js:601:3)
    at Module.require (internal/modules/cjs/loader.js:715:19)
    at require (internal/modules/cjs/helpers.js:14:16)
    at Object.<anonymous> (/usr/share/marktext/app.asar/node_modules/keyboard-layout/lib/keyboard-layout.js:4:31)
    at Module._compile (internal/modules/cjs/loader.js:815:30)

Any ideas? Thanks!

In case it matters, I am running the linux-hardened kernel.

dbirks commented on 2019-05-15 13:22 (UTC)

I changed it to build with yarn (thanks @alf!). I also changed it to use the system's shared electron, to save on space when many electron apps are installed. Looks like it saves 100+ MB on the installed size :)

alf commented on 2019-04-15 16:06 (UTC) (edited on 2019-04-15 16:08 (UTC) by alf)

hi, here is my PKGBUILD

notice that I use git to reduce download and build with yarn run build:dir to reduce build time by skipping unnecessary package

astro commented on 2019-01-04 14:45 (UTC)

Hi, same error : ==> Starting package()... install: cannot stat 'build/linux-unpacked/snapshot_blob.bin': No such file or directory ==> ERROR: A failure occurred in package(). Aborting...

Maybe the error is this path ?? : install -D "build/linux-unpacked/snapshot_blob.bin" "$pkgdir/usr/lib/$pkgname/snapshot_blob.bin"

faasie commented on 2019-01-03 02:01 (UTC)

@paapereira - I, too, am having the same issue with the snapshot_blob.bin.

==> Starting package()...
install: cannot stat 'build/linux-unpacked/snapshot_blob.bin': No such file or directory
==> ERROR: A failure occurred in package().
    Aborting...

paapereira commented on 2019-01-02 20:37 (UTC) (edited on 2019-01-02 20:38 (UTC) by paapereira)

I'm updating from 0.12.25-2 to 0.13.53-1, but I'm having the following error. Any ideia if it's my system or the package? Anyone else with the same issue?

$ makepkg -sri

(...)

 OKAY  take it away `electron-builder`

  • electron-builder version=20.28.4
  • loaded configuration file=package.json ("build" field)
  • writing effective config file=build/builder-effective-config.yaml
  • no native production dependencies
  • packaging       platform=linux arch=x64 electron=3.0.5 appOutDir=build/linux-unpacked
  • building        target=AppImage arch=x64 file=build/marktext-0.13.53-x86_64.AppImage
  • building        target=tar.gz arch=x64 file=build/marktext-0.13.53.tar.gz
==> Entering fakeroot environment...
==> Starting package()...
install: cannot stat 'build/linux-unpacked/snapshot_blob.bin': No such file or directory
==> ERROR: A failure occurred in package().
    Aborting...

dopsi commented on 2018-06-27 20:01 (UTC)

@dpeukert: thanks for the updated PKGBUILD, I added it

dpeukert commented on 2018-06-26 16:49 (UTC) (edited on 2018-06-26 16:50 (UTC) by dpeukert)

Updated PKGBUILD to the newest version of Marktext and added a desktop file and an icon

# Maintainer: Simon Doppler (dopsi) <dop.simon@gmail.com>
pkgname=marktext
pkgver=0.12.25
pkgrel=1
pkgdesc='Next generation markdown editor'
arch=('x86' 'x86_64')
url='https://marktext.github.io/website/'
license=('MIT')
depends=('gconf' 'gtk3' 'libxss' 'nss')
makedepends=('npm')
source=("${pkgname}-${pkgver}.tar.gz::http://github.com/${pkgname}/${pkgname}/archive/v${pkgver}.tar.gz")
sha512sums=('46c961bcb89aed13aa0d9c46ec22a20c728ff8880d758fdaf595671864f30d11aa04cf96d4c15a9066ba51a89f9c0b774ed4bd72b6a1fe42aa9604a8b75ccbeb')

build() {
    cd "${srcdir}/${pkgname}-${pkgver}"
    npm install --cache "${srcdir}/npm-cache"
    npm run release:linux
}

package() {
    cd "${srcdir}/${pkgname}-${pkgver}"

    install -D "build/linux-unpacked/snapshot_blob.bin" "$pkgdir/usr/lib/$pkgname/snapshot_blob.bin"
    install -D "build/linux-unpacked/content_resources_200_percent.pak" "$pkgdir/usr/lib/$pkgname/content_resources_200_percent.pak"
    install -D "build/linux-unpacked/content_shell.pak" "$pkgdir/usr/lib/$pkgname/content_shell.pak"
    install -D "build/linux-unpacked/icudtl.dat" "$pkgdir/usr/lib/$pkgname/icudtl.dat"
    install -D "build/linux-unpacked/libffmpeg.so" "$pkgdir/usr/lib/$pkgname/libffmpeg.so"
    install -D "build/linux-unpacked/libnode.so" "$pkgdir/usr/lib/$pkgname/libnode.so"
    cp -r "build/linux-unpacked/locales" "$pkgdir/usr/lib/$pkgname/locales"
    install -D "build/linux-unpacked/marktext" "$pkgdir/usr/lib/$pkgname/marktext"
    install -D "build/linux-unpacked/natives_blob.bin" "$pkgdir/usr/lib/$pkgname/natives_blob.bin"
    install -D "build/linux-unpacked/pdf_viewer_resources.pak" "$pkgdir/usr/lib/$pkgname/pdf_viewer_resources.pak"
    cp -r "build/linux-unpacked/resources" "$pkgdir/usr/lib/$pkgname/resources"
    install -D "build/linux-unpacked/ui_resources_200_percent.pak" "$pkgdir/usr/lib/$pkgname/ui_resources_200_percent.pak"
    install -D "build/linux-unpacked/blink_image_resources_200_percent.pak" "$pkgdir/usr/lib/$pkgname/blink_image_resources_200_percent.pak"
    install -D "build/linux-unpacked/views_resources_200_percent.pak" "$pkgdir/usr/lib/$pkgname/views_resources_200_percent.pak"

    # Symlink main binary
    install -d "${pkgdir}/usr/bin"
    ln -s "/usr/lib/${pkgname}/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"

    # Install license file
    install -D LICENSE "${pkgdir}/usr/share/licenses/$pkgname/LICENSE"
    install -D build/linux-unpacked/LICENSE.electron.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE.electron.txt"
    install -D build/linux-unpacked/LICENSES.chromium.html "$pkgdir/usr/share/licenses/$pkgname/LICENSES.chromium.html"

    # Install desktop file and icon
    install -D "build/linux-unpacked/blink_image_resources_200_percent.pak" "$pkgdir/usr/lib/$pkgname/blink_image_resources_200_percent.pak"
    install -D "resources/linux/marktext.desktop" "$pkgdir/usr/share/applications/marktext.desktop"
    install -D "build/.icon-set/icon_512x512.png" "$pkgdir/usr/share/pixmaps/marktext.png"
}

# vim:ts=4:sw=4:expandtab