-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
fix(ast-spec): use Expression
in argument of ThrowStatement
#9632
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(ast-spec): use Expression
in argument of ThrowStatement
#9632
Conversation
Thanks for the PR, @dak2! typescript-eslint is a 100% community driven project, and we are incredibly grateful that you are contributing to that community. The core maintainers work on this in their personal time, so please understand that it may not be possible for them to review your work immediately. Thanks again! 🙏 Please, if you or your company is finding typescript-eslint valuable, help us sustain the project by sponsoring it transparently on https://opencollective.com/typescript-eslint. |
✅ Deploy Preview for typescript-eslint ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
☁️ Nx Cloud ReportCI is running/has finished running commands for commit 1567418. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this CI Pipeline Execution ✅ Successfully ran 2 targetsSent with 💌 from NxCloud. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't correct! The type of argument
should just be Expression
as per the title of the issue.
Expression
in argument of ThrowStatement
Thanks! Looks like I was mistaken, I fixed it to use Expression. |
I don't know why CI failed. Perhaps there is an error when running |
Here's the relevant log in CI (I believe):
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Brilliant - thanks for this!
Once we fix the build errors we're good to land this
cc @JamesHenry - I think that NX is improperly caching the build here. |
@bradzacher @Josh-Cena |
I've tried deleting cache, tried prebuild, but it doesn't seem to work. |
@dak2 You don't need to worry about CI failures. As long as your code is valid, the burden of fixing the CI is on the team. |
- name: Check if ast-spec files changed | ||
id: changed-files | ||
uses: tj-actions/changed-files@v41 | ||
with: | ||
files: packages/ast-spec/src/** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you revert this or move this to a separate PR/issue if it's necessary?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You don't need to worry about CI failures. As long as your code is valid, the burden of fixing the CI is on the team.
Thanks!!
Can you revert this or move this to a separate PR/issue if it's necessary?
Undo file changes in github actions.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #9632 +/- ##
==========================================
- Coverage 88.03% 88.03% -0.01%
==========================================
Files 407 407
Lines 13942 13941 -1
Branches 4072 4071 -1
==========================================
- Hits 12274 12273 -1
Misses 1355 1355
Partials 313 313
Flags with carried forward coverage won't be shown. Click here to find out more.
|
@bradzacher Sorry I missed your comment here, let's double check and make sure we have the cache inputs set up correctly for this case |
The reason for the failure was that we were telling nx to exclude test files from build cache inputs. In our repo we are actually consistent with our usage of |
Thanks again @dak2! |
PR Checklist
Overview
Expression
in argument ofThrowStatement