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

Plugin uses some API which isn't available in IDEA 11 #26

Closed
chashnikov opened this issue Sep 21, 2011 · 6 comments
Closed

Plugin uses some API which isn't available in IDEA 11 #26

chashnikov opened this issue Sep 21, 2011 · 6 comments
Assignees
Milestone

Comments

@chashnikov
Copy link

When *.proto file is opened the following exception is thrown:

java.lang.NoSuchMethodError: com.intellij.psi.impl.PsiManagerEx.getResolveCache()Lcom/intellij/psi/impl/source/resolve/ResolveCache;
at protobuf.lang.psi.impl.reference.PbRefImpl.resolve(PbRefImpl.java:219)
at protobuf.annotator.PbAnnotator.visitRef(PbAnnotator.java:114)

See http://confluence.jetbrains.net/display/IDEA/IDEA+11+API+Changes for full list of API changes.

@tcripps
Copy link
Collaborator

tcripps commented Sep 21, 2011

Thanks for the tip, Nik. I haven't tried the EAP yet. I guess it's time to do so.

@kgignatyev
Copy link

This issue bites me too

@ghost ghost assigned tcripps Oct 23, 2011
@tcripps
Copy link
Collaborator

tcripps commented Oct 23, 2011

This is, unfortunately, due to an API that has changed between IDEA 10 and IDEA 11 with no deprecation window. Fixing this means that the new version of the plugin for IDEA 11 will not be backward-compatible, without doing a bunch of reflection tricks and hoop-jumping.

@tcripps
Copy link
Collaborator

tcripps commented Oct 28, 2011

I believe this issue is resolved.

@tcripps tcripps closed this as completed Oct 28, 2011
tcripps pushed a commit that referenced this issue Oct 28, 2011
* Get the project's ResolveCache in a way that is compatible with both IDEA 10 and 11.
* Implemented getPresentableFile method of the SourceGeneratingCompiler interface.

* Bumped plugin version to 0.5
@tcripps tcripps reopened this Oct 31, 2011
@kgignatyev
Copy link

Please provide downloadable jar, it is a bit of a hassle to setup yet another IDEA just to build the plugin, by some reasons Idea Ultimate does not recognize this project

@tcripps
Copy link
Collaborator

tcripps commented Nov 11, 2011

I've uploaded version 0.5a1 of the plugin to allow use with the EAP release. Enjoy.

@tcripps tcripps closed this as completed Dec 6, 2011
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