Handling package.scala

Scala plugin doesn't recognize the canonical use of Scala's package object in package.scala and marks the package name with a warning. For example, a package object that resides in the project in the com.company.util directory is typically done as follows where the package statement of com.company is completed by the object's name of util:
  package com.company



  package object util {
     //...
  }


Thanks,

Jon

P.S. Using nightly 0.4.651

4 comments
Comment actions Permalink

There is a bug open for this: http://youtrack.jetbrains.net/issue/SCL-2871?query=%23scala+package+object+name

You could vote for and watch that bug to track the progress.

-jason

0
Comment actions Permalink

Voted. Thanks, Jason, for pointing that out. As a user and creater of package objects, this bug annoys.

Jon

0
Comment actions Permalink

This bug is marked as fixed, but it's still in the current version. How to best communicate that it's still there? Open a new ticket or is commenting on the closed bug enough?

0
Comment actions Permalink

When is support for Analyze > Locate Duplicates expected for Scala code?

Thanks,
Jon

0

Please sign in to leave a comment.