为什么sbt不创建项目文件? [英] Why doesn't sbt create project files?

查看:33
本文介绍了为什么sbt不创建项目文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试在我的 macbook 上安装 SBT.当我运行它时,它不会要求我提供任何项目定义(例如标题)而只是说

I have tried to install SBT on my macbook. When I run it, it doesn't ask me for any project definitions (e.g. title) and simply says

[info] Set current project to default (in build file:/Users/qui/Documents/Programming/test2/)

然后转到看起来像 sbt 解释器的部分.

It then goes to what looks like the sbt interpreter.

当我查看test2"时,有一个项目和目标目录,但我没有看到可以使用的 src 目录

When I look inside "test2", there is a project and target directory but I dont see a src directory to work with

很明显我在安装中的某个地方出错了,但我不确定在哪里.有什么想法吗?

Clearly I have gone wrong somewhere in my installation but I'm unsure where. Any ideas?

更新

所以我刚刚在全新的 Fedora 安装中安装了 0.10.而且我遇到了完全相同的问题,相同的信息"消息,它只创建了一个项目和目标目录

So I just installed 0.10 on a fresh fedora install. And I am getting the exact same problem, same "info" message and it has only created a project and target directory

我一定是在做一些愚蠢的事情吧?我究竟做错了什么?:p

I must be doing something idiotic right? What am I doing wrong? :p

推荐答案

不,您没有做错什么,sbt (0.7.x) 的先前版本确实询问您是否要创建项目.

No you're not doing something wrong, previous versions of sbt (0.7.x) did ask you if you wanted to create your project.

sbt 0.10.x 版是完全重写的,并且不会以相同的方式运行(即要求您在启动时创建一个项目).

sbt version 0.10.x is a complete rewrite and does not act the same way (i.e. ask you to create a project on startup).

旧项目在 googlecode 上,但后来转移到 github,您可以在 https://github.com/harrah/xsbt/wiki,特别是 https://github.com/harrah/xsbt/wiki/Settings 如果你来自 0.7.x 背景.

The old project was on googlecode but has since moved to github, you can find the documentation for 0.10.x at https://github.com/harrah/xsbt/wiki, in particular https://github.com/harrah/xsbt/wiki/Settings if you come from a 0.7.x background.

一开始很难理解新的设置系统,但是当我说你会喜欢它时请相信我:)

It's a bit hard to wrap your head around the new settings system at first, but trust me when I say you'll love it :)

这篇关于为什么sbt不创建项目文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