Cannot view source with external application

Forums » Opera for Windows/Mac/Linux » Opera browser

You need to be logged in to post in the forums. If you do not have an account, please sign up first.

Go to last post

9. June 2006, 20:57:02

Eddie1506

Keeper Of The Seven Keys

Posts: 213

Cannot view source with external application

When trying to view page source with external text editor I get the following message.

Source viewer

You have not specified an external helper application. Do you want to modify the configuration now?



Anyone experiencing this?

10. June 2006, 02:00:35

xErath

javascript guru

Posts: 6588

Yes, I confirm ! Opening inside Opera works fine though.
For a collection of user scripts visit
http://my.opera.com/xErath/blog/

10. June 2006, 02:53:48

Moderator

sgunhouse

Volunteer

Posts: 65154

Which of the three options are you using - default, other application, or Opera? In Linux (here), there is no "default application" to use, selecting "Use other application" and setting a valid application works fine.

10. June 2006, 03:05:30

Eddie1506

Keeper Of The Seven Keys

Posts: 213

It doesn't matter. Use default application and Use other application both give me the message. Only thing that does work is Opera's internal viewer.

10. June 2006, 03:21:59

pLastic01

Posts: 636

I confirm that 'open with default' doesn't work here on windows 98. For some reason it sees the default app as "txt.txt" (that is what shows up in the readonly editbox). When I tried to set 'other program', Opera crashed. This is with 8473. I emailed a crash log for bug # 213204.
that's my two cents!

10. June 2006, 04:25:48

Tomcat76

Posts: 4488

I can confirm that "Open with default" doesn't work in Opera 9 TP2 (build 8212) through build 8367; it either opens in Opera or it displays a "File not found" error. However, in all those builds, "Open with other application" works.

I have no problem whatsoever changing the source viewer with builds 8393 up and through build 8473.
Tomcat "the farce is mine" 76 | WinXP Pro 32bit · JRE 7u21 · Default UA: Opera 9.27 (file extensions in cache & Google Images layout) | My computer | Download different Opera versions

10. June 2006, 04:55:49

xErath

javascript guru

Posts: 6588

Originally posted by Tomcat76:

I can confirm that "Open with default" doesn't work in Opera 9 TP2 (build 8212) through build 8367; it either opens in Opera or it displays a "File not found" error. However, in all those builds, "Open with other application" works.

I reported that bug some time ago and it was fixed. A new one was introduced this time...
For a collection of user scripts visit
http://my.opera.com/xErath/blog/

10. June 2006, 12:59:21

Tomcat76

Posts: 4488

Could this now be a Win9x-specific issue then? I'm on Win2K and don't see it.
Tomcat "the farce is mine" 76 | WinXP Pro 32bit · JRE 7u21 · Default UA: Opera 9.27 (file extensions in cache & Google Images layout) | My computer | Download different Opera versions

10. June 2006, 13:39:50

Eddie1506

Keeper Of The Seven Keys

Posts: 213

As someone reported on the newsgroups the problem is if the path contains spaces.

My external "View source" app is the SynPlus-plugin for Total Commander,
located at:

C:\Program Files\TotalCMD\PLUGINS\Lister\SynPlus\SPlusEditStart.exe

Using this path worked fine for earlier betas. Today I wanted to view the
source of some page and Opera presented me the "There is no external
application set ... do you want to configure now?"-dialog. After playing
around a bit, I found out that setting the path to

C:\Progra~1\TotalCMD\PLUGINS\Lister\SynPlus\SPlusEditStart.exe

works fine. So you might have to look into it.

10. June 2006, 15:31:23

Moderator

sgunhouse

Volunteer

Posts: 65154

Not quoting the path again?

10. June 2006, 19:42:20

Eddie1506

Keeper Of The Seven Keys

Posts: 213

Opera itself doesn't quote the path when choosing the file, so why should I?

And it doesn't work with the quotes neither.

11. June 2006, 00:51:03

Moderator

sgunhouse

Volunteer

Posts: 65154

It should ..., they must be removing the quotes in the code.

11. June 2006, 07:44:40

burnout426

Posts: 12531

Originally posted by Eddie1506:

As someone reported on the newsgroups the problem is if the path contains spaces.



You can also use the protocol with the space encoded as %20.

For example, this works for me.

12. June 2006, 11:30:07

whkoh

Posts: 88

Confirmed again; Win XP.

12. June 2006, 19:40:30

neeraj_deshmukh

The Falcon

Posts: 21593

Fixed in build 8482.
Opera 10.0 (build 1589) * JRE 6.0u13 * Flash 10,0,22,87 * Dell Latitude D630 * Windows XP Pro SP3 * 2.5GHz Core 2 Duo * 2GB RAM
Never argue with an idiot. They drag you down to their level, then beat you with experience. - Dilbert

15. June 2006, 22:27:38

Eddie1506

Keeper Of The Seven Keys

Posts: 213

Originally posted by neeraj_deshmukh:

Fixed in build 8482.



And then broken again in 8493...

16. June 2006, 17:37:25

neeraj_deshmukh

The Falcon

Posts: 21593

confused Was working for me in 8493, and is also working in 8496.
Opera 10.0 (build 1589) * JRE 6.0u13 * Flash 10,0,22,87 * Dell Latitude D630 * Windows XP Pro SP3 * 2.5GHz Core 2 Duo * 2GB RAM
Never argue with an idiot. They drag you down to their level, then beat you with experience. - Dilbert

16. June 2006, 17:56:35

Eddie1506

Keeper Of The Seven Keys

Posts: 213

It's not working when path is without quotes, like it was before 8473.

When selecting the text editor with "Choose..." button, Opera does not put the quotes around the path, and you'll get the error message.

16. June 2006, 18:16:03

neeraj_deshmukh

The Falcon

Posts: 21593

Originally posted by Eddie1506:

It's not working when path is without quotes, like it was before 8473.

When selecting the text editor with "Choose..." button, Opera does not put the quotes around the path, and you'll get the error message.

For the default application it works without quotes. editor.png

But I can confirm that it is broken when selecting an editor. sad
Opera 10.0 (build 1589) * JRE 6.0u13 * Flash 10,0,22,87 * Dell Latitude D630 * Windows XP Pro SP3 * 2.5GHz Core 2 Duo * 2GB RAM
Never argue with an idiot. They drag you down to their level, then beat you with experience. - Dilbert

16. June 2006, 18:50:28

burnout426

Posts: 12531

BTW, I have bug 194192 on not being able to do this for the external source viewer.

"C:\Program Files\Java\jre1.5.0_07\bin\javaw.exe" "-jar" "C:\Program Files\jEdit\jedit.jar" "-reuseview"

20. June 2006, 13:12:21

porneL

79% geek, 47% nerd

Posts: 2633

I've got it in final version 9 on Windows.

20. June 2006, 16:06:42

davews

Posts: 467

Yes it is amazing that this fundamental problem (spaces in M$ filenames)which anybody who has ever programmed on Windows machines knows about and how to get round has found itself into the final. At least I can now use Scite (much preferred to the new Opera source viewer) with the cures posted here.

Dave

20. June 2006, 19:48:47

YenTown

Posts: 213

Originally posted by Eddie1506:

It's not working when path is without quotes, like it was before 8473.

When selecting the text editor with "Choose..." button, Opera does not put the quotes around the path, and you'll get the error message.



Yep.this remains in the 9.0 final.There is no quote in 8414,but it works.

28. June 2006, 22:30:56

hakre

Posts: 159

I had this Issue changing from 8.54 to 9.0 final. Maybe this is only if there is a space within the filename?

3. July 2006, 19:03:39

scipio

Undutchable

Posts: 29782

Hmm... I decided to go back to my external viewer and got the same problem. Opera 9.0.8501 on WinXP.

C:\program files\crimson editor\cedt.exe does not work; I had to use C:\progra~1\crimso~1\cedt.exe instead.
Aprendí a ser formal y cortés, cortándome el pelo una vez por mes.

