Cannot open the external text editor for this file.

Cannot open the external text editor for this file.

Hi all~

I use vtune to find out the hotspot of the program, but when I try to edit the code through double-click the hotspot code line it says that"

cannot open the external text editor for this file.Suggestion:make sure the text editor is set in the EDITOR or VISUAL enviroment variable

and supports a filename as an argument.”

Then I tried to write “export EDITOR=gedit” into the file ~/.bashrc.  But it still failed.

Does anybody know how to address this issue?

publicaciones de 5 / 0 nuevos
Último envío
Para obtener más información sobre las optimizaciones del compilador, consulte el aviso sobre la optimización.

Hi sun:

Prior to starting amplxe-gui, execute "echo $EDITOR", what is the output?

If it is gedit and it doesn't work, try changing it to vi and see if that even works.

Regards,
MrAnderson

Cita:

MrAnderson (Intel) escribió:

Hi sun:

Prior to starting amplxe-gui, execute "echo $EDITOR", what is the output?

If it is gedit and it doesn't work, try changing it to vi and see if that even works.

MrAnderson, Thanks for your reply.

Prior to starting amplxe-gui, the output of the command"echo $EDITOR" is “ gedit”.

However, when I try to edit the soure through double-clicking the code line, Vtune has no response to it instead of showing a warning.

Then I changed the enviroment $EDITOR=vi and started the vtune again, but it still had no response to it. 

Do you know what is happening there?

 

In the same console window were you set the EDITOR variable, what happens when you attempt to execute the 'gedit' command?  If it works in the shell and then you invoke VTune Amplifier XE and attempt to double-click on the source, it should work as well, since VTune Amplifier XE inherits the shell environment.

Regards,
MrAnderson

Cita:

MrAnderson (Intel) escribió:

In the same console window were you set the EDITOR variable, what happens when you attempt to execute the 'gedit' command?  If it works in the shell and then you invoke VTune Amplifier XE and attempt to double-click on the source, it should work as well, since VTune Amplifier XE inherits the shell environment.

Thank you very much!

Problem has been solved!

Deje un comentario

Por favor inicie sesión para agregar un comentario. ¿No es socio? Únase ya