Bug #2780
impossible to switch to the R perspective
| Statut: | Closed | Début: | 02/03/2020 | |
|---|---|---|---|---|
| Priorité: | High | Echéance: | ||
| Assigné à: | - | % réalisé: | 100% |
|
| Catégorie: | Commands | Temps passé: | - | |
| Version cible: | TXM 0.8.1 |
Description
Description of the problem¶
The 'Affichage > Perspectives > R' command doesn't do anything.
How to reproduce¶
Follow the steps of the Tutorial to use the stylometric tools of the Stylo R package into TXM.
Result:- No "New session" button is available in the toolbar.
- No "R Console" is opened.
This is the case for TXM 0.8.0 and 0.8.1.
For TXM 0.8.1 we get the following stacktrace:
!ENTRY org.eclipse.ui 4 0 2020-03-02 13:38:46.038
!MESSAGE Unhandled event loop exception
!STACK 0
org.eclipse.e4.core.di.InjectionException: org.eclipse.core.commands.ExecutionException: Perspective org.txm.rcp.perspective.RPerspective cannot be found.
at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:65)
...
at org.eclipse.equinox.launcher.Main.run(Main.java:1499)
at org.eclipse.equinox.launcher.Main.main(Main.java:1472)
Caused by: org.eclipse.core.commands.ExecutionException: Perspective org.txm.rcp.perspective.RPerspective cannot be found.
at org.eclipse.ui.handlers.ShowPerspectiveHandler.openPerspective(ShowPerspectiveHandler.java:141)
at org.eclipse.ui.handlers.ShowPerspectiveHandler.execute(ShowPerspectiveHandler.java:62)
at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:291)
at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:92)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:55)
... 37 more
Solution¶
1- The perspective ID was wrong > changed to org.txm.statsengine.r.rcp.perspectives.RPerspective the menu declaration was not in the right plugin -> moved to org.txm.statengine.r.rcp
2
Révisions associées
restore Display > Perspectives > R menu entry. refs #2780
Historique
#1 Mis à jour par Serge Heiden il y a plus de 5 ans
- Description mis à jour (diff)
#2 Mis à jour par Matthieu Decorde il y a plus de 5 ans
- Description mis à jour (diff)
- % réalisé changé de 0 à 80
#3 Mis à jour par Sebastien Jacquot il y a presque 2 ans
- % réalisé changé de 80 à 100
#4 Mis à jour par Sebastien Jacquot il y a presque 2 ans
- Statut changé de New à Closed