Package Details: marktext 0.17.1-4

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://www.marktext.cc
Keywords: editor electron markdown note
Licenses: MIT
Submitter: dopsi
Maintainer: alerque
Last Packager: alerque
Votes: 26
Popularity: 0.000005
First Submitted: 2018-05-01 08:22 (UTC)
Last Updated: 2024-03-28 00:15 (UTC)

Pinned Comments

alerque commented on 2023-11-02 11:09 (UTC)

PSA: The build process for this package is known to be broken because it requires older versions of stuff than is available in Arch now. The only way I know of to install it is to use packages that were built back when the npm in Arch was older. You can use my user repository to get the latest successful build.

Latest Comments

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

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.

<deleted-account> commented on 2020-03-27 10:20 (UTC)

Updated to Marktext v0.16.0.

@caleb Sent you an email.