Skip to content

Fix Python plugin project reparse#837

Open
barnabasdomozi wants to merge 1 commit intoEricsson:masterfrom
barnabasdomozi:fix_pythonplugin_inc_parsing
Open

Fix Python plugin project reparse#837
barnabasdomozi wants to merge 1 commit intoEricsson:masterfrom
barnabasdomozi:fix_pythonplugin_inc_parsing

Conversation

@barnabasdomozi
Copy link
Collaborator

@barnabasdomozi barnabasdomozi commented Mar 9, 2026

Currently, if we try to reparse a Python project,
the CodeCompass_parser exits with the following error:
"terminate called after throwing an instance of
'odb::object_already_persistent'".

As a fix, we perform a database cleanup in case of
incremental parsing.
Note: incremental parsing is not intended to work this
way and should be implemented properly in the future.

@barnabasdomozi barnabasdomozi added Kind: Bug ⚠️ Plugin: Python Issues related to the parsing and presentation of Python projects. Target: Parser labels Mar 9, 2026
@mcserep mcserep self-requested a review March 17, 2026 09:50
@mcserep
Copy link
Collaborator

mcserep commented Mar 17, 2026

@barnabasdomozi Let's discuss this in today's meeting. The suggested approach does not seem an efficient way to me to address this incremental parsing issue.

@barnabasdomozi barnabasdomozi force-pushed the fix_pythonplugin_inc_parsing branch 2 times, most recently from 3c83a67 to 2ddffc1 Compare March 18, 2026 15:14
Currently, if we try to reparse a Python project,
the CodeCompass_parser exits with the following error:
"terminate called after throwing an instance of
'odb::object_already_persistent'".

As a fix, we perform a database cleanup in case of
incremental parsing.
Note: incremental parsing is not intended to work this
way and should be implemented properly in the future.
@barnabasdomozi barnabasdomozi force-pushed the fix_pythonplugin_inc_parsing branch from 2ddffc1 to dc37c17 Compare March 18, 2026 15:18
@barnabasdomozi
Copy link
Collaborator Author

@mcserep
As discussed, I implemented a more efficient cleanup logic in commit dc37c17.
Also changed the commit message to reflect the changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Kind: Bug ⚠️ Plugin: Python Issues related to the parsing and presentation of Python projects. Target: Parser

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants