Skip to content

Commit

Permalink
Refactor code to exclude target files from file watcher
Browse files Browse the repository at this point in the history
  • Loading branch information
dislovemartin committed Nov 19, 2024
1 parent f0ae87b commit f79ea74
Show file tree
Hide file tree
Showing 7 changed files with 66 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .dockerrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"containers": [
"32e50bae31f0",
"4ee895617f56",
"57374f55975c",
"b11cbb12d229",
"daf805cbfe3d",
"587794e49331",
"4641ee26bf15",
"2a37e67dd26e",
"04b788651f7d"
]
}
6 changes: 6 additions & 0 deletions .metals/metals.lock.db
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#FileLock
#Mon Nov 18 19:26:55 EST 2024
hostName=localhost
id=19341d0ad3ffd35555a176afebbb3878e753f015217
method=file
server=localhost\:36527
40 changes: 40 additions & 0 deletions .metals/metals.log

Large diffs are not rendered by default.

Binary file added .metals/metals.mv.db
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"version":"1.4.0","project":{"name":"AI-snyk-fix-21cfee235f025aca7c6335a21d76ccfb_f4dd477a3a-test","directory":"/home/dislove/下载/AI-snyk-fix-21cfee235f025aca7c6335a21d76ccfb/.scala-build","workspaceDir":"/home/dislove/下载/AI-snyk-fix-21cfee235f025aca7c6335a21d76ccfb","sources":[],"dependencies":["AI-snyk-fix-21cfee235f025aca7c6335a21d76ccfb_f4dd477a3a"],"classpath":["/home/dislove/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/scala3-library_3/3.5.1/scala3-library_3-3.5.1.jar","/home/dislove/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/scala-library/2.13.14/scala-library-2.13.14.jar","/home/dislove/下载/AI-snyk-fix-21cfee235f025aca7c6335a21d76ccfb/.scala-build/AI-snyk-fix-21cfee235f025aca7c6335a21d76ccfb_f4dd477a3a/classes/main","/home/dislove/.cache/coursier/v1/https/repo1.maven.org/maven2/com/sourcegraph/semanticdb-javac/0.10.0/semanticdb-javac-0.10.0.jar"],"out":"/home/dislove/下载/AI-snyk-fix-21cfee235f025aca7c6335a21d76ccfb/.scala-build/.bloop/AI-snyk-fix-21cfee235f025aca7c6335a21d76ccfb_f4dd477a3a-test","classesDir":"/home/dislove/下载/AI-snyk-fix-21cfee235f025aca7c6335a21d76ccfb/.scala-build/AI-snyk-fix-21cfee235f025aca7c6335a21d76ccfb_f4dd477a3a/classes/test","scala":{"organization":"org.scala-lang","name":"scala-compiler","version":"3.5.1","options":["-Xsemanticdb","-sourceroot","/home/dislove/下载/AI-snyk-fix-21cfee235f025aca7c6335a21d76ccfb"],"jars":["/home/dislove/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/scala3-compiler_3/3.5.1/scala3-compiler_3-3.5.1.jar","/home/dislove/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/scala3-interfaces/3.5.1/scala3-interfaces-3.5.1.jar","/home/dislove/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/scala3-library_3/3.5.1/scala3-library_3-3.5.1.jar","/home/dislove/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/tasty-core_3/3.5.1/tasty-core_3-3.5.1.jar","/home/dislove/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/modules/scala-asm/9.6.0-scala-1/scala-asm-9.6.0-scala-1.jar","/home/dislove/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/compiler-interface/1.9.6/compiler-interface-1.9.6.jar","/home/dislove/.cache/coursier/v1/https/repo1.maven.org/maven2/org/jline/jline-reader/3.25.1/jline-reader-3.25.1.jar","/home/dislove/.cache/coursier/v1/https/repo1.maven.org/maven2/org/jline/jline-terminal/3.25.1/jline-terminal-3.25.1.jar","/home/dislove/.cache/coursier/v1/https/repo1.maven.org/maven2/org/jline/jline-terminal-jna/3.25.1/jline-terminal-jna-3.25.1.jar","/home/dislove/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/scala-library/2.13.14/scala-library-2.13.14.jar","/home/dislove/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/util-interface/1.9.8/util-interface-1.9.8.jar","/home/dislove/.cache/coursier/v1/https/repo1.maven.org/maven2/org/jline/jline-native/3.25.1/jline-native-3.25.1.jar","/home/dislove/.cache/coursier/v1/https/repo1.maven.org/maven2/net/java/dev/jna/jna/5.14.0/jna-5.14.0.jar"],"bridgeJars":["/home/dislove/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/scala3-sbt-bridge/3.5.1/scala3-sbt-bridge-3.5.1.jar"]},"java":{"options":["-Xplugin:semanticdb -sourceroot:/home/dislove/下载/AI-snyk-fix-21cfee235f025aca7c6335a21d76ccfb -targetroot:javac-classes-directory","-J--add-exports","-Jjdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED","-J--add-exports","-Jjdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED","-J--add-exports","-Jjdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED","-J--add-exports","-Jjdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED","-J--add-exports","-Jjdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED"]},"test":{"frameworks":[{"names":["com.novocode.junit.JUnitFramework"]},{"names":["org.scalatest.tools.Framework","org.scalatest.tools.ScalaTestFramework"]},{"names":["org.scalacheck.ScalaCheckFramework"]},{"names":["org.specs.runner.SpecsFramework","org.specs2.runner.Specs2Framework","org.specs2.runner.SpecsFramework"]},{"names":["utest.runner.Framework"]},{"names":["munit.Framework"]}],"options":{"excludes":[],"arguments":[]}},"platform":{"name":"jvm","config":{"home":"/usr/lib/jvm/java-21-openjdk-amd64","options":[]},"mainClass":[]},"resolution":{"modules":[{"organization":"org.scala-lang","name":"scala3-library_3","version":"3.5.1","artifacts":[{"name":"scala3-library_3","path":"/home/dislove/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/scala3-library_3/3.5.1/scala3-library_3-3.5.1.jar"},{"name":"scala3-library_3","classifier":"sources","path":"/home/dislove/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/scala3-library_3/3.5.1/scala3-library_3-3.5.1-sources.jar"}]},{"organization":"org.scala-lang","name":"scala-library","version":"2.13.14","artifacts":[{"name":"scala-library","path":"/home/dislove/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/scala-library/2.13.14/scala-library-2.13.14.jar"},{"name":"scala-library","classifier":"sources","path":"/home/dislove/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/scala-library/2.13.14/scala-library-2.13.14-sources.jar"}]}]},"tags":["test"]}}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"version":"1.4.0","project":{"name":"AI-snyk-fix-21cfee235f025aca7c6335a21d76ccfb_f4dd477a3a","directory":"/home/dislove/下载/AI-snyk-fix-21cfee235f025aca7c6335a21d76ccfb/.scala-build","workspaceDir":"/home/dislove/下载/AI-snyk-fix-21cfee235f025aca7c6335a21d76ccfb","sources":["/home/dislove/下载/AI-snyk-fix-21cfee235f025aca7c6335a21d76ccfb/ai_platform_setup/services/scala-service/ScalaService.scala"],"dependencies":[],"classpath":["/home/dislove/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/scala3-library_3/3.5.1/scala3-library_3-3.5.1.jar","/home/dislove/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/scala-library/2.13.14/scala-library-2.13.14.jar","/home/dislove/.cache/coursier/v1/https/repo1.maven.org/maven2/com/sourcegraph/semanticdb-javac/0.10.0/semanticdb-javac-0.10.0.jar"],"out":"/home/dislove/下载/AI-snyk-fix-21cfee235f025aca7c6335a21d76ccfb/.scala-build/.bloop/AI-snyk-fix-21cfee235f025aca7c6335a21d76ccfb_f4dd477a3a","classesDir":"/home/dislove/下载/AI-snyk-fix-21cfee235f025aca7c6335a21d76ccfb/.scala-build/AI-snyk-fix-21cfee235f025aca7c6335a21d76ccfb_f4dd477a3a/classes/main","scala":{"organization":"org.scala-lang","name":"scala-compiler","version":"3.5.1","options":["-Xsemanticdb","-sourceroot","/home/dislove/下载/AI-snyk-fix-21cfee235f025aca7c6335a21d76ccfb"],"jars":["/home/dislove/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/scala3-compiler_3/3.5.1/scala3-compiler_3-3.5.1.jar","/home/dislove/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/scala3-interfaces/3.5.1/scala3-interfaces-3.5.1.jar","/home/dislove/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/scala3-library_3/3.5.1/scala3-library_3-3.5.1.jar","/home/dislove/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/tasty-core_3/3.5.1/tasty-core_3-3.5.1.jar","/home/dislove/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/modules/scala-asm/9.6.0-scala-1/scala-asm-9.6.0-scala-1.jar","/home/dislove/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/compiler-interface/1.9.6/compiler-interface-1.9.6.jar","/home/dislove/.cache/coursier/v1/https/repo1.maven.org/maven2/org/jline/jline-reader/3.25.1/jline-reader-3.25.1.jar","/home/dislove/.cache/coursier/v1/https/repo1.maven.org/maven2/org/jline/jline-terminal/3.25.1/jline-terminal-3.25.1.jar","/home/dislove/.cache/coursier/v1/https/repo1.maven.org/maven2/org/jline/jline-terminal-jna/3.25.1/jline-terminal-jna-3.25.1.jar","/home/dislove/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/scala-library/2.13.14/scala-library-2.13.14.jar","/home/dislove/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/util-interface/1.9.8/util-interface-1.9.8.jar","/home/dislove/.cache/coursier/v1/https/repo1.maven.org/maven2/org/jline/jline-native/3.25.1/jline-native-3.25.1.jar","/home/dislove/.cache/coursier/v1/https/repo1.maven.org/maven2/net/java/dev/jna/jna/5.14.0/jna-5.14.0.jar"],"bridgeJars":["/home/dislove/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/scala3-sbt-bridge/3.5.1/scala3-sbt-bridge-3.5.1.jar"]},"java":{"options":["-Xplugin:semanticdb -sourceroot:/home/dislove/下载/AI-snyk-fix-21cfee235f025aca7c6335a21d76ccfb -targetroot:javac-classes-directory","-J--add-exports","-Jjdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED","-J--add-exports","-Jjdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED","-J--add-exports","-Jjdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED","-J--add-exports","-Jjdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED","-J--add-exports","-Jjdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED"]},"platform":{"name":"jvm","config":{"home":"/usr/lib/jvm/java-21-openjdk-amd64","options":[]},"mainClass":[]},"resolution":{"modules":[{"organization":"org.scala-lang","name":"scala3-library_3","version":"3.5.1","artifacts":[{"name":"scala3-library_3","path":"/home/dislove/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/scala3-library_3/3.5.1/scala3-library_3-3.5.1.jar"},{"name":"scala3-library_3","classifier":"sources","path":"/home/dislove/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/scala3-library_3/3.5.1/scala3-library_3-3.5.1-sources.jar"}]},{"organization":"org.scala-lang","name":"scala-library","version":"2.13.14","artifacts":[{"name":"scala-library","path":"/home/dislove/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/scala-library/2.13.14/scala-library-2.13.14.jar"},{"name":"scala-library","classifier":"sources","path":"/home/dislove/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/scala-library/2.13.14/scala-library-2.13.14-sources.jar"}]}]},"tags":["library"]}}
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"files.watcherExclude": {
"**/target": true
}
}

0 comments on commit f79ea74

Please sign in to comment.