{"record":{"id":"579fd47954b67ec6","repo":"hashicorp/vagrant","slug":"the-registered-guest-capability-cap-for-the-d","errorCode":null,"errorMessage":"The registered guest capability '%{cap}' for the\ndetected guest OS '%{guest}' is invalid. The capability does\nnot implement the proper method. This is a bug with Vagrant or the\nplugin that implements this capability. Please report a bug.","messagePattern":"The registered guest capability '%(.+?)' for the\ndetected guest OS '%(.+?)' is invalid\\. The capability does\nnot implement the proper method\\. This is a bug with Vagrant or the\nplugin that implements this capability\\. Please report a bug\\.","errorType":"exception","errorClass":"Vagrant::Errors::GuestCapabilityInvalid","httpStatus":null,"severity":"error","filePath":"lib/vagrant/guest.rb","lineNumber":51,"sourceCode":"    # the class to actually execute capabilities.\n    def detect!\n      guest_name = @machine.config.vm.guest\n      initialize_capabilities!(guest_name, @guests, @capabilities, @machine)\n    rescue Errors::CapabilityHostExplicitNotDetected => e\n      raise Errors::GuestExplicitNotDetected, value: e.extra_data[:value]\n    rescue Errors::CapabilityHostNotDetected\n      raise Errors::GuestNotDetected\n    end\n\n    # See {CapabilityHost#capability}\n    def capability(*args)\n      super\n    rescue Errors::CapabilityNotFound => e\n      raise Errors::GuestCapabilityNotFound,\n        cap: e.extra_data[:cap],\n        guest: name\n    rescue Errors::CapabilityInvalid => e\n      raise Errors::GuestCapabilityInvalid,\n        cap: e.extra_data[:cap],\n        guest: name\n    end\n\n    # Returns the specified or detected guest type name.\n    #\n    # @return [Symbol]\n    def name\n      capability_host_chain[0][0]\n    end\n\n    # This returns whether the guest is ready to work. If this returns\n    # `false`, then {#detect!} should be called in order to detect the\n    # guest OS.\n    #\n    # @return [Boolean]\n    def ready?\n      !!capability_host_chain","sourceCodeStart":33,"sourceCodeEnd":69,"githubUrl":"https://github.com/hashicorp/vagrant/blob/35f3160f4ad6edc3a9f3aa9570adfc1a4d73aaa5/lib/vagrant/guest.rb#L33-L69","documentation":"Error \"The registered guest capability '%{cap}' for the\ndetected guest OS '%{guest}' is invalid. The capability does\nnot implement the proper method. This is a bug with Vagrant or the\nplugin that implements this capability. Please report a bug.\" thrown in hashicorp/vagrant.","triggerScenarios":"Thrown at lib/vagrant/guest.rb:51 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"35f3160f4ad6edc3a9f3aa9570adfc1a4d73aaa5","analyzedAt":"2026-08-21T13:34:32.514Z","schemaVersion":2},"datasetVersion":"2026-08-21T18:17:14.833Z"}