You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On Ubuntu 24.04.1, the m[c/x]gui built-in editor fails due to missing scintilla dependencies and missing Qt6-transition code.
At e.g. File->New one yields
mcgui
loading system configuration
Traceback (most recent call last):
File "/usr/share/mcstas/tools/Python/mcgui/mcgui.py", line 896, in handleNewInstrument
self.view.showCodeEditorWindow(new_instr)
File "/usr/share/mcstas/tools/Python/mcgui/viewclasses.py", line 63, in showCodeEditorWindow
self.ew.initCodeEditor(instr)
File "/usr/share/mcstas/tools/Python/mcgui/viewclasses.py", line 427, in initCodeEditor
self.__scintilla.setText(open(instr, encoding='utf-8', errors='ignore').read())
^^^^^^^^^^^^^^^^
AttributeError: 'McCodeEditorWindow' object has no attribute '_McCodeEditorWindow__scintilla'. Did you mean: '_McCodeEditorWindow__initScintilla'?
Best workaround for now:
sudo apt install gedit
Let the editor crash as above, after which "Edit" means gedit
Use the html form in the component mcdoc pages "Generate" to define component instances
(You may have to replace \n manually by a line-break after pasting to gedit...)
If you prefer to use another editor than gedit, then please:
install said editor
mcrun --write-user-config to generate a local user config
edit that mccode_config.json and replace gedit by wanted editor
The text was updated successfully, but these errors were encountered:
On Ubuntu 24.04.1, the m[c/x]gui built-in editor fails due to missing scintilla dependencies and missing Qt6-transition code.
At e.g.
File->New
one yieldsBest workaround for now:
sudo apt install gedit
(You may have to replace \n manually by a line-break after pasting to gedit...)
If you prefer to use another editor than gedit, then please:
mcrun --write-user-config
to generate a local user configmccode_config.json
and replacegedit
by wanted editorThe text was updated successfully, but these errors were encountered: