scala> :power
** Power User mode enabled - BEEP BOOP SPIZ **
** :phase has been set to 'typer'. **
** scala.tools.nsc._ has been imported **
** global._ and definitions._ also imported **
** Try :help, vals.<tab>, power.<tab> **
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Welcome to Scala version 2.9.1.RC2 (Java HotSpot(TM) 64-Bit Server VM, Java 1.6.0_26). | |
Type in expressions to have them evaluated. | |
Type :help for more information. | |
scala> :power | |
** Power User mode enabled - BEEP BOOP SPIZ ** | |
** :phase has been set to 'typer'. ** | |
** scala.tools.nsc._ has been imported ** | |
** global._ and definitions._ also imported ** | |
** Try :help, vals.<tab>, power.<tab> ** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val projectCommand = AttributeKey[Boolean]("project-command", "Marks Commands that were registered for the current Project.") | |
val sessionSettings = AttributeKey[SessionSettings]("session-settings", "Tracks current build, project, and setting modifications.") | |
val stateBuildStructure = AttributeKey[Load.BuildStructure]("build-structure", "Data structure containing all information about the build definition.") | |
val logged = AttributeKey[Logger]("log", "Provides a Logger for commands.") | |
val analysis = AttributeKey[inc.Analysis]("analysis", "Analysis of compilation, including dependencies and generated outputs.") | |
val globalBaseDirectory = AttributeKey[File]("global-base-directory", "The base directory for global sbt configuration and staging.") | |
val isModule = AttributeKey[Boolean]("is-module", "True if the target is a module.") | |
val isDummyTask = AttributeKey[Boolean]("is-dummy-task", "Internal: used to identify dummy tasks. sbt injects values for these tasks at the start of task execution.") | |
val taskDefinitionKey |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Welcome to Scala version 2.9.0.1 (OpenJDK 64-Bit Server VM, Java 1.6.0_20). | |
Type in expressions to have them evaluated. | |
Type :help for more information. | |
scala> import twitter4j.media.MediaProvider | |
import twitter4j.media.MediaProvider | |
scala> MediaProvider. | |
IMG_LY LOCKERZ MOBYPICTURE PLIXI POSTEROUS TWIPL TWIPPLE | |
TWITGOO TWITPIC YFROG asInstanceOf isInstanceOf toString |
以下のtreeのsbt0.11のbranchをbuildして使ってみた
https://github.com/harrah/xsbt/tree/c256c03f48bf0c92772803c42219f5091d65a6bf
- sbtの勉強したい
- デフォルトでimportやimplicit定義されてるものとか知りたい
そして2.9系だと
- https://github.com/scalaz/scalaz/blob/master/project/ScalazBuild.scala
- 201行
- コード生成してる
- 複数のScalaのversionのCross Build
- sxr の生成。sxrの生成のために scalaz-full というプロジェクトを定義してる?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ mkdir sbt-session-test | |
$ cd sbt-session-test | |
$ sbt | |
[info] Set current project to default-e081c7 (in build file:/Users/scalachan/sbt-session-test/) | |
> set scalaVersion := "2.9.0-1" | |
[info] Reapplying settings... | |
[info] Set current project to default-e081c7 (in build file:/Users/scalachan/sbt-session-test/) | |
> set libraryDependencies += "org.scala-tools.time" %% "time" % "0.4" | |
[info] Reapplying settings... | |
[info] Set current project to default-e081c7 (in build file:/Users/scalachan/sbt-session-test/) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!SLIDE | |
# 超簡単にかっこいいSlideを作れるサイトをつくったよぉーー | |
!SLIDE | |
こんなことした↓ | |
[Picture Show ためしてみたお( ^ω^) ](http://d.hatena.ne.jp/xuwei/20110903/1315044919) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Uncaught exception from servlet | |
java.lang.UnsupportedOperationException: Position.line | |
at scala.tools.nsc.util.Position$class.line(Position.scala:173) | |
at scala.tools.nsc.util.NoPosition$.line(Position.scala:193) | |
at com.twitter.util.Eval$StringCompiler$$anon$1.display(Eval.scala:404) | |
at scala.tools.nsc.reporters.AbstractReporter.info0(AbstractReporter.scala:45) | |
at scala.tools.nsc.reporters.Reporter.error(Reporter.scala:56) | |
at scala.tools.nsc.Global.error(Global.scala:141) | |
at scala.tools.nsc.symtab.SymbolLoaders$SymbolLoader.complete(SymbolLoaders.scala:72) | |
at scala.tools.nsc.symtab.SymbolLoaders$SymbolLoader.complete(SymbolLoaders.scala:35) |