Skip to content

Avoid access to default scope on read of configuration scope preference#4088

Open
HeikoKlare wants to merge 1 commit into
eclipse-platform:masterfrom
HeikoKlare:issue-4085
Open

Avoid access to default scope on read of configuration scope preference#4088
HeikoKlare wants to merge 1 commit into
eclipse-platform:masterfrom
HeikoKlare:issue-4085

Conversation

@HeikoKlare

Copy link
Copy Markdown
Contributor

The configuration scope preference for monitor-specific scaling is read at a point in time where the workspace location may not have been defined, so that the instance scope preferences cannot be accessed yet. Since some defaults initializers require access to the instance scope, the access to the configuration scope preference must avoid access to the default scope in case no explicit value is set for that preference yet.

This change adapts the access to the monitor-specific scaling configuration scope preference to not access the default scope. Since there may be further preference defaults initializers out of our control that access instance scope preferences, just adapting those in the Platform would not be a sufficient solution alternative.

Fixes #4085

@github-actions

github-actions Bot commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

Test Results

   861 files  ±  0     861 suites  ±0   46m 36s ⏱️ + 1m 5s
 8 034 tests ±  0   7 789 ✅ ± 0  243 💤 ± 0  2 ❌ ±0 
20 405 runs   - 131  19 781 ✅  - 98  622 💤  - 33  2 ❌ ±0 

For more details on these failures, see this check.

Results for commit aa88965. ± Comparison against base commit a4171b1.

♻️ This comment has been updated with latest results.

The configuration scope preference for monitor-specific scaling is read
at a point in time where the workspace location may not have been
defined, so that the instance scope preferences cannot be accessed yet.
Since some defaults initializers require access to the instance scope,
the access to the configuration scope preference must avoid access to
the default scope in case no explicit value is set for that preference
yet.

This change adapts the access to the monitor-specific scaling
configuration scope preference to not access the default scope. Since
there may be further preference defaults initializers out of our control
that access instance scope preferences, just adapting those in the
Platform would not be a sufficient solution alternative.

Fixes eclipse-platform#4085
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.

Error on startup via AutoscaleAdaptation.setRescaleAtRuntimePropertyFromPreference()

1 participant