Skip to content

Fix #5645 - SWIG 4.4.0 breaks Python and Ruby bindings for methods taking std::vector<T> where T is only forward-declared in the defining .i module5645 swig - #5647

Open
jmarrec wants to merge 2 commits into
developfrom
5645-SWIG
Open

Fix #5645 - SWIG 4.4.0 breaks Python and Ruby bindings for methods taking std::vector<T> where T is only forward-declared in the defining .i module5645 swig#5647
jmarrec wants to merge 2 commits into
developfrom
5645-SWIG

Conversation

@jmarrec

@jmarrec jmarrec commented Aug 31, 2026

Copy link
Copy Markdown
Collaborator

Pull request overview

Ideally a newer SWIG version will fix it, but for now the workaround is to do the same as we do for C#: ignore, and reimplement later.

With this, OpenStudio-resources tests shadowcalculation.{py,rb}, shadingcontrol_singlezone.{py,rb} now work.

Pull Request Author

  • Model API Changes / Additions
  • Any new or modified fields have been implemented in the EnergyPlus ForwardTranslator (and ReverseTranslator as appropriate)
  • Model API methods are tested (in src/model/test)
  • EnergyPlus ForwardTranslator Tests (in src/energyplus/Test)
  • If a new object or method, added a test in NREL/OpenStudio-resources: Add Link
  • If needed, added VersionTranslation rules for the objects (src/osversion/VersionTranslator.cpp)
  • Verified that C# bindings built fine on Windows, partial classes used as needed, etc.
  • All new and existing tests passes
  • If methods have been deprecated, update rest of code to use the new methods

Labels:

  • If change to an IDD file, add the label IDDChange
  • If breaking existing API, add the label APIChange
  • If deemed ready, add label Pull Request - Ready for CI so that CI builds your PR

Review Checklist

This will not be exhaustively relevant to every PR.

  • Perform a Code Review on GitHub
  • Code Style, strip trailing whitespace, etc.
  • All related changes have been implemented: model changes, model tests, FT changes, FT tests, VersionTranslation, OS App
  • Labeling is ok
  • If defect, verify by running develop branch and reproducing defect, then running PR and reproducing fix
  • If feature, test running new feature, try creative ways to break it
  • CI status: all green or justified

@jmarrec jmarrec self-assigned this Aug 31, 2026
@jmarrec jmarrec added Pull Request - Ready for CI This pull request if finalized and is ready for continuous integration verification prior to merge. component - Ruby bindings component - Python bindings labels Aug 31, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🧪 Test Results Dashboard

Summary

Metric Value
Total Tests 0
Passed 0
Failed 0
Errors 0
Skipped 0
Success Rate 0.0%
Generated 2026-08-31 14:01:35 UTC

❌ Significant Test Failures

📊 Test Run Information

Run XML File Status
- No XML files found ❌ Missing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component - Python bindings component - Ruby bindings Pull Request - Ready for CI This pull request if finalized and is ready for continuous integration verification prior to merge.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant