# HG changeset patch # User Sebastien Jodogne # Date 1763554273 -3600 # Node ID bcf54b5d0fc3715abd6e1486cee935239491f1eb # Parent fde2085c4024233a553f7b2039296bb6622c4c35 fix GenerateCodeModel.py diff -r fde2085c4024 -r bcf54b5d0fc3 OrthancServer/Plugins/Include/orthanc/OrthancPluginCodeModel.json --- a/OrthancServer/Plugins/Include/orthanc/OrthancPluginCodeModel.json Wed Nov 19 12:48:59 2025 +0100 +++ b/OrthancServer/Plugins/Include/orthanc/OrthancPluginCodeModel.json Wed Nov 19 13:11:13 2025 +0100 @@ -2234,7 +2234,7 @@ "value": 2002 }, { - "documentation": "The TCP port of the HTTP server is privileged or already in use", + "documentation": "The TCP port of the HTTP server is privileged or already in use or one of the HTTP bind addresses does not exist", "key": "HttpPortInUse", "value": 2003 }, diff -r fde2085c4024 -r bcf54b5d0fc3 OrthancServer/Resources/CodeModel/GenerateCodeModel.py --- a/OrthancServer/Resources/CodeModel/GenerateCodeModel.py Wed Nov 19 12:48:59 2025 +0100 +++ b/OrthancServer/Resources/CodeModel/GenerateCodeModel.py Wed Nov 19 13:11:13 2025 +0100 @@ -475,7 +475,7 @@ # Check that the first argument is the Orthanc context if (len(args) == 0 or args[0].type.kind != clang.cindex.TypeKind.POINTER or - args[0].type.get_pointee().spelling != 'OrthancPluginContext'): + not args[0].type.get_pointee().spelling in [ 'OrthancPluginContext', 'const OrthancPluginContext' ]): print('[INFO] Not in the Orthanc SDK: %s()' % node.spelling) continue