Skip to content
This repository was archived by the owner on Jun 8, 2023. It is now read-only.

Commit cb5c33f

Browse files
authored
Merge pull request #31 from fede0664/master
Update TempFileStore.scala
2 parents 9a9623c + 4173a28 commit cb5c33f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ensime-lsp/src/main/scala/org/github/dragos/vscode/TempFileStore.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class TempFileStore(val path: String) extends LazyLogging {
2626
case RawFile(path) => Success(path)
2727
case ArchiveFile(jar, entry) => Try {
2828
logger.info(s"Extracting $jar!$entry to $rootPath")
29-
val uri = URI.create(s"jar:file:$jar")
29+
val uri = URI.create(s"jar:${jar.toFile.toURI.toString}")
3030
val zipFile = FileSystems.newFileSystem(uri, new java.util.HashMap[String, String])
3131
val zipFilePath = zipFile.getPath(entry)
3232
val targetPath = if (entry.startsWith("/")) entry.drop(1) else entry

0 commit comments

Comments
 (0)