Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin error when table on last line of document #155

Closed
getrix opened this issue Jan 13, 2022 · 2 comments
Closed

Plugin error when table on last line of document #155

getrix opened this issue Jan 13, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@getrix
Copy link

getrix commented Jan 13, 2022

Describe the bug
When I press tab key, I expect to go to next cell, but there is an error in the dev console.

Screenshots
advanced-tables-bug

Here's the error

app.js:1 RangeError: Invalid line number 3 in 2-line document
    at e.t.line (app.js:1)
    at Hu (app.js:1)
    at e.replaceRange (app.js:1)
    at ObsidianTextEditor.deleteLine (eval at <anonymous> (app.js:1), <anonymous>:23272:26)
    at Object._applyCommand (eval at <anonymous> (app.js:1), <anonymous>:21965:20)
    at Object.applyEditScript (eval at <anonymous> (app.js:1), <anonymous>:21983:17)
    at TableEditor._updateLines (eval at <anonymous> (app.js:1), <anonymous>:22461:28)
    at eval (eval at <anonymous> (app.js:1), <anonymous>:22684:22)
    at ObsidianTextEditor.transact (eval at <anonymous> (app.js:1), <anonymous>:23287:13)
    at eval (eval at <anonymous> (app.js:1), <anonymous>:22683:30)

Here's the simple md source:

# Just TEST
|header1

Desktop (please complete the following information):

  • OS: Windows 10
  • Obsidian Version: v0.13.19
  • Advanced Tables Version: 0.15.0
@getrix getrix added bug Something isn't working needs-review A newly created issue that has not yet been processed labels Jan 13, 2022
@jt196
Copy link

jt196 commented Jan 14, 2022

Same here on my setup.

app.js:1 RangeError: Invalid line number 6 in 5-line document
    at e.t.line (app.js:1)
    at Hu (app.js:1)
    at e.replaceRange (app.js:1)
    at ObsidianTextEditor.deleteLine (eval at <anonymous> (app.js:1), <anonymous>:23272:26)
    at Object._applyCommand (eval at <anonymous> (app.js:1), <anonymous>:21965:20)
    at Object.applyEditScript (eval at <anonymous> (app.js:1), <anonymous>:21983:17)
    at TableEditor._updateLines (eval at <anonymous> (app.js:1), <anonymous>:22461:28)
    at eval (eval at <anonymous> (app.js:1), <anonymous>:22684:22)
    at ObsidianTextEditor.transact (eval at <anonymous> (app.js:1), <anonymous>:23287:13)
    at eval (eval at <anonymous> (app.js:1), <anonymous>:22683:30)

@tgrosinger tgrosinger changed the title Error when pressing tab key Plugin error when table on last line of document Jan 14, 2022
@tgrosinger tgrosinger removed the needs-review A newly created issue that has not yet been processed label Jan 14, 2022
@tgrosinger
Copy link
Owner

Updated the title to reflect the actual cause of the error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants