manicmaniac / danger-periphery

A Danger plugin to detect unused codes using Periphery.
https://www.rubydoc.info/gems/danger-periphery/
MIT License
25 stars 7 forks source link

Unable to Access Periphery Instance using periphery.install #235

Closed Xopoko closed 3 months ago

Xopoko commented 3 months ago

Hello! I'm trying to use the latest beta version of Periphery, but periphery instance is unavailable in Dangerfile. An error occurs when I attempt to access it. Here's the error message:

[!] Invalid `Dangerfile` file: No such file or directory @ rb_sysopen - bin/periphery. Updating the Danger gem might fix the issue. Your Danger version: 9.4.3, latest Danger version: 9.5.0
\e[0m
 #  from Dangerfile:58
 #  -------------------------------------------
 #  def runPeriphery
 >    periphery.install(
 #      version: '3.0.0.beta2', 
 #  -------------------------------------------

My code in Dangerfile:

def runPeriphery
  periphery.install(
    version: '3.0.0.beta2', 
    path: 'bin/periphery', 
    force: true
  )
  periphery.scan(project: 'MyProject.xcworkspace')
end

# Run Periphery
runPeriphery

UPD:

It was my problem. Idk why but mise and periphery works weird together.