mgmeyers / obsidian-kanban

Create markdown-backed Kanban boards in Obsidian.
https://publish.obsidian.md/kanban/
GNU General Public License v3.0
3.19k stars 185 forks source link

[Bug]: Can't activate kanban plugin on Android #529

Open JustinL42 opened 2 years ago

JustinL42 commented 2 years ago

Describe the bug

Trying to activate the plugin on Android results in an error message and it stays unactivated. This is probably the same error as #281.

System information: Android 9 Obsidian app: 1.2.0 obsidian-kanban 1.2.39

Things I've tried already:

I've debugged this over adb and retrieved a further error message through the Chrome developer tools console. The minimized obsidian js is difficult to debug, so I'm not sure where to go from there. Let me know if there is any other information I could provide, or strategies I could use to debug this further.

Expected Behavior

The plugin should be activated.

Steps to reproduce

  1. Under "Community Plugins" click Kanban and "Install".
  2. Click "Enable".

Relevant errors (if available)

Error in app:
Failed to load plugin obsidian-kanban

Error in developer tools console:
app.js:1 Plugin failure: obsidian-kanban SyntaxError: Unexpected token .
    at eval (<anonymous>)
    at app.js:1
    at e.<anonymous> (app.js:1)
    at app.js:1
    at Object.next (app.js:1)
    at s (app.js:1)

And after prettifying the js the stack trace becomes:
app.js:formatted:1 Plugin failure: obsidian-kanban SyntaxError: Unexpected token .
    at eval (<anonymous>)
    at app.js:formatted:1
    at e.<anonymous> (app.js:formatted:1)
    at app.js:formatted:1
    at Object.next (app.js:formatted:1)
    at s (app.js:formatted:1)
(anonymous) @ app.js:formatted:1
(anonymous) @ app.js:formatted:1
(anonymous) @ app.js:formatted:1
a @ app.js:formatted:1
Promise.then (async)
l @ app.js:formatted:1
(anonymous) @ app.js:formatted:1
A @ app.js:formatted:1
e.enablePlugin @ app.js:formatted:1
(anonymous) @ app.js:formatted:1
(anonymous) @ app.js:formatted:1
(anonymous) @ app.js:formatted:1
(anonymous) @ app.js:formatted:1
A @ app.js:formatted:1
e.enablePluginAndSave @ app.js:formatted:1
(anonymous) @ app.js:formatted:1
(anonymous) @ app.js:formatted:1
(anonymous) @ app.js:formatted:1
(anonymous) @ app.js:formatted:1
A @ app.js:formatted:1
(anonymous) @ app.js:formatted:1

Operating system

Android

JustinL42 commented 2 years ago

I switched to a different phone running Android 12 and am not having the problem there. I could do additional debugging on the Android 9 phone if that would be helpful to anyone, but I'll probably be wiping in about a week otherwise.

GeekSquirrel commented 1 year ago

Same error and got same log with adb and chrome:// inspect. By the way, is there a better way to print a more readable log?