-
When I have a large LaTeX document, the outline cannot be generated. It works well for smaller files. When I chop up the large file in two smaller files, it works again. Is there a timeout/deadline for the generation of the outline? If this is the case, can this setting be changed? I'm using the version of 7/25/2022. It worked up to last week. |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 6 replies
-
You may need to provide a working example with randomly generated contents for debugging. |
Beta Was this translation helpful? Give feedback.
-
Sure, here you go. When the file is too large, the scanning just stops. |
Beta Was this translation helpful? Give feedback.
-
It shows, though slow. |
Beta Was this translation helpful? Give feedback.
-
Just found this in the logs: [2022-07-27 10:52:16.289] [renderer1] [error] Cannot resolve tree item for element 0/0:0.2.2.2 \largesubsubsection: Error: Cannot resolve tree item for element 0/0:0.2.2.2 \largesubsubsection |
Beta Was this translation helpful? Give feedback.
-
Do you know which component is responsible to populate the outline-panel? (not the structure panel) I disabled your plugin, and then the outline is not filled. I suppose your plugin is supplying the data? |
Beta Was this translation helpful? Give feedback.
-
A PR #3400 is suggested to fix (to some extent) this issue. The reason on the regression is that the extension shift to use AST parser to construct a document structure, instead of the previous regex-based approach. The new one has many benefits but one demerit: speed. Typically, LaTeX documents will be split into multiple small files if total lines exceeds several hundred, which is quite the best practice. In such cases, the new approach is notably superior. Despite #3400 may solve the issue, I personally still recommend you to split huge documents into multiples. 3000-line LaTeX is (to myself) huge. Just my 2c. |
Beta Was this translation helpful? Give feedback.
-
Which version did introduce the new AST-based code? Which version would I have to revert to to get the old regex-based approach? |
Beta Was this translation helpful? Give feedback.
-
Hi again, I was using an older version of the module to generate the outline. I have tested the new module, but unfortunately the option for the fastparser is not available. I need to deal with larger Latex files, and there is not a real way around it. Could the timeout for the AST calculation be extended/changed? |
Beta Was this translation helpful? Give feedback.
A PR #3400 is suggested to fix (to some extent) this issue.
The reason on the regression is that the extension shift to use AST parser to construct a document structure, instead of the previous regex-based approach. The new one has many benefits but one demerit: speed. Typically, LaTeX documents will be split into multiple small files if total lines exceeds several hundred, which is quite the best practice. In such cases, the new approach is notably superior.
Despite #3400 may solve the issue, I personally still recommend you to split huge documents into multiples. 3000-line LaTeX is (to myself) huge. Just my 2c.