Construct-bugs icon indicating copy to clipboard operation
Construct-bugs copied to clipboard

Editing css on android app causes crash.

Open OrcusLabs opened this issue 2 years ago • 6 comments

Problem description

Adding a dash to css line causes the line to be erased. Pasting with a dash can cause android app to crash.

https://drive.google.com/file/d/1L4lpjpjTvAea_AvdOyNrakVW_uCCdz3o/view?usp=drivesdk

Steps to reproduce

Using the supplied c3p: Edit css file. Place cursor end of comment line Press return If cursor is all the way to the left you simetimes can type font- with no issues. If the cursor is indented typing font- will erase the line. If cursor is indented pasting font-size often crashes the app.

Manually create conditions

  1. Create new project
  2. Add css file
  3. Add a class i.e.
  4. .myclass {
  5.       /* comment */
    
  6. }
  7. place cursor at end of comment.
  8. press return to add a new line
  9. try to type font-size
  10. if succeeds, try indenting and typing font-size
  11. should erase line
  12. try pasting orher css. Will either erase or crash.

Observed result

Typing font- in the css will erase that line. Pasting font-size will often cause the app to crash.

Expected result

Not crash.

More details

Affected browsers/platforms:

First affected release:

System details

OrcusLabs avatar Feb 16 '24 21:02 OrcusLabs

Your link is closed.

WilsonPercival avatar Feb 16 '24 21:02 WilsonPercival

Your link is closed.

Found the real problem I think. Edited and new c3p uploaded. Should be available. Let me know if it isnt

OrcusLabs avatar Feb 16 '24 21:02 OrcusLabs

This error was found as a result of using chat gpt to create the css which comments heavily.

OrcusLabs avatar Feb 16 '24 21:02 OrcusLabs

After I press Enter I will not be able to type characters. I print and they get erased.

WilsonPercival avatar Feb 17 '24 01:02 WilsonPercival

Tested in desktop client. Works as expected.

OrcusLabs avatar Feb 18 '24 00:02 OrcusLabs

Spent a while looking in to this and just could not figure anything out at all unfortunately. I've no idea whether this is a browser bug, CodeMirror bug, or Construct bug, and I'm not sure what to do to further investigate at this point.

AshleyScirra avatar Jan 23 '25 16:01 AshleyScirra