Conditionally defined variables being set to `bad` when undefined
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 49/100
Research direction
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.
Written by the indexing model from the issue text.
Description
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.
- Dominant language
- Python
- Stars
- 4
- Forks
- 0
- Avg merge
- 2d 9h
- Merged PRs (30d)
- 19
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from potassco/constraint-handler
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
potassco/constraint-handler#276 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
potassco/constraint-handler#216 · 6 comments ·
Maintainers usually reply within 1 day
-
constraint-handler 2
Difficulty 5/5 Over a week Newbie friendliness 25/100
potassco/constraint-handler#491 · 2 comments ·
Maintainers usually reply within 1 day
-
Multiple definitions that agree with each otherPossibly taken @AbdallahS claimed this 1 day ago. Openconstraint-handler 2
potassco/constraint-handler#490 · 1 assignee ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 55/100
potassco/constraint-handler#489 ·
Maintainers usually reply within 1 day
All issues in potassco/constraint-handler
Similar issues
-
auto-reported bug
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 1 day
-
stix-atlas.json: the same relationship id is used for several different mitigates relationshipsOpen
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
backend bug
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
nolte/kamerplanter#3193 ·
Maintainers usually reply within 1 day
-
soup prune-prompt exits 1 after writing its output on a file over 100,000 rows, and reports a capped row count otherwisePossibly taken @abdulwaarith0 claimed this today. Openneeds-triage
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
MakazhanAlpamys/Soup#3690 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day