Mon, 10 Mar 2014 19:22:15 +0100
Fixed an issue in the Ruby debugger interface.
Debugger/DebuggerInterfaceRuby.py | file | annotate | diff | comparison | revisions | |
Preferences/__init__.py | file | annotate | diff | comparison | revisions | |
i18n/eric5_cs.ts | file | annotate | diff | comparison | revisions | |
i18n/eric5_de.qm | file | annotate | diff | comparison | revisions | |
i18n/eric5_de.ts | file | annotate | diff | comparison | revisions | |
i18n/eric5_en.ts | file | annotate | diff | comparison | revisions | |
i18n/eric5_es.ts | file | annotate | diff | comparison | revisions | |
i18n/eric5_fr.ts | file | annotate | diff | comparison | revisions | |
i18n/eric5_it.ts | file | annotate | diff | comparison | revisions | |
i18n/eric5_ru.ts | file | annotate | diff | comparison | revisions | |
i18n/eric5_tr.ts | file | annotate | diff | comparison | revisions | |
i18n/eric5_zh_CN.GB2312.ts | file | annotate | diff | comparison | revisions |
--- a/Debugger/DebuggerInterfaceRuby.py Sun Mar 09 19:04:42 2014 +0100 +++ b/Debugger/DebuggerInterfaceRuby.py Mon Mar 10 19:22:15 2014 +0100 @@ -19,6 +19,7 @@ import Preferences import Utilities +from Globals import isWindowsPlatform from eric5config import getConfig @@ -142,8 +143,15 @@ a network connection (boolean) """ interpreter = Preferences.getDebugger("RubyInterpreter") + if interpreter == "" and not isWindowsPlatform(): + interpreter = "/usr/bin/ruby" if interpreter == "": - interpreter = "/usr/bin/ruby" + E5MessageBox.critical( + None, + self.tr("Start Debugger"), + self.tr("""<p>No Ruby interpreter configured.</p>""")) + return None, False + debugClient = os.path.join( getConfig('ericDir'), "DebugClients", "Ruby", "DebugClient.rb")
--- a/Preferences/__init__.py Sun Mar 09 19:04:42 2014 +0100 +++ b/Preferences/__init__.py Mon Mar 10 19:22:15 2014 +0100 @@ -67,7 +67,7 @@ "PythonInterpreter": "", "Python3Interpreter": "", "CustomPython3Interpreter": False, - "RubyInterpreter": "/usr/bin/ruby", + "RubyInterpreter": "", "DebugClientType": "standard", # supported "standard", "threaded", "custom" "DebugClient": "",
--- a/i18n/eric5_cs.ts Sun Mar 09 19:04:42 2014 +0100 +++ b/i18n/eric5_cs.ts Mon Mar 10 19:22:15 2014 +0100 @@ -6501,15 +6501,20 @@ <context> <name>DebuggerInterfaceRuby</name> <message> - <location filename="../Debugger/DebuggerInterfaceRuby.py" line="325"/> + <location filename="../Debugger/DebuggerInterfaceRuby.py" line="333"/> <source>Start Debugger</source> <translation>Spustit debuger</translation> </message> <message> - <location filename="../Debugger/DebuggerInterfaceRuby.py" line="325"/> + <location filename="../Debugger/DebuggerInterfaceRuby.py" line="333"/> <source><p>The debugger backend could not be started.</p></source> <translation><p>Debugovací backend nelze spustit.</p></translation> </message> + <message> + <location filename="../Debugger/DebuggerInterfaceRuby.py" line="149"/> + <source><p>No Ruby interpreter configured.</p></source> + <translation type="unfinished"></translation> + </message> </context> <context> <name>DebuggerPropertiesDialog</name>
--- a/i18n/eric5_de.ts Sun Mar 09 19:04:42 2014 +0100 +++ b/i18n/eric5_de.ts Mon Mar 10 19:22:15 2014 +0100 @@ -6226,15 +6226,20 @@ <context> <name>DebuggerInterfaceRuby</name> <message> - <location filename="../Debugger/DebuggerInterfaceRuby.py" line="325"/> + <location filename="../Debugger/DebuggerInterfaceRuby.py" line="333"/> <source>Start Debugger</source> <translation>Debugger starten</translation> </message> <message> - <location filename="../Debugger/DebuggerInterfaceRuby.py" line="325"/> + <location filename="../Debugger/DebuggerInterfaceRuby.py" line="333"/> <source><p>The debugger backend could not be started.</p></source> <translation><p>Der Debugger konnte nicht gestartet werden.</p></translation> </message> + <message> + <location filename="../Debugger/DebuggerInterfaceRuby.py" line="149"/> + <source><p>No Ruby interpreter configured.</p></source> + <translation><p>Kein Ruby-Interpreter gefunden.</p></translation> + </message> </context> <context> <name>DebuggerPropertiesDialog</name>
--- a/i18n/eric5_en.ts Sun Mar 09 19:04:42 2014 +0100 +++ b/i18n/eric5_en.ts Mon Mar 10 19:22:15 2014 +0100 @@ -6168,15 +6168,20 @@ <context> <name>DebuggerInterfaceRuby</name> <message> - <location filename="../Debugger/DebuggerInterfaceRuby.py" line="325"/> + <location filename="../Debugger/DebuggerInterfaceRuby.py" line="333"/> <source>Start Debugger</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../Debugger/DebuggerInterfaceRuby.py" line="325"/> + <location filename="../Debugger/DebuggerInterfaceRuby.py" line="333"/> <source><p>The debugger backend could not be started.</p></source> <translation type="unfinished"></translation> </message> + <message> + <location filename="../Debugger/DebuggerInterfaceRuby.py" line="149"/> + <source><p>No Ruby interpreter configured.</p></source> + <translation type="unfinished"></translation> + </message> </context> <context> <name>DebuggerPropertiesDialog</name>
--- a/i18n/eric5_es.ts Sun Mar 09 19:04:42 2014 +0100 +++ b/i18n/eric5_es.ts Mon Mar 10 19:22:15 2014 +0100 @@ -6222,15 +6222,20 @@ <context> <name>DebuggerInterfaceRuby</name> <message> - <location filename="../Debugger/DebuggerInterfaceRuby.py" line="325"/> + <location filename="../Debugger/DebuggerInterfaceRuby.py" line="333"/> <source>Start Debugger</source> <translation>Comenzar Depurador</translation> </message> <message> - <location filename="../Debugger/DebuggerInterfaceRuby.py" line="325"/> + <location filename="../Debugger/DebuggerInterfaceRuby.py" line="333"/> <source><p>The debugger backend could not be started.</p></source> <translation><p>No ha sido posible lanzar el extremo del depurador.</p></translation> </message> + <message> + <location filename="../Debugger/DebuggerInterfaceRuby.py" line="149"/> + <source><p>No Ruby interpreter configured.</p></source> + <translation type="unfinished"></translation> + </message> </context> <context> <name>DebuggerPropertiesDialog</name>
--- a/i18n/eric5_fr.ts Sun Mar 09 19:04:42 2014 +0100 +++ b/i18n/eric5_fr.ts Mon Mar 10 19:22:15 2014 +0100 @@ -6784,15 +6784,20 @@ <context> <name>DebuggerInterfaceRuby</name> <message> - <location filename="../Debugger/DebuggerInterfaceRuby.py" line="325"/> + <location filename="../Debugger/DebuggerInterfaceRuby.py" line="333"/> <source>Start Debugger</source> <translation>Démarrage du débogueur</translation> </message> <message> - <location filename="../Debugger/DebuggerInterfaceRuby.py" line="325"/> + <location filename="../Debugger/DebuggerInterfaceRuby.py" line="333"/> <source><p>The debugger backend could not be started.</p></source> <translation><p>Impossible de lancer le débogueur en arrière-plan.</p></translation> </message> + <message> + <location filename="../Debugger/DebuggerInterfaceRuby.py" line="149"/> + <source><p>No Ruby interpreter configured.</p></source> + <translation type="unfinished"></translation> + </message> </context> <context> <name>DebuggerPropertiesDialog</name>
--- a/i18n/eric5_it.ts Sun Mar 09 19:04:42 2014 +0100 +++ b/i18n/eric5_it.ts Mon Mar 10 19:22:15 2014 +0100 @@ -6510,15 +6510,20 @@ <context> <name>DebuggerInterfaceRuby</name> <message> - <location filename="../Debugger/DebuggerInterfaceRuby.py" line="325"/> + <location filename="../Debugger/DebuggerInterfaceRuby.py" line="333"/> <source>Start Debugger</source> <translation>Avvia il Debugger</translation> </message> <message> - <location filename="../Debugger/DebuggerInterfaceRuby.py" line="325"/> + <location filename="../Debugger/DebuggerInterfaceRuby.py" line="333"/> <source><p>The debugger backend could not be started.</p></source> <translation><p>Il debugger non può essere avviato.</p></translation> </message> + <message> + <location filename="../Debugger/DebuggerInterfaceRuby.py" line="149"/> + <source><p>No Ruby interpreter configured.</p></source> + <translation type="unfinished"></translation> + </message> </context> <context> <name>DebuggerPropertiesDialog</name>
--- a/i18n/eric5_ru.ts Sun Mar 09 19:04:42 2014 +0100 +++ b/i18n/eric5_ru.ts Mon Mar 10 19:22:15 2014 +0100 @@ -6546,15 +6546,20 @@ <context> <name>DebuggerInterfaceRuby</name> <message> - <location filename="../Debugger/DebuggerInterfaceRuby.py" line="325"/> + <location filename="../Debugger/DebuggerInterfaceRuby.py" line="333"/> <source>Start Debugger</source> <translation>Запустить отладчик</translation> </message> <message> - <location filename="../Debugger/DebuggerInterfaceRuby.py" line="325"/> + <location filename="../Debugger/DebuggerInterfaceRuby.py" line="333"/> <source><p>The debugger backend could not be started.</p></source> <translation><p>Невозможно запустить backend отладчика</p></translation> </message> + <message> + <location filename="../Debugger/DebuggerInterfaceRuby.py" line="149"/> + <source><p>No Ruby interpreter configured.</p></source> + <translation type="unfinished"></translation> + </message> </context> <context> <name>DebuggerPropertiesDialog</name>
--- a/i18n/eric5_tr.ts Sun Mar 09 19:04:42 2014 +0100 +++ b/i18n/eric5_tr.ts Mon Mar 10 19:22:15 2014 +0100 @@ -6491,15 +6491,20 @@ <context> <name>DebuggerInterfaceRuby</name> <message> - <location filename="../Debugger/DebuggerInterfaceRuby.py" line="325"/> + <location filename="../Debugger/DebuggerInterfaceRuby.py" line="333"/> <source>Start Debugger</source> <translation>Hata Ayıklayıcıyı Başlat</translation> </message> <message> - <location filename="../Debugger/DebuggerInterfaceRuby.py" line="325"/> + <location filename="../Debugger/DebuggerInterfaceRuby.py" line="333"/> <source><p>The debugger backend could not be started.</p></source> <translation><p>Hata ayıklayıcıbaşlatılamadı.</p></translation> </message> + <message> + <location filename="../Debugger/DebuggerInterfaceRuby.py" line="149"/> + <source><p>No Ruby interpreter configured.</p></source> + <translation type="unfinished"></translation> + </message> </context> <context> <name>DebuggerPropertiesDialog</name>
--- a/i18n/eric5_zh_CN.GB2312.ts Sun Mar 09 19:04:42 2014 +0100 +++ b/i18n/eric5_zh_CN.GB2312.ts Mon Mar 10 19:22:15 2014 +0100 @@ -6740,15 +6740,20 @@ <context> <name>DebuggerInterfaceRuby</name> <message> - <location filename="../Debugger/DebuggerInterfaceRuby.py" line="325"/> + <location filename="../Debugger/DebuggerInterfaceRuby.py" line="333"/> <source>Start Debugger</source> <translation>启动调试器</translation> </message> <message> - <location filename="../Debugger/DebuggerInterfaceRuby.py" line="325"/> + <location filename="../Debugger/DebuggerInterfaceRuby.py" line="333"/> <source><p>The debugger backend could not be started.</p></source> <translation><p>调试器后端无法启动。</p></translation> </message> + <message> + <location filename="../Debugger/DebuggerInterfaceRuby.py" line="149"/> + <source><p>No Ruby interpreter configured.</p></source> + <translation type="unfinished"></translation> + </message> </context> <context> <name>DebuggerPropertiesDialog</name>