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
sipify.pl drops all but first word from comments #24609
Comments
Author Name: Sandro Santilli (@strk)
|
Author Name: Sandro Santilli (@strk) It is sipify.pl doing the mungling, could be this block:
|
Author Name: Nyall Dawson (@nyalldawson) I suspect it's because your doxygen tags are malformed. They should be: enum SegmentationToleranceType Note the important inclusion of the <, which is used whenever the doxygen comment comes AFTER the member (as is the case with enum values) |
Author Name: Nyall Dawson (@nyalldawson)
|
Author Name: Sandro Santilli (@strk) Nyall moving the comment from above the enum value to its right side with '//!<' prefix makes it completely disappear from the .sip file.
|
Author Name: Nyall Dawson (@nyalldawson) That's by design - sip doesn't support documentation for enumeration values. |
Author Name: Denis Rouzaud (@3nids) indeed sip does not support docstrings for bindings and the policy is just to remove them from source.
|
Author Name: Sandro Santilli (@strk) If the policy is to remove them from output it is not working, as the very first word after the comment is being retained.
|
Author Name: Sandro Santilli (@strk) So Nyall and Denis: do you think #4728 should be merged with the sip-generated broken comment in here: https://github.com/qgis/QGIS/pull/4728/files#diff-c57e05913a8dc3395f4b0f7d7f926293L61 ? Those comments in .sip file basically become:
|
Author Name: Denis Rouzaud (@3nids)
|
Author Name: Sandro Santilli (@strk) Why closed ? Was it fixed ? If so by which commit ?
|
Author Name: Denis Rouzaud (@3nids) No issue here to me. The enum docs are not exported to sip files as they are not used. |
Author Name: Giovanni Manghi (@gioman) Denis Rouzaud wrote:
so "won't fix"? |
Author Name: Denis Rouzaud (@3nids)
|
Author Name: Sandro Santilli (@strk)
Original Redmine Issue: 16710
Affected QGIS version: master
Redmine category:python_bindings_/_sipify
Assignee: Denis Rouzaud
This diff was introduced by
git commit
(which in turn calls sipify_all.sh:Basically I cannot write more than a single word in there, it gets truncated to one word on first git commit
The text was updated successfully, but these errors were encountered: