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

error when "sbt run" #32

Open
coleea opened this issue Apr 10, 2023 · 2 comments
Open

error when "sbt run" #32

coleea opened this issue Apr 10, 2023 · 2 comments

Comments

@coleea
Copy link

coleea commented Apr 10, 2023

Envirionment

Windows 10 Pro Version 2009

$ > java --version
java 20 2023-03-21
Java(TM) SE Runtime Environment (build 20+36-2344)
Java HotSpot(TM) 64-Bit Server VM (build 20+36-2344, mixed mode, sharing)
scala --version
Scala code runner version 3.2.2 -- Copyright 2002-2023, LAMP/EPFL

I run "sbt run" in ".\zio-quickstart-hello-world" directory
but error occurs like this

[info] welcome to sbt 1.8.2 (Oracle Corporation Java 20)
[info] loading project definition from J:\project\study\fp-libraries\zio-quickstarts\zio-quickstart-hello-world\project
J:\project\study\fp-libraries\zio-quickstarts\zio-quickstart-hello-world\build.sbt:3: error: not found: value stdSettings
    .settings(stdSettings())
              ^
J:\project\study\fp-libraries\zio-quickstarts\zio-quickstart-hello-world\build.sbt:4: error: not found: value enableZIO
    .settings(enableZIO())
              ^
sbt.compiler.EvalException: Type error in expression
[error] sbt.compiler.EvalException: Type error in expression
[error] Use 'last' for the full log.
[warn] Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore? (default: r)

What I am missing ?
thank you

@gusost
Copy link

gusost commented May 31, 2023

Having the same issue

Environment
MacBook Pro - Apple M1 Max - macOS 13.4

zio-quickstart-hello-world % java -version 
openjdk version "1.8.0_322"
OpenJDK Runtime Environment (Zulu 8.60.0.21-CA-macos-aarch64) (build 1.8.0_322-b06)
OpenJDK 64-Bit Server VM (Zulu 8.60.0.21-CA-macos-aarch64) (build 25.322-b06, mixed mode)
zio-quickstart-hello-world % scala --version
Scala code runner version 3.2.2 -- Copyright 2002-2023, LAMP/EPFL

Running sbt run yields the same complaint about not found:

zio-quickstart-hello-world % sbt run
[info] welcome to sbt 1.8.2 (Azul Systems, Inc. Java 1.8.0_322)
[info] loading project definition from /Users/syb/Documents/GitHub/zio-quickstarts/zio-quickstart-hello-world/project
/Users/syb/Documents/GitHub/zio-quickstarts/zio-quickstart-hello-world/build.sbt:3: error: not found: value stdSettings
    .settings(stdSettings())
              ^
/Users/syb/Documents/GitHub/zio-quickstarts/zio-quickstart-hello-world/build.sbt:4: error: not found: value enableZIO
    .settings(enableZIO())
              ^
sbt.compiler.EvalException: Type error in expression
[error] sbt.compiler.EvalException: Type error in expression
[error] Use 'last' for the full log.
[warn] Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore? (default: r)

@GrigoriiBerezin
Copy link
Contributor

Hello, as I can see, now it is fixed and all zio plugin stuff was moved into root sbt file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants