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

R2022a not work? #6

Open
cuixing158 opened this issue Mar 13, 2022 · 2 comments
Open

R2022a not work? #6

cuixing158 opened this issue Mar 13, 2022 · 2 comments

Comments

@cuixing158
Copy link

When I install this on my R2022a, the following error occurs when I hold down "alt+1". How do I fix it please?

 Unrecognized method, property, or field 'JavaEditor' for class
'matlab.desktop.editor.RtcEditorDocument'.
Error in matlab.desktop.editor.Document/get.JavaEditor (line 835)
            javaEditor = obj.Editor.JavaEditor;
Error in getWordAtCaretPosition (line 10)
    caretPosition = activeEditor.JavaEditor.getCaretPosition;
Error in insertSnippet/initializeGUI (line 300)
        wordAtCaretPosition = getWordAtCaretPosition();
Error in insertSnippet/showWindow (line 1011)
        initializeGUI;
Error in insertSnippet>showHiddenWindow (line 1147)
        ud.showWindowFH();
Error in insertSnippet (line 20)
if showHiddenWindow(windowTag) 
@ztjona
Copy link

ztjona commented Mar 13, 2022

It is the same problem reported in #3.
I made a Pull Request #5 fixing it, I used it every day in Matlab R2021b and it works perfectly.
Check it there.

@cuixing158
Copy link
Author

hi,@ztjona, i contribute a more easy use for matlab comment template, you can reference here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants