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

Can't Create Plugins on Windows #1480

Closed
retroandchill opened this issue Feb 2, 2024 · 2 comments
Closed

Can't Create Plugins on Windows #1480

retroandchill opened this issue Feb 2, 2024 · 2 comments

Comments

@retroandchill
Copy link

Report

I am unable to create plugins in Windows. Attempting to do so will fail without a folder being created.

What did you do?

Run danger plugins create <name> from either CMD or Powershell

What did you expect to happen?

A new directory with the skeleton of the danger plugin was created

What happened instead?

No folder was created and the following was printed instead

[!] using template 'https://github.com/danger/danger-plugin-template'
[!] The exception involves the following plugins:
 -  claide-plugins

C:/Users/<username>/.local/share/gem/ruby/3.2.0/gems/claide-plugins-0.9.2/lib/claide/executable.rb:51:in ``': No such file or directory - which git (Errno::ENOENT)
        from C:/Users/<username>/.local/share/gem/ruby/3.2.0/gems/claide-plugins-0.9.2/lib/claide/executable.rb:51:in `execute_command'
        from C:/Users/<username>/.local/share/gem/ruby/3.2.0/gems/claide-plugins-0.9.2/lib/claide/executable.rb:27:in `block in executable'
        from C:/Users/<username>/.local/share/gem/ruby/3.2.0/gems/claide-plugins-0.9.2/lib/claide/command/template_runner.rb:23:in `block in clone_template'
        from C:/Users/<username>/.local/share/gem/ruby/3.2.0/gems/cork-0.3.0/lib/cork/board.rb:184:in `section'
        from C:/Users/<username>/.local/share/gem/ruby/3.2.0/gems/claide-plugins-0.9.2/lib/claide/command/template_runner.rb:20:in `clone_template'
        from C:/Users/<username>/.local/share/gem/ruby/3.2.0/gems/claide-plugins-0.9.2/lib/claide/command/plugins/create.rb:51:in `run'
        from C:/Users/<username>/.local/share/gem/ruby/3.2.0/gems/claide-1.1.0/lib/claide/command.rb:334:in `run'
        from C:/Users/<username>/.local/share/gem/ruby/3.2.0/gems/danger-9.4.2/bin/danger:5:in `<top (required)>'
        from C:/Users/<username>/AppData/Local/Microsoft/WindowsApps/danger:25:in `load'
        from C:/Users/<username>/AppData/Local/Microsoft/WindowsApps/danger:25:in `<main>'

Your Environment

My machine has Ruby and Danger installed using gem and Windows 11 is the OS in question.

@orta
Copy link
Member

orta commented Feb 2, 2024

You might need to make claide support windows, it is using the command which - something I dont think is available on windows

@manicmaniac
Copy link
Member

manicmaniac commented Feb 9, 2024

@retroandchill

Thank you for your report.

However the root cause is not in Danger code base.
I will update claide-plugins after dbgrandi/claide-plugins#4 is resolved.

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

No branches or pull requests

3 participants