-
Notifications
You must be signed in to change notification settings - Fork 39
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
sbt compile #796
Comments
I saw this but it will be a couple of hours before I can look closely. |
I didn't find the folder called 'reach-processors_2.12/1.6.2' on org.clulab. |
Can you say what command you issued and which directory you were in at the time? The output does not match what I see. Also, how did you get the files to your computer and are you using the master branch? Thanks. |
This was caused by command sbt compile and the directory is /Users/luohaomiao/reach. For getting files, I use command git clone ... under directory: /Users/luohaomiao. Also, I'm not sure if my build.sbt is configured well or not. I add the equivalent SBT dependencies into /Users/luohaomiao/reach/build.sbt: organization := "org.clulab", // Default to 2.12, but still cross-build for 2.11. crossScalaVersions := Seq("2.11.12", "2.12.8"), scalacOptions ++= Seq("-feature", "-unchecked", "-deprecation"), testOptions in Test += Tests.Argument("-oD"), libraryDependencies ++= Seq( parallelExecution in Global := false, // publish to a maven repo // the standard maven repository // let’s remove any repositories for optional dependencies in our artifact // mandatory stuff to add to the pom for publishing // ) lazy val root = (project in file(".")) lazy val bioresources = project // this stores BioNLPProcessor and its models lazy val main = project lazy val causalAssembly = project.in(file("assembly")) lazy val context = project.in(file("context")) lazy val export = project // // these are the steps to be performed during release |
It sounds like you are saying that you changed the libraryDependencies ++= Seq(
"org.clulab" %% "reach-main" % "1.6.2"), likely cause a problem. The build file in this repo is used to create |
Okey, this is first time to use sbt. Thanks for your suggestion. Also, where should I run sbt compile and sbt assembly to compile the source code, in my new created project, or in the reach? |
I guess I should run sbt compile and sbt assembly to install REACH locally. I delete the lines you mentioned, but when I run sbt assembly it actually caused the error: (base) MacBook-Pro-81:reach luohaomiao$ sbt assembly |
It looks like we haven't run |
I need to use: |
Great. It will take a couple of days until I can fix assembly.
…On Wed, Jun 28, 2023, 2:44 AM HaomiaoLuoLlanio ***@***.***> wrote:
I need to use:
*sbt 'runMain org.clulab.reach.RunReachCLI'*
to get output.
—
Reply to this email directly, view it on GitHub
<#796 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACCHCOXGNJO6N7QVK2MW7E3XNN45JANCNFSM6AAAAAAZV5H6QU>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Assembly should be fixed as of #798. I'll close the issue, but if it doesn't work for you as intended, please reopen. Thanks again for alerting us of the issue. |
Hi, I was unable to compile the reach, the error:
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
[info] welcome to sbt 1.4.0 (Homebrew Java 11.0.19)
[info] loading settings for project reach-build from plugins.sbt ...
[info] loading project definition from /Users/luohaomiao/reach/project
[info] loading settings for project root from build.sbt,version.sbt ...
[info] loading settings for project bioresources from build.sbt ...
[info] loading settings for project processors from build.sbt ...
[info] loading settings for project main from build.sbt ...
[info] loading settings for project causalAssembly from build.sbt ...
[info] loading settings for project context from build.sbt ...
[info] loading settings for project export from build.sbt ...
[info] set current project to reach-exe (in build file:/Users/luohaomiao/reach/)
[warn] there are 2 keys that are not used by any other settings/tasks:
[warn]
[warn] * bioresources / releaseProcess
[warn] +- /Users/luohaomiao/reach/bioresources/build.sbt:11
[warn] * root / releaseProcess
[warn] +- /Users/luohaomiao/reach/build.sbt:122
[warn]
[warn] note: a setting might still be used by a command; to exclude a key from this
lintUnused
check[warn] either append it to
Global / excludeLintKeys
or call .withRank(KeyRanks.Invisible) on the key[info] Executing in batch mode. For better performance use sbt's shell
[info] Updating
[info] Resolved dependencies
[warn]
[warn] Note: Unresolved dependencies path:
[error] sbt.librarymanagement.ResolveException: Error downloading org.clulab:reach-processors_2.12:1.6.2
[error] Not found
[error] Not found
[error] not found: /Users/luohaomiao/.ivy2/local/org.clulab/reach-processors_2.12/1.6.2/ivys/ivy.xml
[error] not found: https://repo1.maven.org/maven2/org/clulab/reach-processors_2.12/1.6.2/reach-processors_2.12-1.6.2.pom
[error] at lmcoursier.CoursierDependencyResolution.unresolvedWarningOrThrow(CoursierDependencyResolution.scala:258)
[error] at lmcoursier.CoursierDependencyResolution.$anonfun$update$38(CoursierDependencyResolution.scala:227)
[error] at scala.util.Either$LeftProjection.map(Either.scala:573)
[error] at lmcoursier.CoursierDependencyResolution.update(CoursierDependencyResolution.scala:227)
[error] at sbt.librarymanagement.DependencyResolution.update(DependencyResolution.scala:60)
[error] at sbt.internal.LibraryManagement$.resolve$1(LibraryManagement.scala:53)
[error] at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$12(LibraryManagement.scala:103)
[error] at sbt.util.Tracked$.$anonfun$lastOutput$1(Tracked.scala:73)
[error] at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$20(LibraryManagement.scala:116)
[error] at scala.util.control.Exception$Catch.apply(Exception.scala:228)
[error] at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$11(LibraryManagement.scala:116)
[error] at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$11$adapted(LibraryManagement.scala:97)
[error] at sbt.util.Tracked$.$anonfun$inputChangedW$1(Tracked.scala:219)
[error] at sbt.internal.LibraryManagement$.cachedUpdate(LibraryManagement.scala:130)
[error] at sbt.Classpaths$.$anonfun$updateTask0$5(Defaults.scala:3440)
[error] at scala.Function1.$anonfun$compose$1(Function1.scala:49)
[error] at sbt.internal.util.$tilde$greater.$anonfun$$u2219$1(TypeFunctions.scala:62)
[error] at sbt.std.Transform$$anon$4.work(Transform.scala:68)
[error] at sbt.Execute.$anonfun$submit$2(Execute.scala:282)
[error] at sbt.internal.util.ErrorHandling$.wideConvert(ErrorHandling.scala:23)
[error] at sbt.Execute.work(Execute.scala:291)
[error] at sbt.Execute.$anonfun$submit$1(Execute.scala:282)
[error] at sbt.ConcurrentRestrictions$$anon$4.$anonfun$submitValid$1(ConcurrentRestrictions.scala:265)
[error] at sbt.CompletionService$$anon$2.call(CompletionService.scala:64)
[error] at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
[error] at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
[error] at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
[error] at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
[error] at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
[error] at java.base/java.lang.Thread.run(Thread.java:829)
[error] (bioresources / update) sbt.librarymanagement.ResolveException: Error downloading org.clulab:reach-processors_2.12:1.6.2
[error] Not found
[error] Not found
[error] not found: /Users/luohaomiao/.ivy2/local/org.clulab/reach-processors_2.12/1.6.2/ivys/ivy.xml
[error] not found: https://repo1.maven.org/maven2/org/clulab/reach-processors_2.12/1.6.2/reach-processors_2.12-1.6.2.pom
[error] Total time: 2 s, completed Jun 27, 2023, 1:06:41 PM
The text was updated successfully, but these errors were encountered: