You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
java formatter not enabled to be used in jupyter notebooks #4163
I have redhat java extension installed but when calling format document on a jupyter notebook it keeps reporting it cannot find formatter for "java" files.
is there some configuration needed to have vscode use the java formatter in jupyter notebooks?
@angelozerr i'm not saying jdt ls supports notebook - i'm saying that notebook reports no formatter for "java" is installed - hence I'm wondering why it says that because it seems jdt ls gets used everywhere else java code gets formatted in eclipse.
@tsmaeder currently running cursor.ai, create a notebook using any of the kernels from github.com/jupyter-java - but specifically trying out jbang install-kernel@jupyter-java --java 25 jbang which lets you choose a kernel that has code segments written in java.
but it fails the same using ijava, jjava, or others.
Activity
angelozerr commentedon Sep 17, 2025
@maxandersen are you sure that jdt ls suports notebook? I am not sure because if I remember notebook uses special file scheme.
tsmaeder commentedon Sep 17, 2025
@maxandersen a bit more info about your workspace/setup would be helpful.
maxandersen commentedon Sep 18, 2025
@angelozerr i'm not saying jdt ls supports notebook - i'm saying that notebook reports no formatter for "java" is installed - hence I'm wondering why it says that because it seems jdt ls gets used everywhere else java code gets formatted in eclipse.
@tsmaeder currently running cursor.ai, create a notebook using any of the kernels from github.com/jupyter-java - but specifically trying out
jbang install-kernel@jupyter-java --java 25 jbangwhich lets you choose a kernel that has code segments written in java.but it fails the same using ijava, jjava, or others.
snjeza commentedon Sep 22, 2025
Jupyter notebooks use the
vscode-notebook-cellurl scheme that Java LS doesn't recognize.@maxandersen Could you try VS Code Java 1.47.0 ?
maxandersen commentedon Oct 10, 2025
thanks for adding this - it now does format.. but unfortunately the format is ..well ...lets just call it non-optimal :)
opened #4207