Scalac hanging in phase typer

旧巷老猫 提交于 2019-12-13 07:17:38

问题


I am having a problem with 2.10.3 and code generated by Slick (Codegen). It seems very similar to

Scalac hanging on phase typer of RegexParser

Other files generated by Codegen work, but this one just hangs forever in "scalac: phase typer Foo.scala"

The only difference I can see is the number of columns in the table resulting in lots of vals and large cons'ed lists like this

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

When I comment out most of fields and cut down the lists to something small like this the compiler finishes

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

However, this is hardly an ideal way to code. Any help would be very much appreciated!

Thank you very much Peter


回答1:


Thank you Cvogt, upgrading to 2.11 did the trick. As you said, this is a problem with the 2.10.3 compiler and seems to be fixed now.



来源:https://stackoverflow.com/questions/27698965/scalac-hanging-in-phase-typer

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!