Skip to content

Fix unnecessary initial double parsing in server mode with reparse#625

Merged
sim642 merged 6 commits intointeractivefrom
issue-623
Mar 10, 2022
Merged

Fix unnecessary initial double parsing in server mode with reparse#625
sim642 merged 6 commits intointeractivefrom
issue-623

Conversation

@sim642
Copy link
Copy Markdown
Member

@sim642 sim642 commented Mar 7, 2022

Closes #623.

When starting server mode without reparse, input files are parsed once at the beginning, just like for normal analysis. When starting server mode with reparse, they were similarly parsed, but when invoking the first analyze command, it repeated parsing the input files. In the latter case, the initial parsing is pointless.

To my surprise, this fixes the issue. I think the problematic statement came from that initial parse and the first reparse in the server mode somehow screws something up. There might be a deeper issue with the incrementality and reparsing in server mode, but I couldn't figure out what that would be.

Additionally this PR includes a couple of additional global data resets in server mode that I initially thought might be the cause.

@sim642 sim642 added the bug label Mar 7, 2022
@sim642 sim642 requested a review from karoliineh March 7, 2022 10:54
@sim642 sim642 linked an issue Mar 7, 2022 that may be closed by this pull request
@sim642 sim642 mentioned this pull request Mar 8, 2022
5 tasks
@michael-schwarz michael-schwarz self-requested a review March 9, 2022 08:24
@sim642 sim642 merged commit f9eeab8 into interactive Mar 10, 2022
@sim642 sim642 deleted the issue-623 branch March 10, 2022 07:49
@sim642 sim642 added this to the v2.0.0 milestone Aug 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unexpected behavior using server-mode in incremental branch

3 participants