Skip to content

Avoid DebugInfo warnings (take two)#2345

Merged
tbennun merged 3 commits into
spcl:mainfrom
romanc:romanc/warnings-default-line-info-2
Apr 23, 2026
Merged

Avoid DebugInfo warnings (take two)#2345
tbennun merged 3 commits into
spcl:mainfrom
romanc:romanc/warnings-default-line-info-2

Conversation

@romanc

@romanc romanc commented Apr 22, 2026

Copy link
Copy Markdown
Contributor

Description

In PR #2321 we introduced a way to turn of automatic stack inspection when adding a node to a state without explicitly stating debug info (such as file name, line info, ...). Since merging this PR, we get a ton of DeprecationWarnings from code added in _get_debug_info().

In a first attempt (see PR #2344), we tried to work around the issue by setting ._default_line_info on the state. This method proved to be very verbose and unnecessarily complicates parsing, where we have a legitimate use-case for explicitly passing along an explicit DebugInfo.

This PR suggests to keep the API of state.add_*() functions as before, partially reverting changes from PR #2321. Doing so, we can drop the deprecation warnings because nothing changes.

romanc added 2 commits April 22, 2026 09:31
Since now all calls were `_get_debug_info("config", ...)` we can remove
this argument again, reverting more of the initial PR and just adding
the config options in there.
@romanc romanc marked this pull request as ready for review April 22, 2026 12:14
@tbennun

tbennun commented Apr 23, 2026

Copy link
Copy Markdown
Collaborator

cscs-ci run

@tbennun tbennun enabled auto-merge April 23, 2026 05:52
@tbennun tbennun added this pull request to the merge queue Apr 23, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Apr 23, 2026
@tbennun tbennun added this pull request to the merge queue Apr 23, 2026
Merged via the queue into spcl:main with commit 34458f7 Apr 23, 2026
12 checks passed
@tbennun tbennun deleted the romanc/warnings-default-line-info-2 branch April 23, 2026 08:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants