0

我对 2.10.3 和 Slick (Codegen) 生成的代码有疑问。它似乎非常相似

Scalac 挂在 RegexParser 的相位类型器上

Codegen 生成的其他文件可以工作,但这个文件永远挂在“scalac:phase typer Foo.scala”中

我能看到的唯一区别是表中的列数导致大量的 val 和像这样的大型 cons'ed 列表

def * = WordRootID :: WordID :: WordHeadID :: SynonymID :: PronunciationID :: Rank :: BNCFrequency :: CompassDifficulty :: DifficultyNormalized :: DifficultySourceCode :: COCARank :: PartOfSpeech :: AttributeNounProper :: AttributeNounGerund :: AttributePronounType :: AttributeVerbIrregular :: AttributeAdjectiveParticiple :: AttributeArticleType :: AttributeNumber :: AttributeLanguage :: AttributeIdiom :: AttributeMultiWord :: AttributeExcluded :: AttributePrivate :: en_DefinitionDeprecated :: en_QuizDefinitionDeprecated :: en_SourceDeprecated :: ja_WordDeprecated :: ja_SourceDeprecated :: ja_DifficultyDeprecated :: ko_WordDeprecated :: ko_SourceDeprecated :: zh_WordDeprecated :: zh_SourceDeprecated :: es_WordDeprecated :: es_SourceDeprecated :: pt_WordDeprecated :: pt_SourceDeprecated :: tr_WordDeprecated :: tr_SourceDeprecated :: vi_WordDeprecated :: vi_Source :: ReviewCode :: Active :: DateModified :: DateCreated :: en_QuizDefinitionDateModifiedDeprecated :: WordRootAssetID :: Locked :: AttributeStudiable :: WhiteListingStatus :: HNil

当我注释掉大部分字段并将列表减少到像这样小的东西时,编译器完成

def * = WordRootID :: WordID :: WordHeadID :: AttributeLanguage :: HNil 

然而,这并不是一个理想的编码方式。任何帮助将不胜感激!

非常感谢彼得

4

1 回答 1

1

谢谢 Cvogt,升级到 2.11 成功了。正如您所说,这是 2.10.3 编译器的问题,现在似乎已修复。

于 2014-12-30T17:21:30.647 回答