Skip to content
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

[BUG] vue-sfcmod doesn't tell which input files caused a codemod crash #37

Open
3 tasks
Sidnioulz opened this issue Sep 13, 2023 · 0 comments
Open
3 tasks
Labels
bug Something isn't working
Milestone

Comments

@Sidnioulz
Copy link
Owner

Describe the bug
When running a codemod over thousands of files, there'll be a few that the underlying compilers can't handle for various reasons.

But the engine only prints the jscodeshift / Vue compiler error and never tells which files crashed and were not transformed.

To Reproduce
General issue, not relevant for it to be fixed

Desktop (please complete the following information):

  • OS [e.g. iOS]: any
  • CLI environment [e.g. local CLI, GitHub CI, GitLab CI]: any
  • Node Version [e.g. 18]: any
  • Vue version [e.g. 3.3.0]: any

Additional context

  • A proper solution should print the filename as the error shows in the log,
  • but also a summary of failed files at the end of the run
  • The return value of the CLI shoudl reflect the error state
@Sidnioulz Sidnioulz added the bug Something isn't working label Sep 13, 2023
@Sidnioulz Sidnioulz added this to the v1 milestone Sep 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant