Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot use external editor in scriptrunner 3 (using win. 8.1, qgis 3.4.0 (OSGEO4W64) and python 37) #7

Open
damidb opened this issue Nov 4, 2018 · 3 comments

Comments

@damidb
Copy link

damidb commented Nov 4, 2018

hello mr, mrs,

following message when trying to edit testfile.py in scriptrunner 3 plugin:


Traceback (most recent call last):
File "C:/Users/myname/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\scriptrunner3\scriptrunner.py", line 848, in edit_script
str(self.custom_editor))
pywintypes.error: (123, 'GetShortPathNameW', 'The filename, directory name, or volume label syntax is incorrect.')


(did not have that problem with qgis standalone 2.7 "las palmas")
I case you respond: please notice I'm not an IT-specialist just a user
trying to do some exercises in python with qgis - so keep is easy if possible please

  • or explain every single step of the solution (no abbrevations/jargon if possible) : thanks a lot !!!
@g-sherman
Copy link
Owner

Sounds like it can't find your external editor. What have you entered for the full path to the editor?

@damidb
Copy link
Author

damidb commented Nov 23, 2018

I entered the following path for my external editor:
C:\Windows\System32
but it's working after changing in C:\Program Files (x86)\LibreOffice 4\program\swriter.exe
don't ask me why...
sorry for late reply.. busy..

@ytreka3
Copy link

ytreka3 commented May 20, 2024

Hi, I tried to set a default external editor in Scriptrunner 3, using the following steps:
click on menu plugins in Qgis
click on scriptrunner and scriptrunner 3 icon
click on gear icon
in general options, click on "Edit scripts using" checkbox and select the path of Visual Studio Code
But the the program at this point advise me in this way:

TypeError: setText(self, str): argument 1 has unexpected type 'tuple'
Traceback (most recent call last):
File "C:\Users/Salvo/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\scriptrunner3\preferences_dialog.py", line 94, in editor_path
self.ui.leCustomEditorPath.setText(self.editor_path)
TypeError: setText(self, str): argument 1 has unexpected type 'tuple'

Why this error happens? Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants