Gimp-Forum.net
Error while parsing - Printable Version

+- Gimp-Forum.net (https://www.gimp-forum.net)
+-- Forum: GIMP (https://www.gimp-forum.net/Forum-GIMP)
+--- Forum: General questions (https://www.gimp-forum.net/Forum-General-questions)
+--- Thread: Error while parsing (/Thread-Error-while-parsing)



Error while parsing - rdoty - 03-29-2025

When I load Gimp 3.0 I get this message "Error while parsing 'C:\Users\xxxx\AppData\Roaming\GIMP\3.0\devicerc' in line 9: invalid value 'a' for token select-criterion

Is this a problem and how do I correct?  Also, could this relate to some of the problems I had with a previous thread, difficulty removing jpeg background?


RE: Error while parsing - rich2005 - 03-29-2025

The devicerc is a text file which governs the properties of the mouse / graphic tablet (if there is one) You can read it with a suitable text editor.

Line 9 is about a brush dynamic as the first few lines

Code:
# GIMP devicerc
(GimpDeviceInfo "Virtual Core Pointer"
    (icon-name "gimp-cursor")
    (name "Virtual Core Pointer")
    (tool-options "GimpPaintOptions"
        (tool "gimp-paintbrush-tool")
        (brush "1. Pixel")
        (dynamics "Pressure Size") <<<<<< line 9
        (pattern "Marble #1")
        (gradient "FG to BG (RGB)")
        (palette "Color History")
        (brush-size 3)
        (brush-spacing 0.20000000000000001)
        (dynamics-enabled no))

You could try renaming it and when Gimp starts up it will scan the current hardware and write a new devicerc.
A long shot but might be a fix.