I’ve been using Komodo Edit 9.0 for the first time, and am trying to create some Python scripts. However I think I have encountered a bug. I want to open an existing file and go to a specific line:
obsvc = components.classes["@mozilla.org/observer-service;1"].getService(components.interfaces.nsIObserverService);
obsvc.notifyObservers(None, 'open-url', r'G:\myfolder\myfile.txt#10');
This works fine. However, as soon as there is a space in the file name, the editor does not found the file and wants to create it:
obsvc.notifyObservers(None, 'open-url', r'G:\myfolder\my file.txt#10');
I get the message: "The file ‘g:\myfolder\my file.txt#10’ does not exist. Do you want to create it?’, which is obviously not the desired result.
Note that if I remove the line number, the editor finds the file:
obsvc.notifyObservers(None, 'open-url', r'G:\myfolder\my file.txt');
Is it a bug or am I doing something wrong? Thanks a lot.