{"record":{"id":"7661d82574c51e8a","repo":"quarkusio/quarkus","slug":"failed-to-compare-p1-to-p2","errorCode":null,"errorMessage":"Failed to compare ${p1} to ${p2}","messagePattern":"Failed to compare (.+?) to (.+?)","errorType":"exception","errorClass":"RuntimeException","httpStatus":null,"severity":"error","filePath":"independent-projects/tools/devtools-common/src/main/java/io/quarkus/devtools/project/buildfile/MavenProjectBuildFile.java","lineNumber":201,"sourceCode":"\n    private static List<ArtifactCoords> collectPlatformDescriptors(List<ArtifactCoords> managedDeps, MessageWriter log) {\n        if (managedDeps.isEmpty()) {\n            return Collections.emptyList();\n        }\n        final List<ArtifactCoords> result = new ArrayList<>(4);\n        for (ArtifactCoords c : managedDeps) {\n            if (PlatformArtifacts.isCatalogArtifact(c)) {\n                result.add(c);\n            }\n        }\n        return result;\n    }\n\n    private static boolean isSameFile(Path p1, Path p2) {\n        try {\n            return Files.isSameFile(p1, p2);\n        } catch (IOException e) {\n            throw new RuntimeException(\"Failed to compare \" + p1 + \" to \" + p2, e);\n        }\n    }\n\n    private Model model;\n    private List<ArtifactCoords> managedDependencies;\n    private Properties projectProps;\n    private Supplier<List<ArtifactCoords>> projectDepsSupplier;\n    private List<ArtifactCoords> dependencies;\n    private List<ArtifactCoords> importedPlatforms;\n    private MavenArtifactResolver resolver;\n\n    private MavenProjectBuildFile(Path projectDirPath, ExtensionCatalog extensionsCatalog, Model model,\n            Supplier<List<ArtifactCoords>> projectDeps,\n            List<ArtifactCoords> projectManagedDeps,\n            Properties projectProps, MavenArtifactResolver resolver) {\n        super(projectDirPath, extensionsCatalog);\n        this.model = model;\n        this.projectDepsSupplier = projectDeps;","sourceCodeStart":183,"sourceCodeEnd":219,"githubUrl":"https://github.com/quarkusio/quarkus/blob/e1c734241f34c7919086ceb4c9262b4a58f6de44/independent-projects/tools/devtools-common/src/main/java/io/quarkus/devtools/project/buildfile/MavenProjectBuildFile.java#L183-L219","documentation":"RuntimeException from MavenProjectBuildFile.isSameFile: Files.isSameFile threw (typically an IOException because one of the two paths does not exist — e.g. an expected pom or catalog file is missing) while comparing two filesystem paths of project files. The two path arguments are interpolated into the message.","triggerScenarios":"Thrown at independent-projects/tools/devtools-common/src/main/java/io/quarkus/devtools/project/buildfile/MavenProjectBuildFile.java:201 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify both compared files exist on disk","Regenerate or restore the missing project file identified by the paths in the message"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"e1c734241f34c7919086ceb4c9262b4a58f6de44","analyzedAt":"2026-09-05T17:01:29.979Z","contentChangedAt":"2026-09-05T17:01:29.979Z","schemaVersion":2},"datasetVersion":"2026-09-12T22:17:10.623Z"}