Cannot find symbol variable StoragePathMacros

I'm trying to implement PersistentStateComponent, and get the error "cannot find symbol variable StoragePathMacros" during compile when referencing it in an @State annotation for the file attribute. I'm using IntelliJ IDEA version 11.1.4. For example:


  name = "MySettings"

  storages = {

    @Storage( id = "myId", file = StoragePathMacros.WORKSPACE_FILE)



Any suggestions?

Thanks in advance for your help.

1 comment
Comment actions Permalink

StoragePathMacros class was introduced in IDEA 12. You need to create an IDEA SDK pointing to IDEA 12 distribution if you want to use it in your code.

Nikolay Chashnikov
Software Developer
JetBrains, Inc
"Develop with pleasure!"


Please sign in to leave a comment.