-
-
Notifications
You must be signed in to change notification settings - Fork 86
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
Failed Parsing Config #211
Comments
Thanks for your report. Please paste the config in question. |
Tentatively closing. Please post new info here once available. |
The config is all there. It's the default config provided with Gromit-MPX, this is not my config, I just told you what is wrong with it, detailed in every step why the config file itself fails to be read as correct syntax's. How do I explain this so you understand it more clearly what I'm telling you since you seem to not understand the original post: It's YOUR default config file provided is not read by Gromit-MPX correctly. How is that so hard to understand what I'm telling you? Don't you understand anything? |
Dude. These guys don't get paid for the hard work they do. They do not need someone to be rude to them in an open-source issue tracking system. Please apologise and if you are in a hurry to get it fixed, offer them some cash. No, I'm not affiliated with the developers in this project. I just saw your comment and am so surprised that people with such a bad attitude exist in this world. Please correct this. |
Here lies the problem when people don't FUCKING read and you've already explained shit, and still ask you for the shit you've already FUCKING provided. |
@alkaris2 Please watch you language and consider rethinking your attitude towards others. I refrain from interacting with people that yell at me. The config snippet you listed above is not Gromit-MPX's default config. The default config is https://github.com/bk138/gromit-mpx/blob/master/data/gromit-mpx.cfg |
Hi, Thank you for the great tool. I do not agree at all with the tone from @alkaris2, but I do think there might be an actual bug here. I've been trying to change the default pen type without success; no matter what I put in the config file. No error is reported when starting the app either (1.6.0, system-wide flatpak), at least when starting via the Pop_OS (22.04) launcher. However, when starting the app from the command line two errors appear:
These errors appear no matter what is in the configuration file. For example, I tried the one indicated by @bk138 above. Two further observations: (a). It is possible to change the configuration if one directly edits the file at
this file seems to be an older default configuration. (b) attempting to add configuration options like SMOOTH and ORTHO to this file results in error (1) appearing, no matter how the app is launched. Other options, such as PEN and LINE and their colour attributes work fine. A similar issue affects the version from the Pop_OS apt repository (1.4.2), although I did not spend as much time trying to track down the problem. |
@dharabor thanks for the observations, I'll have a look! |
gm I'm a new user who's also struggling to edit config. I'm on Read the docs several times and tried installing / uninstalling with both flatpak and apt, but get the same error as @dharabor anytime i try to add a custom config file Is there a default hotkey for green or is only red / blue / yellow available? |
OK guys, here's an explainer what happens and how to solve the situation:
The takeaway is that users shouldn't care about all this at all and should just be able to customise the provided default config to their liking. This is what #110 is about and for which I added a stop-gap solution back in March but never released this. This will be in v1.7.0. |
v1.7.0 is being rolled out on flathub, let me know if this fixes the issue for you. |
Hi, Thank you very much @bk138 for such prompt attention to this issue. I updated to 1.7.0 and I can confirm that things are much improved. The configuration is now read correctly, which is great, and I appreciated the "Edit Config" feature for quickly locating and opening the relevant file! One slightly unexpected behaviour (might be flatpak?) is that the app loads the system configuration if the user configuration is a symlink instead of a regular file (at some point in earlier testing I sym-linked the flatpak user config to a the traditional location $HOME/.config/gromit-mpx.cfg). When I remove the sym-link and use a regular file, the flatpak user config is loaded correctly. I also tried the new controls for changing line opacity and thickness. These did not seem to do anything. |
@dharabor |
@bk138 Thanks for clarifying the functionality of the opacity feature! I thought it was applicable to subsequent lines. What about the "Thicker lines" and "Thinner lines" drop-down options? I could not detect any difference after selecting these options, either to subsequent lines or previously drawn lines. I tried selecting them several times, thinking the effect might stack, but again, no difference. Adjusting thickness from the configuration file meanwhile, as you suggested, works great. |
Describe the bug
Config fails to read the syntax of the config file and doesn't work properly. Even though I copy the exact config syntaxing and all the rest of it, the default config file provided in
/etc/gromit-mpx
is the issue, it doesn't know what the config parse should be when reading the defaults.Also displays error with:
To Reproduce
/etc/gromit-mpx
Failed parsing config file /home/user/.config/gromit-mpx.cfg falling back to default tools.
Expected Behavior
Read config and just work
Screenshots
Environment (please complete the following information):
In a custom config I've tried the following; and Gromit-MPX fails to parse anything. The problem lies with the parsing, Gromit-MPX clearly needs to have it's syntax parsing checked and rebuilt if it can't read it's own syntax's for the config file because it's bugged if it's unable to read the default config file or a custom config file. I would just remake the syntax it reads for the file in a more easily readable format that it understands for typical config files. The documentation around it's details of the config file and syntaxes for this tool is really poorly underdocumented, and it's mostly guess work as to WHAT actually works and what doesn't, and the errors it produces aren't exactly helpful either, it can't even point out what lines are wrong and failing to parse at, and giving vague and impossible errors that don't mean anything or give any description of what the errors even means.
If you're given an error that states;
What does that message even suppose to mean to someone who's trying to configure it? This is where I would be considering putting helpful information about it, a support link or mention of something to put you in the right directly, this is just the example of what I mean about poor documentation here. Link to the Wiki page that details this information.
Other obscure errors that doesn't have any context to what it means;
WARNING: Unable to copy "red Pen|@0": not yet defined!
as an example of a misconfiguration, you might be given a warning message, but doesn't mention what it means by "not yet defined" this is where I would put extra notes showing how to define something in the config file.
For the Super-Obscure Error messages;
Expected ";"
Doesn't mention where it expects this
;
character in the config, you need to specify what line it's failing and where it's expecting a certain character at on what line, instead of absolutely nothing to go on. LINE what on COLUMN what?Proper Error messages for syntax errors would be like this;
The text was updated successfully, but these errors were encountered: