Package Details: marktext 0.16.2-2

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: caleb
Last Packager: caleb
Votes: 19
Popularity: 3.06
First Submitted: 2018-05-01 08:22
Last Updated: 2020-06-19 08:48

Latest Comments

1 2 3 4 Next › Last »

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

caleb 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.

monoid commented on 2020-06-06 02:36

@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.

caleb 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.

monoid 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 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.

danielsouzat commented on 2020-04-24 04:54

@caleb My pleasure.

caleb 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.

danielsouzat commented on 2020-04-21 12:23

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.

danielsouzat commented on 2020-04-21 11:42

@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)

...

caleb commented on 2020-04-21 11:21

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