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

cmder-powerline-prompt failure #712

Closed
chrisant996 opened this issue Dec 19, 2024 · 3 comments
Closed

cmder-powerline-prompt failure #712

chrisant996 opened this issue Dec 19, 2024 · 3 comments
Labels
external The issue is due to external causes outside of Clink

Comments

@chrisant996
Copy link
Owner

chrisant996 commented Dec 19, 2024

prompt filter failed:
...\workspace\Tool\cmder\config\powerline_core.lua:135: attempt to index a number value)
stack traceback:
        ...\workspace\Tool\cmder\config\powerline_core.lua:176: in funct
        ...\\workspace\Tool\cmder\config\powerline_git.lua:132: in funct
        ~clink~/app/prompt.lua:301: in function 'func'
        ~clink~/app/prompt.lua:137: in function <~clink~/app/prompt.lua:124>
        [C]: in function 'xpcall'
        ~clink~/app/prompt.lua:191: in function <~clink~/app/prompt.lua:105>
        (...tail calls...)

ERROR IN LUA PROMPT FILTER

Originally posted by @Leezheng1 in #701 (comment)

@chrisant996
Copy link
Owner Author

@Leezheng1 The script that's failing is from the cmder-powerline-prompt repo.

Did you report it in the Clink repo instead, because the README in the cmder-powerline-prompt repo says the project is no longer supported?

You haven't shared any configuration information or steps for reproducing the issue. If you share more information, I can try to take a look, even though it's not part of Clink and the actual project repo is abandoned.

But also, the line numbers in the error message do not match up with the latest version of the files from the cmder-powerline-prompt repo. Are you using a modified version of the files? You'll need to share the powerline_core.lua and powerline_git.lua files.

@chrisant996 chrisant996 added the external The issue is due to external causes outside of Clink label Dec 19, 2024
@chrisant996
Copy link
Owner Author

@Leezheng1 also, consider deleting the cmder-powerline-prompt scripts from your computer. Those scripts are very old, they haven't been maintained, and other prompt scripts offer the same look but with more functionality and options.

If you like the "powerline" style prompt, then consider trying one of these instead:

  • clink-flex-prompt can show a powerline prompt (in the configuration wizard, choose the "Rainbow" style).
  • The "Agnoster" prompt that comes with Clink; clink config prompt use agnoster (requires Clink v1.7.0 or newer).

@chrisant996
Copy link
Owner Author

@Leezheng1 Closing due to lack of information, lack of response, and the error being in scripts from a repo that isn't part of Clink.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
external The issue is due to external causes outside of Clink
Projects
None yet
Development

No branches or pull requests

1 participant