sbt

libraryDependencies Spark in build.sbt error (IntelliJ)

十年热恋 提交于 2021-02-11 16:53:30
问题 I am trying to learning Scala with Spark. I am following a tutorial but I am having an error, when I try to import the library dependencies of Spark : libraryDependencies += "org.apache.spark" %% "spark-core" % "2.4.3" I am getting the following error : And I have 3 Unkwons artifacts. What could be the problem here? My code is so simple, it is just a Hello World. 回答1: Probably you need to add to your build.sbt : resolvers += "spark-core" at "https://mvnrepository.com/artifact/org.apache.spark

libraryDependencies Spark in build.sbt error (IntelliJ)

☆樱花仙子☆ 提交于 2021-02-11 16:50:29
问题 I am trying to learning Scala with Spark. I am following a tutorial but I am having an error, when I try to import the library dependencies of Spark : libraryDependencies += "org.apache.spark" %% "spark-core" % "2.4.3" I am getting the following error : And I have 3 Unkwons artifacts. What could be the problem here? My code is so simple, it is just a Hello World. 回答1: Probably you need to add to your build.sbt : resolvers += "spark-core" at "https://mvnrepository.com/artifact/org.apache.spark

Running scala in cmd makes i look like I am missing 'build.sbt'

我与影子孤独终老i 提交于 2021-02-11 12:53:27
问题 I'm trying to run Scala in my command line. I checked my java, went to the Scala website, downloaded and installed it, updated my environment variables. So far the only thing different from guides online is that the folder where sbt is installed does not include a "lib" folder. I then run sbt command in my prompt, and I get this message: It looks like I'm missing a file called build.sbt , what is this? and do i need it? Edit: If I press 'continue' on the picture above, I get sbt:scalaproj>

ScalaZ3 installation issue

牧云@^-^@ 提交于 2021-02-11 07:01:47
问题 I am trying to install ScalaZ3 by using the site https://github.com/epfl-lara/ScalaZ3 . I cloned the code into my directory on Windows, opened a Linux terminal and ran sbt +package . At first it returned several errors since I am using Ubuntu Linux subsystem on Windows, so I had to comment out some lines in mk_util.py to make it work. I now encounter another problem where it is trying to run a "make" file but it can't find it. It has the correct directory path and the file exists in that

ScalaZ3 installation issue

我怕爱的太早我们不能终老 提交于 2021-02-11 07:01:32
问题 I am trying to install ScalaZ3 by using the site https://github.com/epfl-lara/ScalaZ3 . I cloned the code into my directory on Windows, opened a Linux terminal and ran sbt +package . At first it returned several errors since I am using Ubuntu Linux subsystem on Windows, so I had to comment out some lines in mk_util.py to make it work. I now encounter another problem where it is trying to run a "make" file but it can't find it. It has the correct directory path and the file exists in that

Why value method cannot be used outside macros?

走远了吗. 提交于 2021-02-08 09:37:12
问题 The error message `value` can only be used within a task or setting macro, such as :=, +=, ++=, Def.task, or Def.setting. val x = version.value ^ clearly indicates how to fix the problem, for example, using := val x = settingKey[String]("") x := version.value The explanation in sbt uses macros heavily states The value method itself is in fact a macro, one that if you invoke it outside of the context of another macro, will result in a compile time error, the exact error message being... And

IntelliJ cannot resolve jsDependency when connected to corporate VPN

白昼怎懂夜的黑 提交于 2021-02-08 07:42:01
问题 When I'm connected to my company's VPN, IntelliJ is unable to resolve certain jsDependencies. I have set proxy settings in IntelliJ to point to my corporate proxy server, but this seems to make no difference. If I disconnect from the VPN, then everything builds fine... Error:Error while importing SBT project:<br/>...<br/><pre>[info] Resolving org.eclipse.jetty#jetty-util;8.1.16.v20140903 ... [info] Resolving org.eclipse.jetty#jetty-io;8.1.16.v20140903 ... [info] Resolving org.eclipse.jetty

IntelliJ cannot resolve jsDependency when connected to corporate VPN

六眼飞鱼酱① 提交于 2021-02-08 07:41:07
问题 When I'm connected to my company's VPN, IntelliJ is unable to resolve certain jsDependencies. I have set proxy settings in IntelliJ to point to my corporate proxy server, but this seems to make no difference. If I disconnect from the VPN, then everything builds fine... Error:Error while importing SBT project:<br/>...<br/><pre>[info] Resolving org.eclipse.jetty#jetty-util;8.1.16.v20140903 ... [info] Resolving org.eclipse.jetty#jetty-io;8.1.16.v20140903 ... [info] Resolving org.eclipse.jetty

How to import sbt projects to Eclipse?

故事扮演 提交于 2021-02-07 20:16:41
问题 I want to import my sbt projects to Eclipse. While searching on the Internet I came to know there is an sbteclipse plugin for Eclipse to import sbt projects, but I don't know how to do this. I am using Eclipse Kelper and sbt 0.13 on Ubuntu 12.04 LTS. 回答1: tl;dr Use Scala IDE for Eclipse. sbteclipse is a plugin for sbt itself and aims to "create Eclipse project definitions" that in turn doesn't require installing any plugins in Eclipse. sbt is a build tool while Eclipse is an IDE. While both

ANSI escape characters does not appear the way they should on Eclipse console

时光毁灭记忆、已成空白 提交于 2021-02-04 21:41:52
问题 I have a Scala project and I use Scala-Eclipse-Plugin along with sbt. So far so good. But the problem is that sbt writes some ANSI escape sequences to the output (I might be wrong about this?).They appear pretty well when I invoke sbt from shell but inside eclipse, they appear like this: [0m[[0minfo[0m] [34m[0m what's wrong ? 回答1: The Eclipse console does not support ANSI escape sequences. 回答2: See the discussion for "an eclipse console view that respects ansi color codes" I followed the