开发者

Intellij IDEA showing error on legit Scala code

I am new to Scala and IntelliJ IDEA. I am learning Lift from Simply Lift examples. I have setup my IDE as per instructions provided here. I am using Maven based approach.The Scala plugin is versioned (0.4.1084 -- latest as of June 30, 2011). IntelliJ IDEA version is 10.5.

The archetype is

 -DarchetypeGroupId=net.liftweb \
 -DarchetypeArtifactId=lift-archetype-blank_2.8.1 \
 -DarchetypeVersion=2.3 \
 -DarchetypeRepository=http://scala-tools.org/repo-releases \
 -DremoteRepositories=http://scala-tools.org/repo-releases \
 -DgroupId=com.company \
 -DartifactId=lift_test \
 -Dversion=1.0

When I started coding the Snippet and Sitemap example. I see IDE show error (and nasty wavy line below the code) at the following line

  Menu.i("Info") / "info" submenus (
    Menu.i("About") / "about" >> Hidden >> LocGroup("bottom"),
    Menu.i("Contact") / "contact",
    Menu.i("Feedback") / "feedback" >> LocGroup("bottom")
    ),

The error says,

Expression of type (Menu.Menuable , Menu.Menuable with Menu.withSlash, 
Menu.Menuable) doesn't conform to expected type ConvertableToMenu

However, when I run a Maven > Install or Compile 'Boot.scala from IDEA they seem to run without error.

I am having hard time on getting Scala/Lift working perfectly on either of the two IDEs, IDEA and Eclipse.

Pleas开发者_如何学Pythone let me know what am I missing?


I have added a bug report, you may see it here http://youtrack.jetbrains.net/issue/SCL-3429?projectKey=SCL


The plugin is still under development. Good code red and bad code green are both issues that arise in every day usage. If you want to help with the development of the plugin, please file a bug report with a short example demonstrating your issue.

http://youtrack.jetbrains.net/issues/SCL

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