12 import uuid |
12 import uuid |
13 |
13 |
14 from PyQt6.QtCore import pyqtSlot, QCoreApplication, QTimer, QThread |
14 from PyQt6.QtCore import pyqtSlot, QCoreApplication, QTimer, QThread |
15 from PyQt6.QtWidgets import QInputDialog, QLineEdit, QDialog |
15 from PyQt6.QtWidgets import QInputDialog, QLineEdit, QDialog |
16 |
16 |
17 from EricWidgets.EricApplication import ericApp |
17 from eric7.EricWidgets.EricApplication import ericApp |
18 from EricWidgets import EricMessageBox |
18 from eric7.EricWidgets import EricMessageBox |
19 |
19 |
20 from EricNetwork.EricJsonServer import EricJsonServer |
20 from eric7.EricNetwork.EricJsonServer import EricJsonServer |
21 |
21 |
22 from QScintilla.Editor import Editor |
22 from eric7.QScintilla.Editor import Editor |
23 |
23 |
24 import Preferences |
24 from eric7 import Globals, Preferences |
25 import Globals |
|
26 |
25 |
27 from .RefactoringPreviewDialog import RefactoringPreviewDialog |
26 from .RefactoringPreviewDialog import RefactoringPreviewDialog |
28 |
27 |
29 |
28 |
30 class JediServer(EricJsonServer): |
29 class JediServer(EricJsonServer): |
415 @param result dictionary containing the result data |
414 @param result dictionary containing the result data |
416 @type dict |
415 @type dict |
417 """ |
416 """ |
418 euuid = result["Uuid"] |
417 euuid = result["Uuid"] |
419 with contextlib.suppress(ImportError): |
418 with contextlib.suppress(ImportError): |
420 from QScintilla.Editor import ReferenceItem |
419 from eric7.QScintilla.Editor import ReferenceItem |
421 |
420 |
422 if "Error" not in result: |
421 if "Error" not in result: |
423 # ignore errors silently |
422 # ignore errors silently |
424 references = result["GotoReferencesList"] |
423 references = result["GotoReferencesList"] |
425 if references: |
424 if references: |