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:
@State(
name = "MySettings"
storages = {
@Storage( id = "myId", file = StoragePathMacros.WORKSPACE_FILE)
}
)
Any suggestions?
Thanks in advance for your help.
Please sign in to leave a comment.
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
http://www.jetbrains.com
"Develop with pleasure!"