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

[BUG] #19

Open
oslog opened this issue Mar 26, 2022 · 1 comment
Open

[BUG] #19

oslog opened this issue Mar 26, 2022 · 1 comment
Assignees

Comments

@oslog
Copy link

oslog commented Mar 26, 2022

Describe the bug
The console reported an error when opening the table editor.

The problem with 22637 lines of code. this.app.workspace.revealLeaf(this.app.workspace.getLeavesOfType(MARKDOWN_TABLE_EDITOR_VIEW)[0]);

this.app.workspace.getLeavesOfType(MARKDOWN_TABLE_EDITOR_VIEW) The value is undefined/null. So you need to make a null judgment on the variable.

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.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

@ganesshkumar
Copy link
Owner

Hi @oslog, thanks for bringing this up.

I am not seeing this error on my side. So, can you give me some information to debug this?

  1. Is your layout is not able to create a view (due to some max leaf limit) when you are encountering this error?
  2. Are you able to open any other leaf?
  3. Are there any other error messages along with the error you had mentioned?

That particular line is called only after making sure we have created the leaf. So, I am wondering what is preventing the leaf from being created before we try to reveal it.

@ganesshkumar ganesshkumar added question Further information is requested waiting-for-answer-1w labels May 1, 2022
@ganesshkumar ganesshkumar moved this to Triaging in obsidian-table-editor May 7, 2022
@ganesshkumar ganesshkumar moved this to Triaging in obsidian-table-editor May 7, 2022
@ganesshkumar ganesshkumar removed the question Further information is requested label May 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Triaging
Development

No branches or pull requests

2 participants