nextcloud / notes-android

✎ Android client for Nextcloud Notes app.
https://play.google.com/store/apps/details?id=it.niedermann.owncloud.notes
GNU General Public License v3.0
932 stars 135 forks source link

Unable to switch to rich edit mode #1754

Open regs01 opened 1 year ago

regs01 commented 1 year ago

Describe the bug Just can't switch to rich edit mode

To Reproduce Steps to reproduce the behavior:

  1. Click rich edit mode button
  2. Error appears

Expected behavior Switch to rich edit mode

Smartphone (please complete the following information):

Server

Screenshots Screenshot_20230408_185029_it niedermann owncloud notes

mstyp commented 1 year ago

I am experiencing the exact same bug. The default nextcloud files app can load rich documents editer just fine.

daffydock commented 1 year ago

Same problem and have had it since day one. Server Notes app was a bit buggy as well but is fine after a number of updates since. Still can't use it on the mobile app.

I also get the odd error "The document has been changed outside of the editor. The changes cannot be applied." When I open any one note. If I let it run for long enough. Sometimes it will give me the option to pick the saved version or the current version.

The error you show on your screen still shows up superimposed over everything at the bottom. It is not really usable. Hence I do not use Rich Documents much since in my use case, I use the Android app a bit more than the one on the server.

I am aware these may be multiple issues going on at once, but I am mentioning them here just in case they are related and in case anyone else is having the same issue.

regs01 commented 1 year ago

I tried Dev version.

This is one tried (artifact with zip file at the bottom) https://github.com/nextcloud/notes-android/actions/runs/5331495052

And it is working. However on first try i got conflict error to pick two different versions of note. Has not been there since then. Keep testing.

daffydock commented 1 year ago

I tried Dev version.

This is one tried (artifact with zip file at the bottom) https://github.com/nextcloud/notes-android/actions/runs/5331495052

And it is working. However on first try i got conflict error to pick two different versions of note. Has not been there since then. Keep testing.

Tried Dev version suggested. Nothing has changed. Issues continue.

regs01 commented 1 year ago

Tried Dev version suggested. Nothing has changed. Issues continue.

  1. What kind of issues?
  2. You sure you running Dev version? It installs alongside the release version and has Dev in its icon.
daffydock commented 1 year ago

@regs01

  1. Same as the ones posted on my original post.
  2. Yes.
regs01 commented 1 year ago
  1. Same as the ones posted on my original post.

Error while loading rich editing?

Uatschitchun commented 1 year ago

I've got the same bug but only with one of my 2 servers!? Seems to be a timeout issue?

daffydock commented 1 year ago
  1. Same as the ones posted on my original post.

Error while loading rich editing?

Fair. To answer your question more specifically, I get both, the error you opened this ticket for, and also the error(s) I posted in my post after. Both still continue on different phones with different versions of Android, ranging from 7+ onward. Standard Notes app from F-Droid or Dev version. It makes no difference.

daffydock commented 1 year ago

I've got the same bug but only with one of my 2 servers!? Seems to be a timeout issue?

Just to be clear, @Uatschitchun: When you say 2 servers, do you mean two different instances on the same server, or two separate physical servers? I assume you mean two separate machines. As I have a production and a testing one instance, both on the same machine, one on 26+ and the other on 27 and I get the same issue in both. Maybe it could be a time out issue.

Uatschitchun commented 1 year ago

Yes, 2 instances hosted in different servers

mahenkpatel commented 1 year ago

Facing same issue on Nextcloud notes version 4.1.0 RC1. The nextcloud server is running on Nextcloud Hub 5 (27.0.0)

JohnDSR commented 1 year ago

Having same issue with Nextcloud Notes - Android version 4.1.0 RC1 from F-Droid. Server is Nextcloud-AIO 27.0.2.

pascalw commented 1 year ago

I'm facing this issue as well. For me it only started after upgrading the server to 27. Before the upgrade I was running 24, so I'm not sure since which version exactly this issue started.

psabc commented 1 year ago

I fixed this error by enabling the Text app in my Nextcloud instance, it was disabled before. Maybe that helps some of you.

regs01 commented 1 year ago

It's working in dev, but doesn't work in stable. Even after update to 4.1.0 final.

daffydock commented 1 year ago

It's working in dev, but doesn't work in stable. Even after update to 4.1.0 final.

