Package Details: marktext 0.16.3-2

Git Clone URL: (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:
Keywords: editor electron markdown note
Licenses: MIT
Submitter: dopsi
Maintainer: alerque
Last Packager: alerque
Votes: 21
Popularity: 0.091890
First Submitted: 2018-05-01 08:22
Last Updated: 2021-06-11 15:14

Latest Comments

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

alerque commented on 2020-09-25 10:04

@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


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

yochananmarqos commented on 2020-09-15 21:32

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

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
                                          reason=prebuild-install failed with error (run with env DEBUG=electron-builder to get more information)
        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 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
    gyp http 403
    gyp WARN install got an error, rolling back install
    gyp ERR! configure error 
    gyp ERR! stack Error: 403 response downloading
    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
error Command failed with exit code 1.
info Visit for documentation about this command.
==> ERROR: A failure occurred in build().
==> ERROR: Build failed, check /var/lib/archbuild/extra-x86_64/nicohood/build

alerque commented on 2020-06-06 06:04

@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


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

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

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 (<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 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:

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

@caleb My pleasure.

alerque commented on 2020-04-23 12:53

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