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

object ops is not a member of package ammonite #25

Open
yzy26353520 opened this issue Oct 2, 2022 · 4 comments
Open

object ops is not a member of package ammonite #25

yzy26353520 opened this issue Oct 2, 2022 · 4 comments

Comments

@yzy26353520
Copy link

Bug

cmd1.sc:2: object ops is not a member of package ammonite
val res1_1 = interp.load.module(ammonite.ops.Path(java.nio.file.FileSystems.getDefault().getPath(path)))
^Compilation Failed

image

Environment

win10
scala 2.12.16
almond 0.13
jupyter notebook

How to fix it

The comments in the link

After the solution

image

@yzy26353520
Copy link
Author

use almond 0.5.0 instead of 0.13
>almond0.5.bat --install --force
github.com/almond-sh/almond/releases/tag/v0.5.0

@hhucchenyixiao
Copy link

val path = System.getProperty("user.dir") + "/source/load-spinal.sc"
interp.load.module(os.Path(java.nio.file.FileSystems.getDefault().getPath(path)))

改成os后就没问题了

@futurehome
Copy link

改成os之后,报下面的问题,而且怎么会有spinalhdl-core_3的版本呢?
image

@futurehome
Copy link

问题解决了,需要安装Scala 2,而不是Scala 3.

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