我遇到了2.10.3的问题和Slick(Codegen)生成的代码。它似乎与
非常相似Scalac hanging on phase typer of RegexParser
Codegen工作生成的其他文件,但这个文件只是永远挂在" scalac:阶段typer Foo.scala"
我能看到的唯一区别是表格中的列数导致了大量的val和像这样的大缺点列表
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
然而,这不是一种理想的编码方式。非常感谢任何帮助!
非常感谢你 彼得
答案 0 :(得分:1)
谢谢Cvogt,升级到2.11就行了。正如你所说,这是2.10.3编译器的问题,现在似乎已修复。