{"action":"created","issue":{"url":"https://api.github.com/repos/fastlane/fastlane/issues/6264","repository_url":"https://api.github.com/repos/fastlane/fastlane","labels_url":"https://api.github.com/repos/fastlane/fastlane/issues/6264/labels{/name}","comments_url":"https://api.github.com/repos/fastlane/fastlane/issues/6264/comments","events_url":"https://api.github.com/repos/fastlane/fastlane/issues/6264/events","html_url":"https://github.com/fastlane/fastlane/issues/6264","id":178814027,"number":6264,"title":"runner.rb seems to be chdir'ing once extra in a rescue clause, causing a less meaningful exception","user":{"login":"owurman","id":1607105,"avatar_url":"https://avatars.githubusercontent.com/u/1607105?v=3","gravatar_id":"","url":"https://api.github.com/users/owurman","html_url":"https://github.com/owurman","followers_url":"https://api.github.com/users/owurman/followers","following_url":"https://api.github.com/users/owurman/following{/other_user}","gists_url":"https://api.github.com/users/owurman/gists{/gist_id}","starred_url":"https://api.github.com/users/owurman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/owurman/subscriptions","organizations_url":"https://api.github.com/users/owurman/orgs","repos_url":"https://api.github.com/users/owurman/repos","events_url":"https://api.github.com/users/owurman/events{/privacy}","received_events_url":"https://api.github.com/users/owurman/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/fastlane/fastlane/labels/awaiting-reply","name":"awaiting-reply","color":"bfe5bf"},{"url":"https://api.github.com/repos/fastlane/fastlane/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/fastlane/fastlane/labels/fastlane","name":"fastlane","color":"CCCCCC"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-09-23T08:21:32Z","updated_at":"2016-10-04T21:05:05Z","closed_at":null,"body":"runner.rb recovers from an error in a clause which does a chdir into the fastlane folder by chdir'ing into the fastlane folder yet again. This is causing a backtrace that says \"No such file or directory - {fastlane folder}\" when that's not actually true, and thus masking the real issue. I suggest removing the Dir.chdir(path_to_use) wrapper block from the rescue clause starting on runner.rb:59.\r\n\r\nWith the clause, I see this:\r\n\r\n```\r\n\t/Library/Ruby/Gems/2.0.0/gems/fastlane-1.104.0/lib/fastlane/runner.rb:59:in `chdir': [!] No such file or directory - ./fastlane/ (Errno::ENOENT)\r\n\tfrom /Library/Ruby/Gems/2.0.0/gems/fastlane-1.104.0/lib/fastlane/runner.rb:59:in `rescue in execute'\r\n\tfrom /Library/Ruby/Gems/2.0.0/gems/fastlane-1.104.0/lib/fastlane/runner.rb:44:in `execute'\r\n\tfrom /Library/Ruby/Gems/2.0.0/gems/fastlane-1.104.0/lib/fastlane/lane_manager.rb:46:in `cruise_lane'\r\n\tfrom /Library/Ruby/Gems/2.0.0/gems/fastlane-1.104.0/lib/fastlane/command_line_handler.rb:30:in `handle'\r\n\tfrom /Library/Ruby/Gems/2.0.0/gems/fastlane-1.104.0/lib/fastlane/commands_generator.rb:49:in `block (2 levels) in run'\r\n\tfrom /Library/Ruby/Gems/2.0.0/gems/commander-4.4.0/lib/commander/command.rb:178:in `call'\r\n\tfrom /Library/Ruby/Gems/2.0.0/gems/commander-4.4.0/lib/commander/command.rb:178:in `call'\r\n\tfrom /Library/Ruby/Gems/2.0.0/gems/commander-4.4.0/lib/commander/command.rb:153:in `run'\r\n\tfrom /Library/Ruby/Gems/2.0.0/gems/commander-4.4.0/lib/commander/runner.rb:444:in `run_active_command'\r\n\tfrom /Library/Ruby/Gems/2.0.0/gems/fastlane_core-0.52.0/lib/fastlane_core/ui/fastlane_runner.rb:36:in `run!'\r\n\tfrom /Library/Ruby/Gems/2.0.0/gems/commander-4.4.0/lib/commander/delegates.rb:15:in `run!'\r\n\tfrom /Library/Ruby/Gems/2.0.0/gems/fastlane-1.104.0/lib/fastlane/commands_generator.rb:246:in `run'\r\n\tfrom /Library/Ruby/Gems/2.0.0/gems/fastlane-1.104.0/lib/fastlane/commands_generator.rb:20:in `start'\r\n\tfrom /Library/Ruby/Gems/2.0.0/gems/fastlane-1.104.0/lib/fastlane/cli_tools_distributor.rb:58:in `take_off'\r\n\tfrom /Library/Ruby/Gems/2.0.0/gems/fastlane-1.104.0/bin/fastlane:5:in `<top (required)>'\r\n\tfrom /usr/local/bin/fastlane:23:in `load'\r\n\tfrom /usr/local/bin/fastlane:23:in `<main>'\r\n```\r\n\r\nThis is untrue as ./fastlane/ does actually exist.\r\n\r\nIf I remove it, I get the much more meaningful (real) exception:\r\n\r\n```\r\n\t/Library/Ruby/Gems/2.0.0/gems/fastlane_core-0.52.0/lib/fastlane_core/configuration/configuration_file.rb:24:in `eval': [!] No such file or directory - fastlane/Config (Errno::ENOENT)\r\n```\r\n\r\nAlthough fastlane/Config does exist, my pwd at this point is ./fastlane/, and ./fastlane/fastlane/Config does NOT exist.\r\n\r\nThis is all strange because it worked a week ago, but that's a different issue altogether (that fastlane seems to switch the concept of pwd on me periodically, but I'm not entirely sure that's a fastlane bug yet and not somehow the fault of my configuration).\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/fastlane/fastlane/issues/comments/251513321","html_url":"https://github.com/fastlane/fastlane/issues/6264#issuecomment-251513321","issue_url":"https://api.github.com/repos/fastlane/fastlane/issues/6264","id":251513321,"user":{"login":"owurman","id":1607105,"avatar_url":"https://avatars.githubusercontent.com/u/1607105?v=3","gravatar_id":"","url":"https://api.github.com/users/owurman","html_url":"https://github.com/owurman","followers_url":"https://api.github.com/users/owurman/followers","following_url":"https://api.github.com/users/owurman/following{/other_user}","gists_url":"https://api.github.com/users/owurman/gists{/gist_id}","starred_url":"https://api.github.com/users/owurman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/owurman/subscriptions","organizations_url":"https://api.github.com/users/owurman/orgs","repos_url":"https://api.github.com/users/owurman/repos","events_url":"https://api.github.com/users/owurman/events{/privacy}","received_events_url":"https://api.github.com/users/owurman/received_events","type":"User","site_admin":false},"created_at":"2016-10-04T21:05:05Z","updated_at":"2016-10-04T21:05:05Z","body":"Not sure why, but seems to be from calling xcodeproj::Project.save()\r\n\r\nIf you want to keep it open for now I can post what I find out from more investigation. I've switched gears for a moment (setting up Boarding for TestFlight)."}}
{"actor":{"display_login":"owurman"}}