Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Presentation Compiler gets confused by enum-valued annotation parameter values #4607

Open
scabug opened this issue May 18, 2011 · 4 comments

Comments

@scabug
Copy link

scabug commented May 18, 2011

The attached file contains a small sbt project that compiles fine, but if I edit the source with ensime activated in emacs, the annotation argument is highlighted as "annotation argument needs to be a constant; found: AnEnum.BAR" The source for the two class files in lib/annot.jar is in the archive, too, but outside of the project so as not to trigger #2764. This is probably the problem discussed in comments [http://lampsvn.epfl.ch/trac/scala/ticket/2764#comment:28 28] to [http://lampsvn.epfl.ch/trac/scala/ticket/2764#comment:31 31] there.

  • Scala: 2.8.1, 2.9.0
  • Java: java version "1.6.0_20" OpenJDK Runtime Environment (!IcedTea6 1.9.7) (6b20-1.9.7-0ubuntu1) OpenJDK 64-Bit Server VM (build 19.0-b09, mixed mode)
  • Operating system: Linux (Ubuntu 10.10)
@scabug
Copy link
Author

scabug commented May 18, 2011

Imported From: https://issues.scala-lang.org/browse/SI-4607?orig=1
Reporter: Florian Hars (florian)
See #2764
Attachments:

  • annot.tar.gz (created on May 18, 2011 2:30:21 PM UTC, 1771 bytes)

@scabug
Copy link
Author

scabug commented Mar 5, 2012

Igor Petruk (igor-petruk) said:
+1 For IDEA 11

@scabug
Copy link
Author

scabug commented May 12, 2012

@soc said:
Florian, Igor, could you check if this issue is solved in latest Scala trunk, since #2764 is fixed?

@SethTisue
Copy link
Member

someone want to take a look and see whether this should remain open?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants