Fixed an issue in the Ruby debugger interface.

Mon, 10 Mar 2014 19:22:15 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 10 Mar 2014 19:22:15 +0100
changeset 3354
8d69c9dfb5e2
parent 3353
ddc966a494b0
child 3356
22633c0739e2

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>&lt;p&gt;The debugger backend could not be started.&lt;/p&gt;</source>
         <translation>&lt;p&gt;Debugovací backend nelze spustit.&lt;/p&gt;</translation>
     </message>
+    <message>
+        <location filename="../Debugger/DebuggerInterfaceRuby.py" line="149"/>
+        <source>&lt;p&gt;No Ruby interpreter configured.&lt;/p&gt;</source>
+        <translation type="unfinished"></translation>
+    </message>
 </context>
 <context>
     <name>DebuggerPropertiesDialog</name>
Binary file i18n/eric5_de.qm has changed
--- 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>&lt;p&gt;The debugger backend could not be started.&lt;/p&gt;</source>
         <translation>&lt;p&gt;Der Debugger konnte nicht gestartet werden.&lt;/p&gt;</translation>
     </message>
+    <message>
+        <location filename="../Debugger/DebuggerInterfaceRuby.py" line="149"/>
+        <source>&lt;p&gt;No Ruby interpreter configured.&lt;/p&gt;</source>
+        <translation>&lt;p&gt;Kein Ruby-Interpreter gefunden.&lt;/p&gt;</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>&lt;p&gt;The debugger backend could not be started.&lt;/p&gt;</source>
         <translation type="unfinished"></translation>
     </message>
+    <message>
+        <location filename="../Debugger/DebuggerInterfaceRuby.py" line="149"/>
+        <source>&lt;p&gt;No Ruby interpreter configured.&lt;/p&gt;</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>&lt;p&gt;The debugger backend could not be started.&lt;/p&gt;</source>
         <translation>&lt;p&gt;No ha sido posible lanzar el extremo del depurador.&lt;/p&gt;</translation>
     </message>
+    <message>
+        <location filename="../Debugger/DebuggerInterfaceRuby.py" line="149"/>
+        <source>&lt;p&gt;No Ruby interpreter configured.&lt;/p&gt;</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>&lt;p&gt;The debugger backend could not be started.&lt;/p&gt;</source>
         <translation>&lt;p&gt;Impossible de lancer le débogueur en arrière-plan.&lt;/p&gt;</translation>
     </message>
+    <message>
+        <location filename="../Debugger/DebuggerInterfaceRuby.py" line="149"/>
+        <source>&lt;p&gt;No Ruby interpreter configured.&lt;/p&gt;</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>&lt;p&gt;The debugger backend could not be started.&lt;/p&gt;</source>
         <translation>&lt;p&gt;Il debugger non può essere avviato.&lt;/p&gt;</translation>
     </message>
+    <message>
+        <location filename="../Debugger/DebuggerInterfaceRuby.py" line="149"/>
+        <source>&lt;p&gt;No Ruby interpreter configured.&lt;/p&gt;</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>&lt;p&gt;The debugger backend could not be started.&lt;/p&gt;</source>
         <translation>&lt;p&gt;Невозможно запустить backend отладчика&lt;/p&gt;</translation>
     </message>
+    <message>
+        <location filename="../Debugger/DebuggerInterfaceRuby.py" line="149"/>
+        <source>&lt;p&gt;No Ruby interpreter configured.&lt;/p&gt;</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>&lt;p&gt;The debugger backend could not be started.&lt;/p&gt;</source>
         <translation>&lt;p&gt;Hata ayıklayıcıbaşlatılamadı.&lt;/p&gt;</translation>
     </message>
+    <message>
+        <location filename="../Debugger/DebuggerInterfaceRuby.py" line="149"/>
+        <source>&lt;p&gt;No Ruby interpreter configured.&lt;/p&gt;</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>&lt;p&gt;The debugger backend could not be started.&lt;/p&gt;</source>
         <translation>&lt;p&gt;调试器后端无法启动。&lt;/p&gt;</translation>
     </message>
+    <message>
+        <location filename="../Debugger/DebuggerInterfaceRuby.py" line="149"/>
+        <source>&lt;p&gt;No Ruby interpreter configured.&lt;/p&gt;</source>
+        <translation type="unfinished"></translation>
+    </message>
 </context>
 <context>
     <name>DebuggerPropertiesDialog</name>

eric ide

mercurial