3. July 2006, 19:46:42

idleskitter

relax max

Banned user

Originally posted by scipio:

Hmm... I decided to go back to my external viewer and got the same problem. Opera 9.0.8501 on WinXP.


Using notepad++ in #8509 (xpsp2) no problems.

11. July 2006, 10:56:02

tedm

Posts: 1

I'm using Opera 9 buils 8502 under XP SP2 and experience the View Source error with this path:

C:\Program Files\Notepad++\notepad++.exe

but putting quotes on it as below fixes it.

"C:\Program Files\Notepad++\notepad++.exe"

11. July 2006, 15:15:22

neeraj_deshmukh

The Falcon

Posts: 21593

Originally posted by tedm:

but putting quotes on it as below fixes it.

Welcome to Opera and the forums...

Of course, this problem is fixed in the weekly test builds of Opera 9.01...
Opera 10.0 (build 1589) * JRE 6.0u13 * Flash 10,0,22,87 * Dell Latitude D630 * Windows XP Pro SP3 * 2.5GHz Core 2 Duo * 2GB RAM
Never argue with an idiot. They drag you down to their level, then beat you with experience. - Dilbert

23. April 2012, 09:12:26

jesus2099

♡.. \(^Δ^;)/ ..☭

Posts: 357

I have the same problem with Opera 11.62 (1347) on Windows (XP).

I have selected the 4th option (this my configuration used to work since the removed the file extensions in cache) (tried both with and without quotes and %s)

Open with other application D:\Tristan\PRG\i\EmEditor\EmEditor.exe
Parameter /c html


Which gets transformed to

Open with other application D:\Tristan\PRG\i\EmEditor\EmEditor.exe /c html



But I always get the following wrong error message.

Source viewer
You have not specified an external helper application. Do you want to modify the configuration now?
Yes No



BAD Workaround : Instead of this I have to use the 3rd option, which works with the same EmEditor.exe but is not satisfactory for me.

Open with default application "D:\Tristan\PRG\i\EmEditor\EmEditor.exe" "%s"



star I don’t understand how/why Open with default application (EmEditor.exe) option can work but not Open with other application (EmEditor.exe) any more ?
jesus2099 × Ti = Tristan + patate12 ÷ saucisson7 éditer bug report
※ My bugs and whishlist for Opera
Using latest stable version on Windows XP

3. October 2012, 12:00:14 (edited)

Sawo

Posts: 470

As of Opera 12.10 beta, this bug is still present:

when a parameter is added to the call of the source viewer or editor,
Opera produces the error message mentioned above, instead of
calling the specified program and passing the parameters provided.

c:\Example\Editor\edit.exe 

This works.

c:\Example\Editor\edit.exe -lhtml

This doesn't.

The bug is most inconvenient since meaningful extensions were abolished for cached files.
Now editors need a parameter to recognize Opera's cached source as HTML.

What makes a difference is double quoting:

""c:\Example\Editor\edit.exe" -lhtml"

This finally does the trick.

However, after entering it, and closing the dialog box, the quoted call is shown the next time as

Open with other application
E:\2ndPart\unicode\notepad++.exe -lhtml

Parameter:
""

That call doesn't exactly make sense. No wonder users get confused.

Six years have passed since the problem was first reported, yet nothing has been done about it.

3. October 2012, 15:22:32

jesus2099

♡.. \(^Δ^;)/ ..☭

Posts: 357

Hi Sawo.
I cannot get to make my editor work : D:\Tristan\PRG\i\EmEditor\EmEditor.exe /c html %s
I tried double quoting in all possible ways without luck.
jesus2099 × Ti = Tristan + patate12 ÷ saucisson7 éditer bug report
※ My bugs and whishlist for Opera
Using latest stable version on Windows XP

3. October 2012, 16:44:28 (edited)

Sawo

Posts: 470

Originally posted by jesus2099:

I cannot get to make my editor work : D:\Tristan\PRG\i\EmEditor\EmEditor.exe /c html %s
I tried double quoting in all possible ways without luck.


This may or may not be relevant to your problem, but:

I don't think you have to add the %s file name variable.

Opera provides it automatically for the source viewer, if you use the
"Open with other application" entry.

3. October 2012, 21:39:48

jesus2099

♡.. \(^Δ^;)/ ..☭

Posts: 357

Actually it’s strange because the following simple thing works at home:

Originally posted by homePC:

Open with other application C:\Program Files\EmEditor\EmEditor.exe
Parameter /c html %s


(quotes no where)
I will do same at work again and see if it works there too (because I thought I already tried that without luck).
jesus2099 × Ti = Tristan + patate12 ÷ saucisson7 éditer bug report
※ My bugs and whishlist for Opera
Using latest stable version on Windows XP

3. October 2012, 21:49:31

Sawo

Posts: 470

Originally posted by jesus2099:

Open with other application C:\Program Files\EmEditor\EmEditor.exe
Parameter /c html %s

I will do same at work again and see if it works there too (because I thought I already tried that without luck).


Problem is: Opera takes the parameters from the second box and appends them to the entry in the first.

This might break the proper format of the editor call with parameters.

4. October 2012, 10:46:05

jesus2099

♡.. \(^Δ^;)/ ..☭

Posts: 357

Look now that’s strange.

I have HOME PC (windows XP pro) that works as follow :

Originally posted by HOME:

Open with other application C:\Program Files\EmEditor\EmEditor.exe
Parameter /c html %s


The parameters may get appended to path afterwards but anyway it works.

But now on WORK PC (same windows XP pro, same external editor and same Opera version : always latest stable, now 12.02.1578) and that does not work as follow :

Originally posted by WORK:

Open with other application D:\Tristan\PRG\i\EmEditor\EmEditor.exe
Parameter /c html %s



It can’t be because of the path, can it ?
There must be something in the environment that makes this problem…

Originally posted by PROBLEM:

Source viewer
You have not specified an external helper application.
Do you want to modify the configuration now?



I eventually submitted this DSK-375174 bug to that bug tracking silent/obscure system, FWIW.
jesus2099 × Ti = Tristan + patate12 ÷ saucisson7 éditer bug report
※ My bugs and whishlist for Opera
Using latest stable version on Windows XP

3. December 2012, 22:07:57

exenter

Posts: 1

Just to make sure, you guys are editing the operaprefs.ini file, right? If you enter the input in the program instead of the file, opera will not preserve the parameter input. To open the source code in notepad++ with HTML syntax highlighting, I changed the Source Viewer line in the operaprefs.ini file to this:
Source Viewer=""C:\Program Files (x86)\Notepad++\notepad++.exe" -lhtml"

and it worked. Notice the two double quotation marks before the path.

4. December 2012, 09:03:22

jesus2099

♡.. \(^Δ^;)/ ..☭

Posts: 357

Thanks mate, I was not editing operaprefs.ini directly, indeed !
That’s working when I write this in it directly now :
Source Viewer=""D:\Tristan\PRG\i\EmEditor\EmEditor.exe" /c html"

Even if there are absolutely no spaces in my path, it won’t work without all those quotes. It’s as you said indeed !
However this is a thank you very much exenter work-around, the DSK-375174 bug remains open for the Opera GUI. wink
Thanks again, I can at last edit in html in one key only again.
jesus2099 × Ti = Tristan + patate12 ÷ saucisson7 éditer bug report
※ My bugs and whishlist for Opera
Using latest stable version on Windows XP

4. December 2012, 11:20:53

jesus2099

♡.. \(^Δ^;)/ ..☭

Posts: 357

Could an admin move this topic to Opera browser forum, as this bug occurs in the so called stable releases.
jesus2099 × Ti = Tristan + patate12 ÷ saucisson7 éditer bug report
※ My bugs and whishlist for Opera
Using latest stable version on Windows XP

5. December 2012, 08:37:50

Moderator

sgunhouse

Volunteer

Posts: 65154

I'm not an admin, but I could ... except the reference to the build number in the title doesn't seem appropriate in Opera browser. Well, I suppose I can edit the title too.

5. December 2012, 11:37:17

jesus2099

♡.. \(^Δ^;)/ ..☭

Posts: 357

Thanks very much, sgunhouse for your move and exenter again for your work-around !

To sum up the bug for newcomers :
THIS WORKS

Open with other application C:\Program Files\EmEditor\EmEditor.exe
Parameter /c html


THIS DOES NOT WORK

Open with other application D:\Tristan\PRG\i\EmEditor\EmEditor.exe
Parameter /c html


I get the following error message ↘ (when pressing CTRL+U)

Source viewer
You have not specified an external helper application.
Do you want to modify the configuration now?


Work-around until the source view external application Opera settings GUI works :
directly edit operaprefs.ini as below :
Source Viewer=""D:\Tristan\PRG\i\EmEditor\EmEditor.exe" /c html"

This works, however in the settings pane, you see the same thing that didn’t work before.
jesus2099 × Ti = Tristan + patate12 ÷ saucisson7 éditer bug report
※ My bugs and whishlist for Opera
Using latest stable version on Windows XP

10. May 2013, 09:39:00

jesus2099

♡.. \(^Δ^;)/ ..☭

Posts: 357

THIS BUG IS STILL NOT FIXED IN OPERA 12.15 (1748) Windows XP.
My manually fixed setting was reset on Opera update so I had to do it again.
One still has to edit operaprefs.ini manually to :
Source Viewer=""D:\Tristan\PRG\i\EmEditor\EmEditor.exe" /c html"
Source Viewer Mode=2

… and never change settings in the GUI or else it will fail again.
jesus2099 × Ti = Tristan + patate12 ÷ saucisson7 éditer bug report
※ My bugs and whishlist for Opera
Using latest stable version on Windows XP

10. May 2013, 10:11:28

burnout426

Posts: 12531

You can goto opera:config#source%20viewer and type:

"D:\Tristan\PRG\i\EmEditor\EmEditor.exe" /c html


and click save.

That will produce ""D:\Tristan\PRG\i\EmEditor\EmEditor.exe" /c html" in operaprefs.ini.

So, in short, for "open with other application", just click "choose" to choose the exe and ok out etc. Then, goto opera:config and quote the path and add your non-spaced params.

Originally posted by jesus2099:

I eventually submitted this DSK-375174 bug to that bug tracking



Person that tested at the time couldn't reproduce the problem. I can though. No matter now though, it won't be fixed for current Opera.

Once the new Opera based on Chromium comes out, if the problem is still there, file a new bug.

10. May 2013, 14:53:47

jesus2099

♡.. \(^Δ^;)/ ..☭

Posts: 357

Originally posted by burnout426:

You can goto opera:config#source%20viewer and type:

"D:\Tristan\PRG\i\EmEditor\EmEditor.exe" /c html

and click save.
So, in short, for "open with other application", just click "choose" to choose the exe and ok out etc. Then, goto opera:config and quote the path and add your non-spaced params.



Setting
Source Viewer   "D:\Tristan\PRG\i\EmEditor\EmEditor.exe" /c html
Source Viewer Mode   2

indeed worked too!
Thanks as it’s way fatser than my method. smile

Originally posted by burnout426:


Originally posted by jesus2099:

I eventually submitted this DSK-375174 bug to that bug tracking


Person that tested at the time couldn't reproduce the problem. I can though. No matter now though, it won't be fixed for current Opera.
Once the new Opera based on Chromium comes out, if the problem is still there, file a new bug.



The new Opera based on what what what?
OMG… I don’t know if it’s good news… wink

BTW it would have been great that DSK-375174 tell me one could not reproduce so I could have helped reproduce… :/
jesus2099 × Ti = Tristan + patate12 ÷ saucisson7 éditer bug report
※ My bugs and whishlist for Opera
Using latest stable version on Windows XP

Forums » Opera for Windows/Mac/Linux » Opera browser