Package Details: marktext 0.16.1-6

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: GitSquared (caleb)
Last Packager: caleb
Votes: 14
Popularity: 1.98
First Submitted: 2018-05-01 08:22
Last Updated: 2020-04-23 21:03

Latest Comments

1 2 3 Next › Last »

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.

danielsouzat commented on 2020-04-21 11:08

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

caleb commented on 2020-04-18 18:31

@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

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

Updated to Marktext v0.16.0.

@caleb Sent you an email.