Comments (17)
Line 57 in c9b77f6
I wrote the script back in 2018, don't know why the search is not returning it
from cmder.
@daxgames That's just for the debugging purposes according to what I see on the screenshots;
OK
I'm not sure why the
cmder_shell.cmd
is apparently not setting the%cmder_root%
variable on his machine (according to the screenshots) and/or returning such an error,
Dunno works on my system:
from cmder.
@daxgames Sidenote, what is the preferred way to launch Cmder in debugging mode, I think it's best to add an entry for that to the wiki. It should also be terminal-agnostic.
The only shell that really has any debugging support is cmd.exe
initialized by init.bat /d
so editing a Conemu task as follows:
But that debug is severely limited if the speed optimized %cmder_root%\config\user_init.cmd
exists so deleting this file will increase debug output for a single run.
There are various debug scripts that provide info about the users env and are cmder shell specific:
~\cmderdev (development-dax -> origin) λ dir vendor\bin\*_diag.*
Volume in drive D is UserProfile
Volume Serial Number is AAE8-A44A
Directory of D:\Users\296951\cmderdev\vendor\bin
01/19/2024 02:18 PM 1,735 cmder_diag.cmd
05/30/2023 11:26 AM 1,981 cmder_diag.ps1
05/30/2023 11:26 AM 1,534 cmder_diag.sh
from cmder.
Maybe a user script is resetting some environment variables.
Especially if a user script contains setlocal
.
from cmder.
@petercao Please type this in your Cmder terminal and then send us an screenshot:
git --version
from cmder.
from cmder.
Please, type cmd
then type:
where git
You will see a list of git.exe
files, then for each of them, run it with the --version
switch.
Please attach a screenshot of all of them, thank you.
from cmder.
According to a GitHub search, neither Cmder nor ConEmu contain the word "improper".
Maybe this is completely unrelated to Cmder.
Look for other scripts that are being run.
from cmder.
from cmder.
@petercao Firstly I apologize for this issue, I wonder exactly what is causing this.
Please follow these steps to update the affected component of Cmder and help us solve the issue:
- Open the following link and copy the entire file:
https://raw.githubusercontent.com/cmderdev/cmder/master/vendor/lib/lib_git.cmd - Open the following file in your Cmder folder:
vendor\lib\lib_git.cmd
, delete all lines, then paste the content from the first link - Now, close all Cmder windows
- Open
conhost.exe
- Type the following command, change the
%CMDER_ROOT%
to your actual folder
"%cmder_root%\vendor\bin\cmder_shell.cmd" /d
- You shall see something like the image below, copy everything and paste it as
.txt
file, send us the file on GitHub
Again I am sorry for this problem, but these steps will help us understand and solve this issue.
from cmder.
from cmder.
Please type this and post a screenshot:
set cmder_root
And please edit the cmder_shell.cmd using notepad, change echo off to echo on, then run again and send a screenshot
Thank you
from cmder.
from cmder.
Please apply step 1 and step 4 from the link here:
https://github.com/cmderdev/cmder/wiki/Setting-up-Environment-Variables
Make sure to keep @echo on
in the batch file as before.
Then, open conhost.exe
and run this again:
"%cmder_root%\vendor\bin\cmder_shell.cmd" /d
Then, please send a screenshot again. Thank you.
from cmder.
@DRSDavidSoft Just curious but why are we instructing users to set cmder_root outside cmder?
This is not required for normal function.
Every script we provide to initialize cmder does this automatically for the running session.
from cmder.
@daxgames That's just for the debugging purposes according to what I see on the screenshots;
I'm not sure why the cmder_shell.cmd
is apparently not setting the %cmder_root%
variable on his machine (according to the screenshots) and/or returning such an error, what I'm trying to do is to make sure this variable is pre-set before the script is run, and also to make sure the echo
is on so there is some useful debugging output on the terminal that I can use to better understand the problem.
Since each reply takes a couple of hours to troubleshoot the issue, I'm trying to reduce any un-important problem factors to debug the actual issue quicker.
from cmder.
@daxgames Sidenote, what is the preferred way to launch Cmder in debugging mode, I think it's best to add an entry for that to the wiki. It should also be terminal-agnostic.
from cmder.
Related Issues (20)
- [Bug] cmder gets stuck on git reflog HOT 9
- 运行总是提示:“此时不应有 D:\Program。” HOT 6
- Aliases not recognized + system can't find path specified HOT 14
- [Bug] problem with "home" and 'end" keys
- [Feature request] Allow terminal to accept and run commands before cmder is fully loaded HOT 5
- [Bug] Shortcuts not work in cmder, and alias names aren't coloured correctly. HOT 6
- Question: How to update curl version in Bash console? HOT 5
- Question: Alias with admin permission
- [Bug] wired color blocks when running a CLI program based on Python and prompt_toolkit in cmder HOT 6
- [Bug] Chinese compatibility problem after resolving Kconfig files HOT 2
- [Feature request] fzf integration HOT 16
- [Feature request] Update Clink version chrisant996 / v1.6.8 HOT 7
- [Bug] Predefined task: as Admin
- Question: How do I change the route cmder has to find ssh keys? HOT 11
- [Bug] Midnight Commander and msys HOT 1
- [Bug] Cmder ceases to be compatible with program Admin by Request HOT 8
- [Bug] Weird output and process hangs
- [Bug] development builds `cmder.exe` always overwrites the terminal emulator settings files. HOT 7
- CVE-2024-32002 HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cmder.