Skip to content

Fix error in checking for generators in auto-tracing - #498

Merged
alexmojaki merged 3 commits into
mainfrom
alex/fix-auto-trace-generator-detection
Oct 14, 2024
Merged

alexmojaki merged 3 commits into
mainfrom
alex/fix-auto-trace-generator-detection

Conversation

@alexmojaki

Copy link
Copy Markdown
Contributor

Closes #495

Trying to compile a function in isolation caused an error when the function had nonlocal. So instead we just look for yield in the function definition AST.

@codecov

codecov Bot commented Oct 14, 2024 •

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (aa65f2d) to head (47bbb37).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #498   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          132       132           
  Lines         9959      9961    +2     
  Branches      1338      1341    +3     
=========================================
+ Hits          9959      9961    +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 14, 2024 •

Copy link
Copy Markdown

Deploying logfire-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 47bbb37
Status: ✅  Deploy successful!
Preview URL: https://01a19d0c.logfire-docs.pages.dev
Branch Preview URL: https://alex-fix-auto-trace-generato.logfire-docs.pages.dev

View logs

@alexmojaki
alexmojaki enabled auto-merge (squash) October 14, 2024 10:18
@alexmojaki
alexmojaki merged commit fe69568 into main Oct 14, 2024
@alexmojaki
alexmojaki deleted the alex/fix-auto-trace-generator-detection branch October 14, 2024 10:20
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.

autotracing broken with SyntaxError: no binding for nonlocal 'name' found

2 participants