curlpipe/ox

sometimes can't edit the last line of files

kurokirasama opened this issue · 9 comments

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

ox.mp4

Desktop (please complete the following information):

  • OS: [e.g. iOS] ubuntu 20.04

Hi, thanks for reporting this issue

Unfortunately, it looks like the video you've linked has somehow corrupted.

I have a suspicion about what could be causing the last lines of the document from not being able to be edited, and I think it may have been fixed in 0.4.2

It might be worth just updating and checking that this issue still remains

Hey, I just updated to 0.4.2 and the issue persists. Here's a link to the video: ox

So it seems like Ox thinks the length of your file prompt.md is less than it actually is, which causes it to not register "however" as part of the document, hence the weird behaviour. I'm not sure what caused this, but I can certainly investigate.

Did you write this prompt.md file in Ox? Or did you write it in another editor?

If you could send me the prompt.md file itself, that would be very helpful, just so I can try and reproduce the error.

hey, thanks for your time.
The file wast created with sublime text.
I've re-wrote the file several times and right now the error isn't there. If it happens again, I'll post it here.

Great, I close this for now, if it reappears, it can be re-opened 👍

Hey, here is another example of this.
oxrc.csv

I renamed it to csv to be able to upload it.

ox.mp4

I've been able to reproduce this error! Will investigate what's going on here.

Ok, so the issue is down to this file not having an end of line character. I'll have Ox recognise this and work around it 👍

Fixed in 0.5.3