question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Fix all showstopper bugs in Slate on Android (Help us by reporting and testing bugs)

See original GitHub issue

The purpose of this issue is to consolidate and fix all Android bugs, especially those that are showstoppers (i.e. bugs that if we don’t fix we can’t claim to have Android support).

If you want Android support, you can help make it happen by testing and providing good bug reports. Note: If you can’t recreate the bug, please do not submit it (e.g. needs to e more specific than “sometimes backspace doesn’t work”).

Thank you to the many that have asked what they can do to help with Android. This is the best way to do it. Once I’m off on the next project, it may be a while before I get back here.

Supported Android Versions 8 and 9 (API 26, 27, 28)

Currently supporting Android 8 and Android 9. Working on supporting Android 7 right now. Will post here when you can start testing Android 7.

Where to test Android support

Use my Slate examples site (not the official Slate examples). The official repo does not have my latest Android updates:

https://thesunny.github.io/slate/#/composition/split-join

What to submit in a bug report

Cut and paste these steps into your bug report

Make sure you are using https://thesunny.github.io/slate/ then

Describe the issue including:
- Steps to reproduce
- What you were trying to do
- What happened
- Report anything unusual in the Slate value at bottom of composition example



A GIF showing the issue in action.
http://recordit.co/


Please answer the following
Note: Android API is in the top right corner of the link posted above

[ ] What Android API version are you on?
[ ] What Android device are you using?
[ ] Are you using a `simulator` or `hardware`?
[ ] Which example page were you using?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:9
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
thesunnycommented, May 16, 2019

Thanks for all the submissions guys. I’m working on a new approach so please hold off on bug reports for now. For more information, please see this comment in the IME issue https://github.com/ianstormtaylor/slate/issues/2062#issuecomment-492320466

1reaction
kelyvincommented, May 16, 2019

Bug: Typing any text throws an exception

Severity

Major

Rationale for severity

This is considered major because typing any text will not update the editor state - this means that any edit on the text will not do anything. Although the UI appears to be working as intended, the editor state is not properly updated so you cannot persist/save the new state.

Recording

https://imgur.com/mW8zJFO

Description

Open the editor, tap on the editor to begin typing, then type any character. This will throw the following exception:

Uncaught TypeError: Cannot read property 'values' of undefined

This exception is thrown during the reconcile function in the Android plugin. This function calls setTextFromDomNode -> node.getLeaves -> compile. The compile function throws an error because annotation and decorations values are undefined.

You’ll see in the video that the Slate’s value as text doesn’t get updated

Android and Slate Info

Android API Version? 28
Android Device? Pixel 3 XL
Physical hardware, or emulated device? Hardware (with remote debugging setup on my MacBook to show console errors)
Which example page? Composition
Slate version v0.47.2
Slate react version v0.22.2

Additional Comments (if any)

I had to pull the latest project becase the currently deployed examples on https://thesunny.github.io/slate/#/composition/split-join does not have the latest version of slate and slate-react.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Reporting bugs | Android Open Source Project
If no one has reported your bug, file the bug. First, browse for the correct component, such as Framework or Networking, and fill...
Read more >
Common Bugs in Software Development
Software defects are a part of development. Here we present some common bugs for developers to think about before sending to QA.
Read more >
What is a Showstopper Bug? - Definition from Techopedia
This critical bug must be fixed for the development process to proceed further. The term "showstopper" is used in an opposite manner to...
Read more >
Verify your Bug Fixes with Applause
Closing this loop is a key portion of QA testing, and Applause believes it's important to rely on the source that found the...
Read more >
destiny trackre
It's a Destiny Trials Tracking application that tracks all the stats you'd ever ... Destiny 2 Complete Strategy Guide. ... A Simple Bug...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found