Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] g.gui.gmodeler: having % in module's arguments makes the model invalid #3870

Open
pesekon2 opened this issue Jun 17, 2024 · 0 comments
Labels
bug Something isn't working Python Related code is in Python

Comments

@pesekon2
Copy link
Contributor

Describe the bug

If % is included in any of the model's modules' parameters, the validator complains that the model is invalid. This is caused by the fact that it thinks that it is a variable that is undefined. The model can run but this message is annoying (and wrong).

To reproduce

Try to put % into some parameter. The good option where this can happen often is v.db.select/v.extract with the where option (col1 LIKE 'A%').

Idea for solution

Change the syntax for variables in the modeler. The pure % prefix is bad because it can fail in case of variables like %d and %donkey (one of them is pseudorandomly chosen; if it chooses d over donkey, it thinks that onkey is a string following the variable).

System description

  • Operating System: Linux (Ubuntu)
  • GRASS GIS version: main as of 60f6727
@pesekon2 pesekon2 added bug Something isn't working Python Related code is in Python labels Jun 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Python Related code is in Python
Projects
None yet
Development

No branches or pull requests

1 participant