Just for those who would like to try, the Dev apk has expired. You cannot simply download it from the link, posted closer to the top.

regs01 commented 9 months ago

It's working in dev, but doesn't work in stable. Even after update to 4.1.0 final.

Just for those who would like to try, the Dev apk has expired. You cannot simply download it from the link, posted closer to the top.

Find lastest with artefacts in Actions. Dev is working. Although loading 10 seconds and won't work without connection.

https://github.com/nextcloud/notes-android/actions

daffydock commented 9 months ago

@regs01

Tried with latest Notes Dev, built 18 hours ago as of this writing. Error still pops up: "Error while loading rich editing..." Giving the option to switch to Plain. Agreed that Rich Text does come up after 10+ seconds or so, but that would sometimes happen before, sometimes.

Error message still persists at the bottom, even with the Rich Text appearing, blocking the lower button at the bottom right and it won't disappear unless one does opt to switch back to plain. Strange since this has been going on for 8 months now.

regs01 commented 9 months ago

Sure you are launching Notes Dev app, not the original one? It's a different app. And rich edit mode is only working online.

daffydock commented 9 months ago

Sure you are launching Notes Dev app, not the original one? It's a different app. And rich edit mode is only working online.

Who would confuse the two? It literally loads with the word "Dev," as a splash screen and in a large font. So, to answer your question: Yes, I am sure. Unfortunately, the error continues.

Albeit I do not know if this is the same/or related error as OP's, I am now also getting this while using the alpha build on one of my phones. Maybe it will be beneficial as to further shed light into this issue:

App Version: 4.2.0 Alpha1
App Version Code: 40020000
App Flavor: dev

Files App Version Code: 30260090 (PROD)
Files App Version Code: 20231209 (DEV)

---

OS Version: 3.18.31-perf-gd33f902(1906418273f7d)
OS API Level: 24
Device: sf340n
Manufacturer: LGE
Model (and Product): LG-M470 (sf340n_global_ca)

---

java.lang.NullPointerException: Attempt to invoke interface method 'void com.nextcloud.android.sso.api.NextcloudAPI$ApiConnectedListener.onConnected()' on a null object reference
    at com.nextcloud.android.sso.api.AidlNetworkRequest$1.onServiceConnected(AidlNetworkRequest.java:79)
    at android.app.LoadedApk$ServiceDispatcher.doConnected(LoadedApk.java:1535)
    at android.app.LoadedApk$ServiceDispatcher$RunConnection.run(LoadedApk.java:1563)
    at android.os.Handler.handleCallback(Handler.java:751)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:154)
    at android.app.ActivityThread.main(ActivityThread.java:6317)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:872)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:762)
    at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:107)
bladem2003 commented 9 months ago

Where can I get the dev version?

sandpaperback commented 9 months ago

I fixed this error by enabling the Text app in my Nextcloud instance, it was disabled before. Maybe that helps some of you.

This fixed the issue for me immediately. Thank you!

daffydock commented 9 months ago

@bladem2003

Where can I get the dev version?

You can find it under actions. It is a bit of a moving target as new APKs are built constantly. This is the latest I saw today, as of this morning.

https://github.com/nextcloud/notes-android/actions/runs/7404915333

giogua commented 2 months ago

I had a similar issue, except I could not edit my notes from my android phone at all. All the notes opened in preview mode and the switch to the edit mode did nothing at all.

For me disabling and re-enabling the text app (it was originally enabled for me) fixed the issue.

repsorp commented 2 months ago

Check this in parameters: Screenshot_20240714-002036.png

Make sure it's not enabled

giogua commented 2 months ago

It was enabled for me. Disabling that settings had no effect since the editing started working again after restarting the text app.

What that settings does and why disabling It should fix the issue?

repsorp commented 2 months ago

Here (Ubuntu 24.04, Notes 4.3.0) "Plain edit mode" floating button doesn't work when "Direct Edit" enabled. https://github.com/nextcloud/notes-android/issues/2258

Le sam. 13 juil. 2024 à 20:25:41 -07:00:00, giogua @.***> a écrit :

It was enabled for me. Disabling that settings had no effect since the editing started working again after restarting the text app.

What that settings does and why disabling It should fix the issue?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>

giogua commented 2 months ago

Thanks!

mitexleo commented 1 week ago

Still facing this issue (AIO, Hub 9)