Giter Club home page Giter Club logo

Comments (17)

alfredopalhares avatar alfredopalhares commented on July 17, 2024 16

Hello,

I can confirm this bug also. this was probably a bug introduced by back-porting the Yarn changes, I will resume work on applying patches tonight and I will bring you updates.

from arch-pkgbuilds.

robsears avatar robsears commented on July 17, 2024 5

@maharifu 's PKGBUILD worked for me. Roughly, I did this:

# Pull down the AUR repo
git clone https://aur.archlinux.org/joplin.git; cd joplin

# Remove the old PKGBUILD
rm PKGBUILD

# Pull down @maharifu 's PKGBUILD:
wget https://gist.githubusercontent.com/maharifu/96816ff4e2de201068fb9ae390fd5b94/raw/6d163fd734e2fafa512cd8d3e13ea2f09b3c4c7c/PKGBUILD

# Set the right version of node (I use nodenv)
nodenv install 16.13.0
nodenv local 16.13.0

# Build and install:
makepkg -si

That worked like a charm for me, and Joplin runs like it's supposed to.

from arch-pkgbuilds.

pavelpuchok avatar pavelpuchok commented on July 17, 2024 2

The same for me.

from arch-pkgbuilds.

maharifu avatar maharifu commented on July 17, 2024 2

Hi @alfredopalhares, I managed to make it work with some simplifications of you PKGBUILD here

It is working fine on my machine, but please keep in mind:

  • I'm not entirely sure that this is the correct approach 😄
  • I removed the last patch entirely. It doesn't seem to be necessary for me, all features seem to work fine.
  • It only works with nodejs 16. I installed nodejs-lts-gallium.

I'm not opening a PR because I'm not sure if this is the right way to fix this.

I hope it helps 🙂

from arch-pkgbuilds.

alfredopalhares avatar alfredopalhares commented on July 17, 2024 2

Has there been any update on this? I'd prefer not using the appimage version if I can help it tbh.

Yes, I did cleanup the backports a lot, i am currently fighting the local yarn vs system yarn usage.

Hi @alfredopalhares, I managed to make it work with some simplifications of you PKGBUILD here

It is working fine on my machine, but please keep in mind:

* I'm not entirely sure that this is the correct approach smile

* I removed the last patch entirely. It doesn't seem to be necessary for me, all features seem to work fine.

* It only works with nodejs 16. I installed `nodejs-lts-gallium`.

I'm not opening a PR because I'm not sure if this is the right way to fix this.

I hope it helps slightly_smiling_face

Awesome! I will compare and test! This is certainly useful!

from arch-pkgbuilds.

maharifu avatar maharifu commented on July 17, 2024 2

@wideaperture did you make sure you're running node 16? From the logs it looks like you're on node 17, which has a problem compiling this version of sqlite3. On lines 840-841:

npm ERR! node-pre-gyp ERR! node -v v17.3.0
npm ERR! node-pre-gyp ERR! node-pre-gyp -v v0.11.0

Can you can try installing nodejs-lts-gallium, or setting nodenv? If you don't want to mess with that, you can also try this PKGBUILD which uses NVM to set the node version (to build the packages only), according to the Arch package guidelines (you'll have to install nvm from the AUR first).

from arch-pkgbuilds.

AndreasAZiegler avatar AndreasAZiegler commented on July 17, 2024 1

Same for me.

from arch-pkgbuilds.

ChewingBever avatar ChewingBever commented on July 17, 2024 1

Has there been any update on this? I'd prefer not using the appimage version if I can help it tbh.

from arch-pkgbuilds.

wideaperture avatar wideaperture commented on July 17, 2024 1

The package failed to build when I followed @robsears 's guide, but I'm also on Manjaro, which is a few weeks behind Arch proper on its release schedule, so there may be some versioning issues somewhere. Here's the shell output from the makepkg -si command.

For what it's worth, when I previously upgraded the package via yay with the vanilla MAKEPKG, it built and installed — but with the aforementioned unusable interface.

from arch-pkgbuilds.

wideaperture avatar wideaperture commented on July 17, 2024 1

@maharifu Thanks immensely! I installed nvm from the AUR and used the corresponding PKGBUILD you suggested. Worked like a charm.

As for my previous attempt using @robsears ' recipe, I did try setting nodenv, per his instructions. Having never used nodenv before, however, it's quite possible I missed an important detail.

In any case, thanks so much, all of you, for all your assistance in getting this working.

from arch-pkgbuilds.

alfredopalhares avatar alfredopalhares commented on July 17, 2024 1

Hello,

