Skip to content

Fix Python plugin project reparse#837

Merged
mcserep merged 1 commit intoEricsson:masterfrom
barnabasdomozi:fix_pythonplugin_inc_parsing
Mar 25, 2026
Merged

Fix Python plugin project reparse#837
mcserep merged 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.

@mcserep mcserep merged commit 679ea9f into Ericsson:master Mar 25, 2026
20 of 21 checks passed
@mcserep mcserep added this to Lab and Roadmap Mar 25, 2026
@github-project-automation github-project-automation bot moved this to In progress in Lab Mar 25, 2026
@github-project-automation github-project-automation bot moved this from In progress to Done in Roadmap Mar 25, 2026
@github-project-automation github-project-automation bot moved this from In progress to Done in Lab Mar 25, 2026
@github-project-automation github-project-automation bot moved this to In progress in Roadmap Mar 25, 2026
@mcserep mcserep added this to the Upcoming Release milestone Mar 25, 2026
@barnabasdomozi barnabasdomozi deleted the fix_pythonplugin_inc_parsing branch March 26, 2026 15:29
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

Status: Done
Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants