Skip to content

Commit

Permalink
Issue #51: plugin crash with java.lang.NoSuchMethodError
Browse files Browse the repository at this point in the history
- Fix an incompatibility with version 13.x due to an API method removal.
- Due to the API change, the minimum supported version is now IDEA 13.
  • Loading branch information
travismorton committed Jul 15, 2014
1 parent 3ae374e commit 30a6888
Show file tree
Hide file tree
Showing 9 changed files with 39 additions and 16 deletions.
6 changes: 1 addition & 5 deletions .idea/ant.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions .idea/copyright/profiles_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 9 additions & 4 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/runConfigurations/idea_plugin_protobuf.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions .idea/scopes/scope_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion META-INF/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,15 @@
]]>
</description>
<!-- please see http://confluence.jetbrains.net/display/IDEADEV/Build+Number+Ranges for description -->
<idea-version since-build="123"/><!-- Idea 12 -->
<idea-version since-build="133"/><!-- Idea 13 -->
<change-notes>
<![CDATA[
<p>0.5.7</p>
<ul>
<li>Fix an incompatibility with version 13.x due to an API method removal.</li>
<li>Fix an occasional error generating a safe package name for validating build item validity state.</li>
<li>Due to the API change, the minimum supported version is now IDEA 13.</li>
</ul>
<p>0.5.6</p>
<ul>
<li>No longer re-compiles proto files that are up to date when using the external compiler.</li>
Expand Down
8 changes: 8 additions & 0 deletions ReleaseNotes.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
==== 0.5.7
* Fix an incompatibility with version 13.x due to an API method removal.
* Due to the API change, the minimum supported version is now IDEA 13.
* Fix an occasional error generating a safe package name for validating build item validity state.

==== 0.5.6
* Fixes a bug in detecting the state of the generated files. The bug meant that Java files would be generated even when there was no change to the .proto files. This should speed up compilation of projects significantly.

==== 0.5.5
* Changes to support IDEA 13. The minimum version changed to IDEA 12.
* Minor bug fix for collapse all in the structure view for .proto files.
Expand Down
3 changes: 2 additions & 1 deletion src/protobuf/lang/psi/impl/reference/PbRefImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,8 @@ public CompletionKind getCompletionKind() {

public static class ExperimentalResolver implements ResolveCache.Resolver {

public PsiElement resolve(PsiReference refElement, boolean incompleteCode) {
@Override
public PsiElement resolve(@NotNull PsiReference refElement, boolean incompleteCode) {
final PbRefImpl ref = (PbRefImpl) refElement;
final ReferenceKind refKind = ref.getRefKind();
final PbRef qualifier = ref.getQualifierRef();
Expand Down

0 comments on commit 30a6888

Please sign in to comment.