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: 17
Popularity: 3.15
First Submitted: 2018-05-01 08:22
Last Updated: 2020-06-19 08:48

Latest Comments

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

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.

caleb commented on 2020-03-07 10:43

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

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

Maddix commented on 2019-11-18 18:21

@GitSquared That did it. Thanks!

GitSquared commented on 2019-11-18 18:08

@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

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

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.