I have updated Joplin, both Joplin desktop and Joplin cli are working now! Test and reopen if necessary.

from arch-pkgbuilds.

alfredopalhares avatar alfredopalhares commented on July 17, 2024

Hello everyone,

As an update, I managed to build the app using Yarn 3, I am know getting this error:

Uncaught Error: Cannot find module '@joplin/fork-uslug'
Require stack:
- /usr/share/joplin-desktop/resources/app.asar/node_modules/@joplin/lib/node_modules/@joplin/renderer/MdToHtml.js
- /usr/share/joplin-desktop/resources/app.asar/node_modules/@joplin/lib/node_modules/@joplin/renderer/MarkupToHtml.js
- /usr/share/joplin-desktop/resources/app.asar/node_modules/@joplin/lib/node_modules/@joplin/renderer/index.js
- /usr/share/joplin-desktop/resources/app.asar/node_modules/@joplin/lib/markdownUtils.js
- /usr/share/joplin-desktop/resources/app.asar/node_modules/@joplin/lib/models/BaseItem.js
- /usr/share/joplin-desktop/resources/app.asar/node_modules/@joplin/lib/models/Resource.js
- /usr/share/joplin-desktop/resources/app.asar/node_modules/@joplin/lib/services/ResourceEditWatcher/index.js
- /usr/share/joplin-desktop/resources/app.asar/app.js
- /usr/share/joplin-desktop/resources/app.asar/index.html
    at Module._resolveFilename (internal/modules/cjs/loader.js:892)
    at Function.o._resolveFilename (electron/js2c/renderer_init.js:29)
    at Module._load (internal/modules/cjs/loader.js:737)
    at Function.f._load (electron/js2c/asar_bundle.js:5)
    at Function.o._load (electron/js2c/renderer_init.js:29)
    at Module.require (internal/modules/cjs/loader.js:964)
    at require (internal/modules/cjs/helpers.js:88)
    at Object.<anonymous> (MdToHtml.ts:70)
    at Object.<anonymous> (MdToHtml.ts:610)
    at Module._compile (internal/modules/cjs/loader.js:1083)

Any ideas would be welcome, the PKGBUILD is on feature/joplin-on-yarn3 if any of you want to test and give insight,.

@maharifu I cant build your PKGBUILD in any way, are you sue that PKGBUILD works?

Now that I got it working with Yarn 3 I opened a request for help on the Joplin Forum and I hope I will get some help.

Also due to all the problems that people have building I am thinking on providing my own repositoriy, signed with pre build packages, what do you think, is it useful?

Thank you all for you patience.

Regards,
Alfredo Palhares

from arch-pkgbuilds.

maharifu avatar maharifu commented on July 17, 2024

@maharifu I cant build your PKGBUILD in any way, are you sue that PKGBUILD works?

I am sure. I even cleaned everything up and recompiled again before posting, just to make sure.

Maybe there's some unidentified dependency I happen to have installed? What errors are you getting?

I'll try the yarn 3 PKGBUILD as soon as I can.

from arch-pkgbuilds.

ChewingBever avatar ChewingBever commented on July 17, 2024

Hi @alfredopalhares,

First of all, thanks for putting so much effort into this! I'm not in a position right now to test the changes, but I hope that, together with the help from Laurent on the Discourse, you'll be able to figure this out.

I can however comment on the idea of setting up your own repository. I personally wouldn't use this as I'm in the process of writing & setting up my own repo as well, but I think that lots of other people might appreciate this effort, considering how long the build process for joplin actually is. Maybe you could get in touch with the Chaotic-AUR people & see if they'd like to host Joplin? Unless, of course, you really want to set it up yourself, which I'd totally understand haha, it is fun.

from arch-pkgbuilds.

Eothred avatar Eothred commented on July 17, 2024

After the upgrade I get a blank page if I toggle on the wysiwyg editor. Is that related to the issues discussed here?

Edit: I can also confirm the blank icons, and uneditable row of x's as reported by OP

from arch-pkgbuilds.

kaktoforum avatar kaktoforum commented on July 17, 2024

@maharifu
Thanks for your suggestion.
Installing nvm and using suggested PKGBUILD helped to solve installation issues.

# Set the right version of node (I use nodenv)
nodenv install 16.13.0
nodenv local 16.13.0

Did not work for me for some reason either.

from arch-pkgbuilds.

jmon12 avatar jmon12 commented on July 17, 2024

Yet another happy Joplin user! Thank you for providing an improved PKGBUILD file: the built app is now usable. It might be a candidate for replacing the actual one.
Please let me know if I can help in any way, I'll be following the thread.

from arch-pkgbuilds.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.