{"record":{"id":"b38f5a5a328c650b","repo":"hashicorp/vagrant","slug":"vagrant-moved-cwd","errorCode":null,"errorMessage":"vagrant.moved_cwd","messagePattern":"vagrant\\.moved_cwd","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"lib/vagrant/machine.rb","lineNumber":661,"sourceCode":"      @data_dir.join(\"creator_uid\")\n    end\n\n    # Checks the current directory for a given machine\n    # and displays a warning if that machine has moved\n    # from its previous location on disk. If the machine\n    # has moved, it prints a warning to the user.\n    def check_cwd\n      desired_encoding = @env.root_path.to_s.encoding\n      vagrant_cwd_filepath = @data_dir.join('vagrant_cwd')\n      vagrant_cwd = if File.exist?(vagrant_cwd_filepath)\n                      File.read(vagrant_cwd_filepath,\n                        external_encoding: desired_encoding\n                      ).chomp\n                    end\n\n      if !File.identical?(vagrant_cwd.to_s, @env.root_path.to_s)\n        if vagrant_cwd\n          ui.warn(I18n.t(\n            'vagrant.moved_cwd',\n            old_wd:     \"#{vagrant_cwd}\",\n            current_wd: \"#{@env.root_path.to_s}\"))\n        end\n        File.write(vagrant_cwd_filepath, @env.root_path.to_s,\n          external_encoding: desired_encoding\n        )\n      end\n    end\n  end\nend\n","sourceCodeStart":643,"sourceCodeEnd":673,"githubUrl":"https://github.com/hashicorp/vagrant/blob/35f3160f4ad6edc3a9f3aa9570adfc1a4d73aaa5/lib/vagrant/machine.rb#L643-L673","documentation":"Error \"vagrant.moved_cwd\" thrown in hashicorp/vagrant.","triggerScenarios":"Thrown at lib/vagrant/machine.rb:661 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"}