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

Long console output: cross-dependencies #688

Closed
d0vgan opened this issue May 23, 2016 · 13 comments
Closed

Long console output: cross-dependencies #688

d0vgan opened this issue May 23, 2016 · 13 comments

Comments

@d0vgan
Copy link

d0vgan commented May 23, 2016

ConEmu 160522, 160515, 32-bit,
Windows 7 64-bit.
Used shell: cmd, FAR 2.1 build 1807 bis29 x86

Problem description

Long console output seems to have cross-dependencies because I can't enable it in practice!

Steps to reproduce

  1. In Settings -> Size & Pos, I have "Long console output" checked and "2000" as "Console buffer height";
  2. In Settings -> Appearance, I have "Scrollbar" set to "Auto" and "Appear delay" and "Disappear" set to "500";
  3. Then I start some program with long output - for example "sfk".

Actual results

After that, I don't have a vertical scrollbar that should appear in ConEmu when I move the mouse cursor to the right side of ConEmu's window! I mean the scrollbar that should scroll the long console output.
Also Plugin commands -> ConEmu -> Edit console output in FAR does not show any long output!

My question is:
what did I miss in ConEmu Settings to enable the Long console output completely?
Because it does work on one of my machines, but does not work on all the other machines...

@Maximus5
Copy link
Owner

  1. 150522 - really?
  2. Take ConEmu.xml from working PC and compare it with bad one.

@d0vgan
Copy link
Author

d0vgan commented May 23, 2016

Nope :) I meant 160522, 160515 - I've updated that in the first message.

@d0vgan
Copy link
Author

d0vgan commented May 23, 2016

I don't understand anything.
At first, with ConEmu.xml created from scratch, everything seemed to work.
And it seemed to work even after I've changed some of settings.
But some time after that - and it seemed to happen after I just resized FAR's window (inside ConEmu) with mouse and moved the window with mouse, I don't remember I've changed something else! - for some reason:

  1. I've got doubled ConEmu entries in FAR's Plugins menu, and also
  2. in ConEmu -> Edit console output I can see only output from "cmd /?" but not from "sfk".
    As for the 2nd issue, I can scroll sfk's output via mouse in ConEmu's window, but in FAR in ConEmu -> Edit console output I don't see anything from sfk...

@Maximus5
Copy link
Owner

You have two instances of ConEmu plugin?? Use ProcessExplorer to check.

@d0vgan
Copy link
Author

d0vgan commented May 24, 2016

There's only one ConEmu.dll loaded by Far.exe process (plus one instance per ConEmuBg.dll, ConEmuCD.dll, ConEmuHk.dll, ConEmuLn.dll and ConEmuTh.dll).
But here is the command line of Far.exe (that was automatically started within ConEmu):
"far.exe" /w /p"C:\Progs\FAR2\Plugins\ConEmu;%FARHOME%\Plugins"
It seemed to be added automatically by ConEmu.
If I explicitly run cmd.exe as a new console in ConEmu, then cd to FAR2's folder and type "far", I have a Far.exe process with command line specified as "far" - and it does not have doubled ConEmu entries in FAR's Plugins menu!

@Maximus5
Copy link
Owner

Do you have ConEmu and Far both installed in same folder?

@d0vgan
Copy link
Author

d0vgan commented May 24, 2016

Yes, always.
Though after you asked it I can see that ConEmu in some magic way can start Far from a folder on the same level where the ConEmu folder is - i.e. when ConEmu.exe and Far.exe are located in different folders rather than in the same folder. (It's not clear to me how it finds FAR's folder in that case.)

@Maximus5
Copy link
Owner

It's a magic :D

@d0vgan
Copy link
Author

d0vgan commented May 24, 2016

OK, I don't have the doubled ConEmu entries in FAR's Plugins menu after I manually removed "%ConEmuDir%\Plugins\ConEmu;" from Startup -> Tasks -> {Far}.

But still I get an empty editor when calling ConEmu -> Edit console output. This time, though, I've seemed to understand when it happens! It happens when I start any external program via a .bat file. In this case, nothing is present in FAR's editor. Whereas when I start the very same program not from a .bat file but directly running its .exe file, the output is present in FAR's editor.

@d0vgan
Copy link
Author

d0vgan commented May 24, 2016

Here is an example:

  1. create a file "c.bat" with the following in it:
    cmd /?
  2. run this "c.bat" within ConEmu (I run it from FAR2 within ConEmu)
  3. call ConEmu -> Edit console output - FAR's editor is empty!
  4. run "cmd /?" directly in FAR's console
  5. call ConEmu -> Edit console output - everything is in the editor!

@d0vgan
Copy link
Author

d0vgan commented May 30, 2016

Is it a known issue? It looks like a big miss. (Personally I have a lot of programs in different folders and the corresponding .bat files with relative paths to these programs - these .bat files are inside FAR's folder. So I can start almost any program from FAR and in general I don't care if they are started as an executable directly from FAR's folder or as a .bat file pointing to an executable in a different folder. But ConEmu's Edit console output seems to create a difference between .exe and .bat...)

@Maximus5
Copy link
Owner

Just rechecked and still do not see any problems. What I'm doing wrong?

Clean install of latest ConEmu + Far, start it with ConEmu64.exe -basic -run {far}.

output

@d0vgan
Copy link
Author

d0vgan commented Mar 12, 2017

You run it with FAR 3. The issue is not reproduced with FAR 3 for me as well.
With FAR 2.1 build 1807 bis29 x86 it is reproduced.

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

2 participants