FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Improve "No constructor matches given arguments" message with more details by lostmsu · Pull Request #1143 · pythonnet/pythonnet · GitHub

Repository navigation

Improve "No constructor matches given arguments" message with more details - #1143

Merged
filmor merged 1 commit into
pythonnet:masterfrom
losttech:PR/ConstructorNotFoundMessage
May 14, 2020
Merged

filmor merged 1 commit into
pythonnet:masterfrom
losttech:PR/ConstructorNotFoundMessage

Conversation

lostmsu commented May 14, 2020

Copy link
Copy Markdown
Member

Similar to #900, but for constructors (reuses the same code moved around)

What does this implement/fix? Explain your changes.

This adds more details to "No constructor matches given arguments" message.

Was

No constructor matches given arguments

Now

No constructor matches given arguments for IntPtr: (int, list)

Does this close any currently open issues?

Does not close any issue, but is related to: #811, #265, #1116

…tails

Similar to pythonnet#900, but for constructors (reuses the same code)

Related issues: pythonnet#811, pythonnet#265, pythonnet#1116

codecov-io commented May 14, 2020 •
edited
Loading

Copy link
Copy Markdown

Codecov Report

Merging #1143 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #1143   +/-   ##
=======================================
  Coverage   86.66%   86.66%           
=======================================
  Files           1        1           
  Lines         300      300           
=======================================
  Hits          260      260           
  Misses         40       40           
Flag Coverage Δ
#setup_linux 65.33% <ø> (ø)
#setup_windows 72.00% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 72fae73...72e6bf7. Read the comment docs.

var description = Runtime.PyObject_Unicode(type);
if (description != IntPtr.Zero)
{
to.Append(Runtime.GetManagedString(description));

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

If GetManagedString fails, you leak description

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Ah, but I see that is not your doing but was already in the code...

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

@filmor it is still my doing :-D

filmor merged commit 6d2f0bd into pythonnet:master May 14, 2020
lostmsu deleted the PR/ConstructorNotFoundMessage branch May 14, 2020 19:42
AlexCatarino pushed a commit to QuantConnect/pythonnet that referenced this pull request Jun 29, 2020
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL