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] Parser: limiting color options leads to unclear error message #2708

Open
neteler opened this issue Dec 19, 2022 · 0 comments
Open

[Bug] Parser: limiting color options leads to unclear error message #2708

neteler opened this issue Dec 19, 2022 · 0 comments
Labels
bug Something isn't working C Related code is in C
Milestone

Comments

@neteler
Copy link
Member

neteler commented Dec 19, 2022

Describe the bug

When using the color list parser macro G_OPT_M_COLR
(e.g., see

# %option G_OPT_M_COLR
) but desiring to reduce the selectable colors to a subset this leads to unclear warnings.

Example: The PR cited below is defining a subset of colors in options which leads to

WARNUNG: Bug in UI description. Option 'aspect' in <color> does not exist
WARNUNG: Bug in UI description. Option 'aspectcolr' in <color> does not exist
...

for each color name missing from the options list. The warning is here:

G_warning(_("Bug in UI description. Missing module description"));

To Reproduce

See changes and discussion in
mundialis/r.geoserver#4

Expected behavior

It should be possible to use a parser macro while being able to reduce the options.

System description (please complete the following information):

  • any operating system
  • GRASS GIS version 8.x
@neteler neteler added bug Something isn't working C Related code is in C labels Dec 19, 2022
@wenzeslaus wenzeslaus added this to the 8.4.0 milestone May 18, 2023
@neteler neteler modified the milestones: 8.4.0, 8.4.1 Jul 21, 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 C Related code is in C
Projects
None yet
Development

No branches or pull requests

2 participants