Start and log error (rather than refusing to start) if -settings flag points to nonexistent file
I maintainer di solito rispondono entro 2 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- Mezza giornata
- Idoneità per principianti
- 62/100
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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
- Lingua principale
- Java
- Stelle
- 130
- Fork
- 132
- Merge medio
- 3g 1h
- PR unite (30g)
- 24
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di ControlSystemStudio/phoebus
-
Create CONTRIBUTING.mdAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
ControlSystemStudio/phoebus#3979 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 80/100
ControlSystemStudio/phoebus#3962 ·
I maintainer di solito rispondono entro 2 giorni
-
PVA/SPVA: track SPVA version independently and move XDG keychain dir pva/<ver> -> spva/<n.n.n>Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
ControlSystemStudio/phoebus#3865 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 52/100
ControlSystemStudio/phoebus#3980 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
ControlSystemStudio/phoebus#3978 ·
I maintainer di solito rispondono entro 2 giorni
Tutte le issue di ControlSystemStudio/phoebus
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 79/100
checkstyle/checkstyle#22145 ·
I maintainer di solito rispondono entro 1 giorno
-
rset command throws NPE in ResultsFormat.guessSyntaxForse già presa @Ostrzyciel l’ha presa oggi. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
enhancement good first issue help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
objectionary/eo#9593 ·
I maintainer di solito rispondono entro 1 giorno
-
release bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
OpenLiberty/open-liberty#36124 ·
I maintainer di solito rispondono entro 1 giorno