Best-effort approach and bug report
See original GitHub issueFirst, 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:
- Created 4 years ago
- Comments:9 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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!Thanks again!