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
Fluid: save shell commands in per-file preferences #328
Comments
Note: after clearing the shell command and re-running |
Another observation: if I use the "old" 1.4.0 fluid version to read a file written by the current version I see these console messages:
but this is probably something we can't avoid, right? Top 10 lines of the file:
|
Project wide settings require a redesign. Temporarily disabled until I find a satisfying solution.
Project wide settings require a redesign. Temporarily disabled until I find a satisfying solution.
Changing project settings will always cause error messages in previous Fluid versions. Also, reading is quite inefficient. I'll try to find a solution here. To correctly write the shell commands as a project setting, I need to differentiate better between inherited settings, personal settings, and project related settings. |
Thanks for the update. I'll try this tomorrow. (?) |
I checked the current fluid output as promised and removed some remaining The only remaining issue I found is a regression that one trailing semicolon is generated. Sorry, this is OT here but I didn't want to open yet another issue. diff --git a/FL/Fl_File_Chooser.H b/FL/Fl_File_Chooser.H
index 57e0a97f9..5935edc28 100644
--- a/FL/Fl_File_Chooser.H
+++ b/FL/Fl_File_Chooser.H
@@ -142,7 +142,7 @@ public:
void ok_label(const char *l);
const char * ok_label();
void preview(int e);
- int preview() const { return previewButton->value(); }
+ int preview() const { return previewButton->value(); }; <<--- HERE
private:
void showHidden(int e);
void remove_hidden_files(); The obvious reproducer is to
I couldn't create a compiler warning but ISTR that we recently removed such trailing semicolons after {...} because of a report about warnings. |
Ok, I fixed the code generator (waiting for CI to finish before PR), but it must have been like this for quite a while, judging by past commits. I guess nobody ever bothered rebuilding the File Chooser. |
I did it routinely every now and then - but not since you started working on fluid these weeks (thank you!). I'm executing FTR: I found commit 6ac305a where I removed trailing semicolons. I found them using |
Implementation hints:
|
Mostly implemented, continued in #674 |
I noticed that there's a new feature to save the shell command to the .fl file but I found a case where this is done when it should not.
Running `fluid -u xxx.fl' (which "updates" the .fl file to the current FLTK version) now unconditionally adds the last saved shell command to xxx.fl.
Thus it is possible to write a saved shell command of one project to another unrelated project. For a quick workaround I can probably remove the shell command from the preferences, but this is at least unexpected and should be fixed.
Background: once upon a time ... I used a special shell command in fluid which is still stored in my
fluid.prefs
file:When running
fluid -u
as described above this shell command is added to every .fl file. This is particularly annoying because I use to runfluid -u -c
onall
.fl files in the FLTK source tree from time to time for maintenance.The text was updated successfully, but these errors were encountered: