Open Mictali opened 8 years ago
I just had the same problem with Emacs 24.5.1 and jdee-20160304.536 with variable 'jdee-build-function'.
However, I managed to go around the issue by doing describe-variable jdee-build-function
, and from the help buffer selecting "You can customize this variable". For some reason that customize buffer has no problem with the widget.
Using Emacs 25.0.92.1 (x86_64-w64-mingw32) release with the ELPA installed jdee-20160304.536 there is a consistent error when attempting to use emacs customization on the JDEE group. Every attempt to toggle a customization (clicking the triangle) item results in "Invalid widget type" error.
The customize groups appear to be creating an internal widget of type jdee-custom-variable for the high level item presented in the group. Due to what appear to be changes in cus-edit.el when those widgets are painted, the little drop down arrow is causing the triggering of the function 'custom-toggle-hide-variable' which is doing a specific comparison against the provided widget and the 'custom-variable' type. This comparison is failing as the jdee-custom-variable does not equal the custom-variable.
From what I can determine, when the customize page is being rendered the function custom-variable-value-create is being called for each entry and that looks to be inserting the action to call custom-toggle-hide-variable for every tree type.
I've tried various ways to prevent that but nothing works. Looks like the version of jdee-custom is no longer compatible with the version of custom.el that is shipping with emacs 25.
Just a followup - I tested on a Debian system also using emacs25 and have the same issues.