poohbar
02/07/2021, 5:15 PMmaven-wrapper
fails to compile my project with this error:
[ERROR] Failed to execute goal org.jetbrains.kotlin:kotlin-maven-plugin:1.4.30:compile (compile) on project my-project: Compilation failure: Compilation failure:
[ERROR] /Users/poohbar/IdeaProjects/my-project/Controller.kt:[23,30] Unresolved reference: of
The line that it fails on looks like this:
val path = Path.of(folder, file)
And replacing it with:
val path = Paths.get(folder, file)
solves the issue.
So bizzarre. 😮poohbar
02/07/2021, 5:17 PMof
in quotes like this ` Path.of
` but that didnt helpephemient
02/07/2021, 5:17 PMephemient
02/07/2021, 5:18 PMpoohbar
02/07/2021, 5:19 PMPath
interfaceephemient
02/07/2021, 5:19 PMephemient
02/07/2021, 5:19 PMpoohbar
02/07/2021, 5:19 PMpoohbar
02/07/2021, 5:19 PM1.4.30
ephemient
02/07/2021, 5:19 PMpoohbar
02/07/2021, 5:20 PMpoohbar
02/07/2021, 5:20 PMpoohbar
02/07/2021, 5:24 PM