code-snippets not working anymore

Having trouble installing Oxygen? Got a bug to report? Post it all here.
martinanton
Posts: 8
Joined: Mon Oct 18, 2021 5:43 pm

code-snippets not working anymore

Post by martinanton »

I am on MacOS Big Sur 11.6 and today I updated from OxygenXML 23 to 24 by just dragging the new folder to the programs folder thus replacing the old Oxygen folder. My project specific shortcuts are still there but I cannot get the code snippets to show. I can change the shortcut in the shortcut menu. I can use other shortcuts like command+e for an envelopping element. But I can not access the snippets, not with the normal shortcut capital-letter plus control plus space, not with an alternative one.
Radu
Posts: 9049
Joined: Fri Jul 09, 2004 5:18 pm

Re: code-snippets not working anymore

Post by Radu »

Hi,

The proper procedure to install Oxygen on Mac OS is to first move the old installation to the Trash, as by choosing "Replace" you might end up with an Oxygen installation folder containing older resources inside it. So you can try to move Oxygen to Trash and uninstall.
Your specific Oxygen global settings are saved in your user home so they are not affected by the upgrade.
About the code templates, are you working in the Text or the Author editing modes? Can you give me an example of a code template? Did you add a keyboard shortcut to it? What it is? I could try the same thing on my side to see if I can reproduce the problem. I tried something like "Cmd+Ctrl+A" as a shortcut for a code template on my side and it worked for me.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
martinanton
Posts: 8
Joined: Mon Oct 18, 2021 5:43 pm

Re: code-snippets not working anymore

Post by martinanton »

Thank you! I did replace the complete folder yesterday and repeated it the way you described it today. Still no change in behaviour. I'll attach two screen-shots, one showing the list of code-templates the other one the keyboard-shortcut. And I use the editor. In version 23 I got a pop-up window to choose the proper snippet.
Bildschirmfoto 2021-10-19 um 07.46.06.png
Bildschirmfoto 2021-10-19 um 07.46.06.png (242.06 KiB) Viewed 1588 times
Bildschirmfoto 2021-10-19 um 07.48.03.png
Bildschirmfoto 2021-10-19 um 07.48.03.png (158.22 KiB) Viewed 1588 times
Radu
Posts: 9049
Joined: Fri Jul 09, 2004 5:18 pm

Re: code-snippets not working anymore

Post by Radu »

Hi,

I managed to reproduce the problem, if you change the shortcut for showing code templates to some other combination like "Ctrl-Command-C" for example, that works, so it seems there are problems with particular shortcut combinations which use Shift. I added an internal issue to look more into this.
Can you try something on your side?
On our downloads page:
https://www.oxygenxml.com/xml_editor/do ... l?os=macOS
there is a separate kit "macOS 10.11 and later (Includes Java SE 8u202)", can you download that instead and use it to install Oxygen? It's possible that an Oxygen kit with an older Java version does not have this problem.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
martinanton
Posts: 8
Joined: Mon Oct 18, 2021 5:43 pm

Re: code-snippets not working anymore

Post by martinanton »

Thank you! I've downloaded the version you specified but it did not solve the problem. The problem is solved though by changing to a shortcut without shift.
Radu
Posts: 9049
Joined: Fri Jul 09, 2004 5:18 pm

Re: code-snippets not working anymore

Post by Radu »

Hi,

Thanks for the extra details, if we manage to fix this on our side we'll update this forum thread. In the meantime indeed the workaround is to use a shortcut without Shift.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Radu
Posts: 9049
Joined: Fri Jul 09, 2004 5:18 pm

Re: code-snippets not working anymore

Post by Radu »

Hi,

I tested today on my side the Oxygen 24 kit bundled with Java 8, on my side using both Ctrl-space and Ctrl-shift-space works to show the code templates window. Indeed when Oxygen 24 is bundled with Java 17, it does not, but the Oxygen 24 + Java 8 kit (presented as "macOS 10.11 and later (Includes Java SE 8u202)" on the downloads page) should not have this problem.


Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
martinanton
Posts: 8
Joined: Mon Oct 18, 2021 5:43 pm

Re: code-snippets not working anymore

Post by martinanton »

I tried it again with a complete new installation according to your suggestion. It still does not work for me. Anyhow. I hope this will be fixed in a future update and for now I'm satisfied with the interim solution.
Radu
Posts: 9049
Joined: Fri Jul 09, 2004 5:18 pm

Re: code-snippets not working anymore

Post by Radu »

Hi,

So in the new Oxygen 24 you installed, if you go to the top menu Help->About and look in the "System properties" tab there is a property named "java.version", what value does it have on your side? It should have the value something like "1.8..".
What I tested was that both "Ctrl-space" and "Ctrl-shift-space" should have worked to show the code templates but this works for me only with the Oxygen 24 kit bundled with Java 1.8.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
martinanton
Posts: 8
Joined: Mon Oct 18, 2021 5:43 pm

Re: code-snippets not working anymore

Post by martinanton »

You are right, thank you, Radu! Now it works. I still had the new shortcut set and could now change it back.
Radu
Posts: 9049
Joined: Fri Jul 09, 2004 5:18 pm

Re: code-snippets not working anymore

Post by Radu »

Hi,

As an update for this problem, we released a minor bug fix of Oxygen 24.0 a couple of days ago which should fix the reported shortcuts problem with the Oxygen + Java 17 installation kit.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply