{"record":{"id":"d5baa6ad5436123f","repo":"iberianpig/fusuma","slug":"not-found-match-data-1-match-data-2-gem","errorCode":null,"errorMessage":"Not Found: #{match_data[1]}/#{match_data[2]}/*.gemspec","messagePattern":"Not Found: #(.+?)/#(.+?)/\\*\\.gemspec","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"lib/fusuma/plugin/manager.rb","lineNumber":44,"sourceCode":"      def exclude_path_pattern\n        %r{fusuma/plugin/[^/]*.rb}\n      end\n\n      #: () -> Array[untyped]\n      def fusuma_default_plugin_paths\n        @_fusuma_default_plugin_paths ||= Dir.glob(File.expand_path(\"#{__dir__}/../../#{search_key}\")).grep_v(exclude_path_pattern).sort\n      end\n\n      # @return [Array<String>] paths of external plugins (installed by gem)\n      #: () -> Array[untyped]\n      def fusuma_external_plugin_paths\n        @_fusuma_external_plugin_paths ||=\n          Gem.find_latest_files(search_key).map do |siblings_plugin|\n            next unless %r{fusuma-plugin-(.+).*/lib/#{plugin_dir_name}/.+\\.rb}.match?(siblings_plugin)\n\n            match_data = siblings_plugin.match(%r{(.*)/(.*)/lib/(.*)})\n            plugin_gemspec_path = Dir.glob(\"#{match_data[1]}/#{match_data[2]}/*.gemspec\").first\n            raise \"Not Found: #{match_data[1]}/#{match_data[2]}/*.gemspec\" unless plugin_gemspec_path\n\n            plugin_gemspec = Gem::Specification.load(plugin_gemspec_path)\n            fusuma_gemspec_path = File.expand_path(\"../../../fusuma.gemspec\", __dir__ || \".\")\n            fusuma_gemspec = Gem::Specification.load(fusuma_gemspec_path)\n            next if plugin_gemspec == fusuma_gemspec\n\n            if plugin_gemspec.dependencies.find { |d| d.name == \"fusuma\" }&.match?(fusuma_gemspec)\n              siblings_plugin\n            else\n              MultiLogger.warn \"#{plugin_gemspec.name} #{plugin_gemspec.version} is incompatible with running #{fusuma_gemspec.name} #{fusuma_gemspec.version}\"\n              MultiLogger.warn \"gemspec: #{plugin_gemspec_path}\"\n              next\n            end\n          end.compact.grep_v(exclude_path_pattern).sort\n      end\n\n      # @return [String] search key for plugin\n      # @example","sourceCodeStart":26,"sourceCodeEnd":62,"githubUrl":"https://github.com/iberianpig/fusuma/blob/43a7eb04fe6c0709a646be183a612e56e5f60a2e/lib/fusuma/plugin/manager.rb#L26-L62","documentation":"Error \"Not Found: #{match_data[1]}/#{match_data[2]}/*.gemspec\" thrown in iberianpig/fusuma.","triggerScenarios":"Thrown at lib/fusuma/plugin/manager.rb:44 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Reinstall the fusuma plugin gem (gem install fusuma-plugin-NAME) so its .gemspec file is present in the gem directory.","Repair a corrupted gem installation with gem pristine fusuma-plugin-NAME, or uninstall and reinstall the plugin.","Ensure the plugin gem name follows the fusuma-plugin-* convention so its gemspec sits next to its lib directory."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"43a7eb04fe6c0709a646be183a612e56e5f60a2e","analyzedAt":"2026-08-23T06:17:53.504Z","schemaVersion":2},"datasetVersion":"2026-08-23T08:06:27.607Z"}