Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add parentheses #441

Merged
merged 1 commit into from
Oct 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/main/scala/com/typesafe/sbteclipse/core/Eclipse.scala
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ private object Eclipse extends EclipseSDTConfig {
}

def onSuccess(state: State)(effects: IO[Seq[String]]): State = {
val names = effects.unsafePerformIO
val names = effects.unsafePerformIO()
if (names.isEmpty)
state.log.warn("There was no project to create Eclipse project files for!")
else
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ object EclipsePlugin {
// This is done to ease integration with Eclipse, but it's doubtful as to how effective it is.
val managedClassesDirectory = (scope / EclipseKeys.classesManaged).value

val managedSources = ((srcManaged ** "*.scala").get ++ (srcManaged ** "*.java").get)
val managedSources = ((srcManaged ** "*.scala").get() ++ (srcManaged ** "*.java").get())
.filter(f => f.getAbsolutePath.startsWith(baseDir.getAbsolutePath))
.map(f => PlainVirtualFileConverter.converter.toVirtualFile(sbt.io.Path.apply(f.getAbsolutePath.replace(baseDir.getAbsolutePath, "${BASE}")).asPath))
val managedClasses = managedSources
Expand All @@ -119,7 +119,7 @@ object EclipsePlugin {
// Copy modified class files
val managedSet = IO.copy(managedClasses)
// Remove deleted class files
(managedClassesDirectory ** "*.class").get.filterNot(managedSet.contains).foreach(_.delete())
(managedClassesDirectory ** "*.class").get().filterNot(managedSet.contains).foreach(_.delete())
}
analysis
}
Expand Down
Loading