The default preference value generated for arduino.ide.updateChannel
never worked
#2157
Open
3 tasks done
Labels
topic: code
Related to content of the project itself
topic: infrastructure
Related to project infrastructure
type: imperfection
Perceived defect in any part of project
Describe the problem
The default preference value is
'stable'
:arduino-ide/arduino-ide-extension/src/browser/arduino-preferences.ts
Line 145 in 144df89
In the IDE2 packager code, the default preference value of the
electron-updater
channel is overridden with a generated one at packaging time.The packager logic calculates the output channel name here:
arduino-ide/electron/packager/config.js
Line 126 in 144df89
It is
'stable'
for release builds and'nightly'
for the nightly builds. Otherwise, it's omitted.However, the generated default update channel property is merged into an incorrect location. It's put under
theia.frontend.config
:arduino-ide/electron/packager/config.js
Line 134 in 144df89
Output from the
2.1.1
release:The generated
"arduino.ide.updateChannel": "stable",
entry must be undertheia.frontend.config.preferences
. Otherwise, it has no effect. See eclipse-theia/theia#4766. Since the default preference value of the update channel is'stable'
the incorrect default preference value does not change anything in release and snapshot builds.For the nightly, it's also broken:
If I understand the intentions here, IDE2 wants to promote the
'nightly'
update site for nightly builds and the'stable'
otherwise.arduino.ide.updateChannel
in~/.arduinoIDE/settings.json
.To reproduce
See the issue description.
Expected behavior
I don't know the intentions, but it doesn't work now.
Arduino IDE version
2023-07-31T03:04:11.024Z
Operating system
macOS
Operating system version
13.4.1
Additional context
#2144 will drop the invalid generation.
Issue checklist
The text was updated successfully, but these errors were encountered: