pmd / pmd/pmd-eclipse-plugin

Project properties: The currently displayed page contains invalid values

Open
#117 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Java
Stars
99
Forks
42
Avg merge
20h 19m
Merged PRs (30d)
19

Description

I clicked on Project > Properties and then selected the PMD tab. I get the following error message:

Title: Could Not Accept Changes
Message: The currently displayed page contains invalid values.

The content section of the window is blank.

I tried uninstalling and re-installing the plugin and I get the same error.

Are there some property files I can remove to workaround this problem.

I am running Eclipse 2019-12 (4.14.0) build id 20191212-1212 with PMD Plug-in version 4.10.1.v20200207-1909 on Windows 10 version 1903. I am running Eclipse on HotSpot 11.0.4.

In Eclipse's Error Log, I see 2 errors: Error instantiating a rule and Problems occurred when invoking code from plug-in: "org.eclipse.jface". The latter has an exception ClassNotFoundException. The message complains about a class for a custom Java rule I wrote. I removed the custom rule from my PMD ruleset XML file and I can now see the property page.

How do I add my custom class so that the PMD plugin can use it? I tried "Select a working set..." on the property page but that did not seem to work.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the Eclipse Project > Properties > PMD tab flow and inspect the Error Log entries for “Error instantiating a rule” and the ClassNotFoundException. Reproduce with the custom rule in the ruleset, then verify that the custom class can be resolved and the PMD property page displays its contents without the invalid-values error.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.