Conditionally defined variables being set to `bad` when undefined
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 49/100
Direzione di ricerca
Start from the implementation of variable_define and the handling of conditional variables; the issue does not name source files or tests, so first locate these entry points and reproduce the example with version v0.0.11. Trace why the false branch emits bad and a warning, then check whether the intended behavior is to omit y; done means the behavior matches the clarified expectation and has a regression test.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
I have a variable that I want to be defined under some conditions but otherwise underfined. For example, I have x as a boolean and y is only defined when x is true.
variable_declare(x,boolDomain,val(bool,true),blah).
variable_define(y,val(string,"A"),variable(x),blah).
This returns (version v0.0.11):
Solving...
Answer: 1 (Time: 0.532s)
warning(variable(badValue),blah,y)
value(x,val(bool,false))
value(y,bad)
Answer: 2 (Time: 0.532s)
value(x,val(bool,true))
value(y,val(string,"A"))
SATISFIABLE
@AbdallahS is this what you intend? I was expecting that when x is false then y should simply not be mention at all, and not that it would produce a bad value with accompanying warning.
- Lingua principale
- Python
- Stelle
- 4
- Fork
- 0
- Merge medio
- 2g 9h
- PR unite (30g)
- 19
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la 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 potassco/constraint-handler
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
potassco/constraint-handler#276 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
potassco/constraint-handler#216 · 6 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
constraint-handler 2
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
potassco/constraint-handler#491 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Multiple definitions that agree with each otherForse già presa @AbdallahS l’ha presa 1 giorno fa. Apertaconstraint-handler 2
potassco/constraint-handler#490 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 55/100
potassco/constraint-handler#489 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di potassco/constraint-handler
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
521xueweihan/HelloGitHub#4729 ·
-
auto-reported bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
I maintainer di solito rispondono entro 1 giorno
-
cliproxy-quota: a tab around a credential email skips own-accounts and paced-accounts matchingApertaneeds-triage type:bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 90/100
pollen-robotics/reachy_mini_conversation_app#631 ·
I maintainer di solito rispondono entro 7 giorni
-
stix-atlas.json: the same relationship id is used for several different mitigates relationshipsAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100