Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

Start and log error (rather than refusing to start) if -settings flag points to nonexistent file

Offen
#3,960 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 2 Tagen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
Ein halber Tag
Anfängerfreundlichkeit
62/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
java
Bereich
cli

Rechercherichtung

The payload does not name the file, so begin by finding where the -settings command-line argument is parsed and where the settings file is loaded at startup. Reproduce by launching Phoebus with a path that does not exist and note where it exits. Done means startup continues with the normal defaults and logs an error that includes the missing path, with the change covered by a test if one exists for settings loading.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

We are looking to use a base settings.ini file with all the 'defaults', and then override some settings per machine. One option is to distribute multiple versions of Phoebus with different settings.ini files, but this is a pain in many ways.

So seemingly the easiest way to do this is to have our default settings in the install directory (which guarantees they will always be loaded), and then to pass -settings <path>/overrides.ini to the application when it is launched. This works, except that if the file passed to -settings is not found, Phoebus will refuse to start. Since we don't want to force every user to create an empty overrides.ini file, the ideal solution is that Phoebus still starts, and instead logs an error if the file is not found. This seems like more useful functionality in general anyway - from the code it seems like the -settings flag is meant to work as an override

This would be a simple case of adding a try-catch around the relevant code

Vorherrschende Sprache
Java
Sterne
130
Forks
132
Ø Merge
3 T. 1 Std.
Gemergte PRs (30 T.)
24

Entwicklungsumgebung

  • Kein Dockerfile und keine Docker-Compose-Datei
  • Hat eine Pull-Request-Vorlage
  • Kein Beitragsleitfaden

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus ControlSystemStudio/phoebus

Alle Issues in ControlSystemStudio/phoebus

Ähnliche Issues

Weitere Issues zu Java

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.