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
cmake: when not SC_QT skip install GUI help but not Guides #5042
Conversation
IIUC, the original intention of this regex was to exclude specific directories of SCClassLibrary. my understanding seems to be supported by this history: in 1e5135dac , which introduced this exclusion feature, it is clearly intended to exclude directories (.git and QtCollider). 061c5b50cc2 clearly treats this regex as applying to only directories (in the symlinking code) #3456, which switched the regex from "QtCollider" to "GUI", also seemed to assume that this would only ever apply to folders. using this regex when installing from HelpSource appears to be a mistake. it was originally done in this commit: d7b078c99 which appears to be an accidental copy-paste of the SCClassLibrary installation command. i say it is accidental because at that point in time the regex could only ever contain "QtCollider", but there was no folder or file name QtCollider in HelpSource at that time. probably it went unnoticed because of that. there is also another aspect here which is that this regex appears to behave case-insensitively on your system (but not on mine). we should definitely support case insensitive filesystems by not behaving differently (i.e. installing or not installing different files and directories). i believe the correct fix here is:
|
@brianlheim Wow, You have done a throughout and deep investigation on this issue. May be another solution could be just dont change anything when SC_QT is off? |
please, i would prefer that you implement these changes. it's about 5 lines of code and moving 1 or 3 files, and you can easily test the result if you have a command like
help -- GUI related help files are already installed, and that's fine. there is not an easy way to exclude those files anyway at the moment. right now the effect of using this regex is to prevent installation of a more or less arbitrary subset of help files that have "GUI" in the name. classes -- GUI class files absolutely cannot be installed, because any file installed that has an |
… when NOT SC_ABLETON_LINK by having them in GUI or Ableton folders. Allow GUI help files to install.
Done!! (I think so) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks! just one formatting change
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks!
Purpose and Motivation
When SC_QT is off cmake regex is skipping GUI in filename so that Guides are also skipped (issue #5043)
Types of changes
Change cmake regex to skip GUI followed by . or _ or - which are the patterns I could find in gui help files