question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Best-effort approach and bug report

See original GitHub issue

First, thank you for working on this project, it is awesome!

I’ve been running it through some projects and I noticed that for most, the conversion can’t complete. I just get an error message. So, I hacked together some try/catch in the code in order to ignore parsing exceptions and attempt to output what was successfully converted.

Would you consider “hardening” pytocs like that?

You can try running it through a large Python project for testing…

.

Here is one example of the type of errors that would interrupt the whole process:

class TestClass:
    def TestFunction(self):
        return TestValue(
            {
                **something
            }
        )

The Parser fails at line 2331 with k being null (which throws a NullRefEx).

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
uxmalcommented, Sep 4, 2019

I’ve made a few commits that should address the issues you mentioned above. After the fixes, pytocs manages to parse https://github.com/ytdl-org/youtube-dl without crashing. I’ll close the issue again, and look at some other large Python projects in my spare time. Thanks for reporting this!

0reactions
MuleaneEvecommented, Sep 4, 2019

Thanks again!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Write a Good Bug Report? Tips and Tricks
A good bug report helps fix the bugs more effectively. Here's the procedure on how to write an excellent bug report.
Read more >
SonarLint - Bug hunting season is open
As I teased earlier, SonarLint aims to find complex bugs. ... consume an infinite amount of resources (CPU/Memory) so this is a best-effort...
Read more >
Intro: Challenge at Hand - Conifer User Guide - Rhizome.org
The Best-Effort Approach. Web archiving with Conifer always works on a best effort basis: we're doing what we can in a large, diverse...
Read more >
How to Write an Effective Bug Report
Take a more proactive approach to software bugs and learn how to create an effective bug report that actually gets resolved.
Read more >
FAQs - Report an issue and submission guidelines
Guidance for identifying and reporting Microsoft security vulnerabilities. ... Report an issue and submission guidelines. Frequently Asked Questions.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found