diff --git a/api/src/main/java/io/kafbat/ui/serdes/builtin/ProtobufFileSerde.java b/api/src/main/java/io/kafbat/ui/serdes/builtin/ProtobufFileSerde.java index 51c921603..36fa74e4b 100644 --- a/api/src/main/java/io/kafbat/ui/serdes/builtin/ProtobufFileSerde.java +++ b/api/src/main/java/io/kafbat/ui/serdes/builtin/ProtobufFileSerde.java @@ -411,7 +411,10 @@ private Map loadFilesWithLocations() { // relative path will be used as "import" statement String relativePath = baseLocation.relativize(path).toString(); var protoFileElement = ProtoParser.Companion.parse( - Location.get(baseLocation.toString(), relativePath), + Location.get( + baseLocation.toString().replace('\\', '/'), + relativePath.replace('\\', '/') + ), readFileAsString(path) ); filesByLocations.put(relativePath, ProtoFile.Companion.get(protoFileElement));