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: issue running codemod on windows/wsl #1233

Closed
kevincam3 opened this issue Aug 15, 2024 · 6 comments
Closed

bug: issue running codemod on windows/wsl #1233

kevincam3 opened this issue Aug 15, 2024 · 6 comments
Labels
codemod-issue Any issues related to a codemod, FP or FN. ❤️ community contribution

Comments

@kevincam3
Copy link

Faulty codemod

  1. nuxt/4/migration-recipe

Sample code snippets

npx codemod@latest nuxt/4/migration-recipe

Original

npx codemod@latest nuxt/4/migration-recipe
[Error: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.secrets was not provided by any .service files]

Expected

No errors

Actual

[Error: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.secrets was not provided by any .service files]

Estimated impact

Numbers about your specific codemod run:

  • Total number of files/instances transformed: 0
  • Number of files/instances missed by the codemod (FN): All
  • Number of files/instances mistakenly transformed (FP): 0

Anything else that helps the community prioritize, e.g.:
I'm running the command on Windows 10 under WSL2. I restarted the computer and immediately ran the command in case something else was running interferring. I stopped Docker as well, but I still get the same error.

Logs:

I don't know where the log file(s) are located

Additional context

image

@kevincam3 kevincam3 added the codemod-issue Any issues related to a codemod, FP or FN. label Aug 15, 2024
@mohab-sameh
Copy link
Contributor

@kevincam3 You can use --logs to generate an error log file. Can you try again and report back?

@kevincam3
Copy link
Author

I ran this command. npx codemod@latest nuxt/4/migration-recipe --logs
but I don't see any log file. Where should the log file be saved?

@mohab-sameh
Copy link
Contributor

@DmytroHryshyn and I were not able to reproduce this on Mac and Windows. Could it be possibly caused by docker? By the way, we have a Slack community if you want to hop in and get support over chat.

@kevincam3
Copy link
Author

kevincam3 commented Aug 15, 2024

@DmytroHryshyn any idea why the log file is also not being generated or if it should be in some specific location other than the root of the project which is where I am when I run the command. I also I ran the command with docker not running and still the same error

@kevincam3
Copy link
Author

Video of the attempt in case something visual stands out.
https://drive.google.com/file/d/1hKel3GL7Aukbwy_QOt4C4xz-89dNQPwM/view?usp=drivesdk

@r4zendev
Copy link
Contributor

Should be fixed by #1241, keeping this issue open for now.

@alexbit-codemod alexbit-codemod changed the title [codemod][FP/FN] nuxt/4/migration-recipe bug: issue running codemod on windows/wsl Aug 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
codemod-issue Any issues related to a codemod, FP or FN. ❤️ community contribution
Projects
None yet
Development

No branches or pull requests

3 participants