Komodo / KomodoEdit

Komodo Edit is a fast and free multi-language code editor. Written in JS, Python, C++ and based on the Mozilla platform.
http://www.komodoide.com/komodo-edit
Other
2.14k stars 299 forks source link

Images not opening on remote servers #1271

Open babobski opened 8 years ago

babobski commented 8 years ago

When i try to open a image in komodo i always get this error: 2016-04-19 15_16_28-main php_ ftp___dev digizijn_subdomains_dev_httpdocs_hotel-giethoorn_protected_

When i drag and drop the image on firefox i noticed the protocol part is missing in the url, when i add this i can see the image

Naatan commented 8 years ago

Where are you opening the image from?

babobski commented 8 years ago

From the places widget, it will try to open it in a browser window.

Just tested it at home, but the bug only occurs when working with remote files. And if i look in the error log i get this exception

-- EXCEPTION START --
[Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [koIFileEx.puts]"  nsresult: "0x80004005 (NS_ERROR_FAILURE)"  location: "JS frame :: viewbrowser :: initWithDocument :: line 359"  data: no]
+ toString (function) 3 lines
+ message (string) 'Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [koIFileEx.puts]'
+ result (number) 2147500037
+ name (string) 'NS_ERROR_FAILURE'
+ filename (string) 'viewbrowser'
+ lineNumber (number) 359
+ columnNumber (number) 0
+ inner (object) null
| + data (object) null
| + stack (string) 'initWithDocument@viewbrowser:359:20
createViewFromDocument@viewlistbase:87:12
viewManager.prototype.'...310 chars
+ location (object) JS frame :: viewbrowser :: initWithDocument :: line 359
| + QueryInterface (function) 3 lines
| + language (number) 2
| + languageName (string) 'JavaScript'
| + filename (string) 'viewbrowser'
| + name (string) 'initWithDocument'
| + lineNumber (number) 359
| + columnNumber (number) 20
| + sourceLine (string) ''
| + caller (object) JS frame :: viewlistbase :: createViewFromDocument :: line 87
| + formattedStack (string) 'initWithDocument@viewbrowser:359:20
createViewFromDocument@viewlistbase:87:12
viewManager.prototype.'...310 chars
| + stack
    initWithDocument@viewbrowser:359:20
    createViewFromDocument@viewlistbase:87:12
    viewManager.prototype._newViewFromURI@chrome://komodo/content/views.js:574:19
    viewManager.prototype._doFileOpen@chrome://komodo/content/views.js:701:11
    viewManager.prototype.doFileOpenAsync/<@chrome://komodo/content/views.js:726:19
-- EXCEPTION END --
Naatan commented 8 years ago

You double click it in Places? It should open it in Komodo, not in your browser.

@cgchoffman we don't have a setting to open images in your browser do we?

th3coop commented 8 years ago

@Naatan not that i'm aware of.

babobski commented 8 years ago

I meant inside komodo only in a browser type tab.

Naatan commented 8 years ago

Ah, thanks for clarifying.