Skip to content
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

Could not find usable information in qgis2apifinder results #2

Open
DelazJ opened this issue May 21, 2018 · 0 comments
Open

Could not find usable information in qgis2apifinder results #2

DelazJ opened this issue May 21, 2018 · 0 comments

Comments

@DelazJ
Copy link

DelazJ commented May 21, 2018

I'm trying to upgrade my MapsPrinter plugin to v3 and following the QGIS wiki page, I ran qgis2api on folder but nothing in the outputs seems usable to me (maybe I misunderstood the scope and aim of the script) but wanted to report:

$ ./qgis2apifinder /e/Harrissou/GitHub/MapsPrinter/
E:/Harrissou/GitHub/MapsPrinter/maps_printer.py::114: Found buttonBox -> ['(class QgsSvgSelectorDialog) has been removed as they were leaking implementation details.']
E:/Harrissou/GitHub/MapsPrinter/maps_printer.py::146: Found buttonBox -> ['(class QgsSvgSelectorDialog) has been removed as they were leaking implementation details.']
E:/Harrissou/GitHub/MapsPrinter/maps_printer.py::148: Found buttonBox -> ['(class QgsSvgSelectorDialog) has been removed as they were leaking implementation details.']
E:/Harrissou/GitHub/MapsPrinter/maps_printer.py::235: Found isVisible -> ['(class QgsLayerTreeGroup) is moved to QgsLayerTreeNode', '(class QgsLayerTreeLayer) is moved to QgsLayerTreeNode']
E:/Harrissou/GitHub/MapsPrinter/maps_printer.py::310: Found mode -> ['(class QgsMapToolAdvancedDigitizing) and CaptureMode enum have been moved to QgsMapToolCapture subclass']
E:/Harrissou/GitHub/MapsPrinter/maps_printer.py::390: Found create -> ['(class QgsSvgSelectorWidget) has been removed - use ordinary constructor instead.']
E:/Harrissou/GitHub/MapsPrinter/maps_printer.py::434: Found buttonBox -> ['(class QgsSvgSelectorDialog) has been removed as they were leaking implementation details.']
E:/Harrissou/GitHub/MapsPrinter/maps_printer.py::437: Found buttonBox -> ['(class QgsSvgSelectorDialog) has been removed as they were leaking implementation details.']
E:/Harrissou/GitHub/MapsPrinter/maps_printer.py::459: Found buttonBox -> ['(class QgsSvgSelectorDialog) has been removed as they were leaking implementation details.']
E:/Harrissou/GitHub/MapsPrinter/maps_printer.py::460: Found buttonBox -> ['(class QgsSvgSelectorDialog) has been removed as they were leaking implementation details.']
E:/Harrissou/GitHub/MapsPrinter/maps_printer.py::668: Found save -> ['(class QgsFeatureRendererV2) expects QgsReadWriteContext reference as the last argument']
E:/Harrissou/GitHub/MapsPrinter/maps_printer.py::670: Found save -> ['(class QgsFeatureRendererV2) expects QgsReadWriteContext reference as the last argument']
E:/Harrissou/GitHub/MapsPrinter/maps_printer.py::689: Found map -> ['(class QgsMapCanvas) has been removed because QgsMapCanvasMap is not available in API anymore.']
E:/Harrissou/GitHub/MapsPrinter/maps_printer.py::723: Found create -> ['(class QgsSvgSelectorWidget) has been removed - use ordinary constructor instead.']
E:/Harrissou/GitHub/MapsPrinter/maps_printer.py::730: Found isVisible -> ['(class QgsLayerTreeGroup) is moved to QgsLayerTreeNode', '(class QgsLayerTreeLayer) is moved to QgsLayerTreeNode']
E:/Harrissou/GitHub/MapsPrinter/maps_printer_dialog_base.py::74: Found buttonBox -> ['(class QgsSvgSelectorDialog) has been removed as they were leaking implementation details.']
E:/Harrissou/GitHub/MapsPrinter/maps_printer_dialog_base.py::75: Found buttonBox -> ['(class QgsSvgSelectorDialog) has been removed as they were leaking implementation details.']
E:/Harrissou/GitHub/MapsPrinter/maps_printer_dialog_base.py::76: Found buttonBox -> ['(class QgsSvgSelectorDialog) has been removed as they were leaking implementation details.']
E:/Harrissou/GitHub/MapsPrinter/maps_printer_dialog_base.py::77: Found buttonBox -> ['(class QgsSvgSelectorDialog) has been removed as they were leaking implementation details.']
E:/Harrissou/GitHub/MapsPrinter/maps_printer_dialog_base.py::78: Found buttonBox -> ['(class QgsSvgSelectorDialog) has been removed as they were leaking implementation details.']
E:/Harrissou/GitHub/MapsPrinter/maps_printer_dialog_base.py::79: Found buttonBox -> ['(class QgsSvgSelectorDialog) has been removed as they were leaking implementation details.']
E:/Harrissou/GitHub/MapsPrinter/maps_printer_dialog_base.py::158: Found buttonBox -> ['(class QgsSvgSelectorDialog) has been removed as they were leaking implementation details.']
E:/Harrissou/GitHub/MapsPrinter/maps_printer_dialog_base.py::166: Found buttonBox -> ['(class QgsSvgSelectorDialog) has been removed as they were leaking implementation details.']


Found 23 API2 usages

Files with API2 usages:
E:/Harrissou/GitHub/MapsPrinter/maps_printer.py -> 15 usages found
E:/Harrissou/GitHub/MapsPrinter/maps_printer_dialog_base.py -> 8 usages found

###############################################################################
NOTE:
This tool is based on a machine parsing of
https://qgis.org/api/api_break.html so the result are as good as the
information there. Also, being a simple parser, it just give an hint were to
look at. It is by no means a complete tool to find all the
possible API incompatibility.

Methods are matched just based on their names and not on their classes,
so there might be various false positives.

My plugin is about composers and use the old composer code; no mention in the output and if i'm not wrong none of the reported classes is used in the plugin. Also, eg buttonBox is simply a widget name.

I don't know if this report should be of interest to you but as it does not do what I thought it would do, i wanted to report it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant