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

ConEmu + clink - Initialization runs twice #494

Closed
lllaffer opened this Issue Jan 2, 2016 · 10 comments

Comments

Projects
None yet
2 participants
@lllaffer

lllaffer commented Jan 2, 2016

clink.bat
echo !!! @ %~0 with ^>%*^<
exit /b 0

leads to

  C:\Users\admin>echo !!! @ C:\Program Files\ConEmu\ConEmu\clink\clink.bat with >inject<
  !!! @ C:\Program Files\ConEmu\ConEmu\clink\clink.bat with >inject<

  C:\Users\admin>exit /b 0

  C:\Users\admin>echo !!! @ C:\Program Files\ConEmu\ConEmu\clink\clink.bat with >inject<
  !!! @ C:\Program Files\ConEmu\ConEmu\clink\clink.bat with >inject<

  C:\Users\admin>exit /b 0

Who or what is wrong ? - Can't figure out ...

thx for your appreciacted work
L^3@W^3

ConEmu 151224
clink 0.4.6
Win 7 32

@Maximus5

This comment has been minimized.

Show comment
Hide comment
@Maximus5

Maximus5 Jan 2, 2016

Owner

You have not told us what are you trying to run.
But it seems like you ask ConEmu to run clink integration and run it from some other place.

Owner

Maximus5 commented Jan 2, 2016

You have not told us what are you trying to run.
But it seems like you ask ConEmu to run clink integration and run it from some other place.

@lllaffer

This comment has been minimized.

Show comment
Hide comment
@lllaffer

lllaffer Jan 2, 2016

Maximus5,

thank you for your reply.

I follow
http://conemu.github.io/en/TabCompletion.html

and build from scratch
… ConEmu & clink vanilla – only clink.bat modified

This leads me to

 x:\ConEmu\ConEmu
 x:\ConEmu\ConEmu.exe
 x:\ConEmu\ConEmu64.exe
 x:\ConEmu\plugins
 x:\ConEmu\ConEmu\About-ConEmu.txt
 :
 x:\ConEmu\ConEmu\Addons\AnsiColors16.ans
 :
 x:\ConEmu\ConEmu\Addons\utf-8-test.cmd
 x:\ConEmu\ConEmu\clink\CHANGES
 x:\ConEmu\ConEmu\clink\clink.bat                                                      
                           echo !!! @ %~0 with ^>%*^<                                   <-- only modification
 x:\ConEmu\ConEmu\clink\clink.html
 x:\ConEmu\ConEmu\clink\clink.lua
 x:\ConEmu\ConEmu\clink\clink_dll_x64.dll
 x:\ConEmu\ConEmu\clink\clink_dll_x86.dll
 x:\ConEmu\ConEmu\clink\clink_inputrc_base
 x:\ConEmu\ConEmu\clink\clink_x64.exe
 x:\ConEmu\ConEmu\clink\clink_x86.exe
 x:\ConEmu\ConEmu\clink\LICENSE
 x:\ConEmu\ConEmu\clink\Readme.txt
 x:\ConEmu\ConEmu\DosBox\DosBox_Sample.conf
 x:\ConEmu\ConEmu\Far1_reg\AltEnter_Exec.reg
 :
 x:\ConEmu\ConEmu\Far2_fml\ConEmu.Editor.fml
 :
 x:\ConEmu\ConEmu\Far3_fml\ConEmu.CtrlO.fml
 :
 x:\ConEmu\ConEmu\Scripts\readme.txt
 x:\ConEmu\plugins\ConEmu
 :
 x:\ConEmu\plugins\ConEmu\Background\Background.xml
 :
 x:\ConEmu\plugins\ConEmu\Lines\ConEmuLn.dll
 :
 x:\ConEmu\plugins\ConEmu\Thumbs\ConEmuTh.dll
 :

After the initial customization screen I get

 C:\Users\admin>echo !!! @ X:\ConEmu\ConEmu\clink\clink.bat with >inject<
 !!! @ X:\ConEmu\ConEmu\clink\clink.bat with >inject<

 C:\Users\admin>echo !!! @ X:\ConEmu\ConEmu\clink\clink.bat with >inject<
 !!! @ X:\ConEmu\ConEmu\clink\clink.bat with >inject<

 Microsoft Windows [Version 6.1.7601]

Clink integration was out of the box

Thank you for your time.
L^3@W^3

lllaffer commented Jan 2, 2016

Maximus5,

thank you for your reply.

I follow
http://conemu.github.io/en/TabCompletion.html

and build from scratch
… ConEmu & clink vanilla – only clink.bat modified

This leads me to

 x:\ConEmu\ConEmu
 x:\ConEmu\ConEmu.exe
 x:\ConEmu\ConEmu64.exe
 x:\ConEmu\plugins
 x:\ConEmu\ConEmu\About-ConEmu.txt
 :
 x:\ConEmu\ConEmu\Addons\AnsiColors16.ans
 :
 x:\ConEmu\ConEmu\Addons\utf-8-test.cmd
 x:\ConEmu\ConEmu\clink\CHANGES
 x:\ConEmu\ConEmu\clink\clink.bat                                                      
                           echo !!! @ %~0 with ^>%*^<                                   <-- only modification
 x:\ConEmu\ConEmu\clink\clink.html
 x:\ConEmu\ConEmu\clink\clink.lua
 x:\ConEmu\ConEmu\clink\clink_dll_x64.dll
 x:\ConEmu\ConEmu\clink\clink_dll_x86.dll
 x:\ConEmu\ConEmu\clink\clink_inputrc_base
 x:\ConEmu\ConEmu\clink\clink_x64.exe
 x:\ConEmu\ConEmu\clink\clink_x86.exe
 x:\ConEmu\ConEmu\clink\LICENSE
 x:\ConEmu\ConEmu\clink\Readme.txt
 x:\ConEmu\ConEmu\DosBox\DosBox_Sample.conf
 x:\ConEmu\ConEmu\Far1_reg\AltEnter_Exec.reg
 :
 x:\ConEmu\ConEmu\Far2_fml\ConEmu.Editor.fml
 :
 x:\ConEmu\ConEmu\Far3_fml\ConEmu.CtrlO.fml
 :
 x:\ConEmu\ConEmu\Scripts\readme.txt
 x:\ConEmu\plugins\ConEmu
 :
 x:\ConEmu\plugins\ConEmu\Background\Background.xml
 :
 x:\ConEmu\plugins\ConEmu\Lines\ConEmuLn.dll
 :
 x:\ConEmu\plugins\ConEmu\Thumbs\ConEmuTh.dll
 :

After the initial customization screen I get

 C:\Users\admin>echo !!! @ X:\ConEmu\ConEmu\clink\clink.bat with >inject<
 !!! @ X:\ConEmu\ConEmu\clink\clink.bat with >inject<

 C:\Users\admin>echo !!! @ X:\ConEmu\ConEmu\clink\clink.bat with >inject<
 !!! @ X:\ConEmu\ConEmu\clink\clink.bat with >inject<

 Microsoft Windows [Version 6.1.7601]

Clink integration was out of the box

Thank you for your time.
L^3@W^3

@Maximus5

This comment has been minimized.

Show comment
Hide comment
@Maximus5

Maximus5 Jan 6, 2016

Owner

As I've said before. You try to initialize clink twice.
Also, I still don't know what are you trying to start in ConEmu tab?

Clink's initialization may be triggered

  • from Settings/Features
  • from registry Software\Microsoft\Command Processor::AutoRun if you choosed this option when installing clink.
Owner

Maximus5 commented Jan 6, 2016

As I've said before. You try to initialize clink twice.
Also, I still don't know what are you trying to start in ConEmu tab?

Clink's initialization may be triggered

  • from Settings/Features
  • from registry Software\Microsoft\Command Processor::AutoRun if you choosed this option when installing clink.
@lllaffer

This comment has been minimized.

Show comment
Hide comment
@lllaffer

lllaffer Jan 6, 2016

I solely invoke ConEmu, pass the initial Screen, keep fingers calm and don’t try to start anything.
The 2 echos

            !!! @ X:\ConEmu\ConEmu\clink\clink.bat with >inject<

come - out of the box - from (modified) clink.bat which -just as you described in
http://superuser.com/questions/684309/how-do-i-set-clinks-profile-option-in-conemu
… ConEmu "loader" just tells cmd.exe to execute "%ConEmuBaseDir%\clink\clink.bat inject".

HKLM\SOFTWARE\Microsoft\Command Processor::AutoRun nexists
HKCU\Software\Microsoft\Command Processor::AutoRun is empty

lllaffer commented Jan 6, 2016

I solely invoke ConEmu, pass the initial Screen, keep fingers calm and don’t try to start anything.
The 2 echos

            !!! @ X:\ConEmu\ConEmu\clink\clink.bat with >inject<

come - out of the box - from (modified) clink.bat which -just as you described in
http://superuser.com/questions/684309/how-do-i-set-clinks-profile-option-in-conemu
… ConEmu "loader" just tells cmd.exe to execute "%ConEmuBaseDir%\clink\clink.bat inject".

HKLM\SOFTWARE\Microsoft\Command Processor::AutoRun nexists
HKCU\Software\Microsoft\Command Processor::AutoRun is empty

@Maximus5

This comment has been minimized.

Show comment
Hide comment
@Maximus5

Maximus5 Jan 6, 2016

Owner

Try to update CmdInit.cmd from here

Owner

Maximus5 commented Jan 6, 2016

Try to update CmdInit.cmd from here

@lllaffer

This comment has been minimized.

Show comment
Hide comment
@lllaffer

lllaffer Jan 6, 2016

the same … 2 injections

lllaffer commented Jan 6, 2016

the same … 2 injections

@lllaffer

This comment has been minimized.

Show comment
Hide comment
@lllaffer

lllaffer Jan 6, 2016

I inserted

        echo ###  @ %~0 with ^>%*^<

at the beginning of

        x:\ConEmu\ConEmu\CmdInit.cmd

and got

        C:\Users\admin>echo !!! @ X:\ConEmu\ConEmu\clink\clink.bat with >inject<
        !!! @ X:\ConEmu\ConEmu\clink\clink.bat with >inject<

        C:\Users\admin>echo !!! @ X:\ConEmu\ConEmu\clink\clink.bat with >inject<
        !!! @ X:\ConEmu\ConEmu\clink\clink.bat with >inject<
        ###  @ X:\ConEmu\ConEmu\CmdInit.cmd with ><

        Microsoft Windows [Version 6.1.7601]

lllaffer commented Jan 6, 2016

I inserted

        echo ###  @ %~0 with ^>%*^<

at the beginning of

        x:\ConEmu\ConEmu\CmdInit.cmd

and got

        C:\Users\admin>echo !!! @ X:\ConEmu\ConEmu\clink\clink.bat with >inject<
        !!! @ X:\ConEmu\ConEmu\clink\clink.bat with >inject<

        C:\Users\admin>echo !!! @ X:\ConEmu\ConEmu\clink\clink.bat with >inject<
        !!! @ X:\ConEmu\ConEmu\clink\clink.bat with >inject<
        ###  @ X:\ConEmu\ConEmu\CmdInit.cmd with ><

        Microsoft Windows [Version 6.1.7601]
@Maximus5

This comment has been minimized.

Show comment
Hide comment
@Maximus5

Maximus5 Jan 7, 2016

Owner

OK, will be fixed in next release

Owner

Maximus5 commented Jan 7, 2016

OK, will be fixed in next release

@lllaffer

This comment has been minimized.

Show comment
Hide comment
@lllaffer

lllaffer Jan 7, 2016

Good to know :-)
And thnx again for your appreciated work

lllaffer commented Jan 7, 2016

Good to know :-)
And thnx again for your appreciated work

@lllaffer

This comment has been minimized.

Show comment
Hide comment
@lllaffer

lllaffer commented Jan 11, 2016

conf!rmed

@Maximus5 Maximus5 closed this Jan 12, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment