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

Paste in a new document a 3500+ lines of json freezes helix #12323

Open
Alfrheim opened this issue Dec 23, 2024 · 2 comments
Open

Paste in a new document a 3500+ lines of json freezes helix #12323

Alfrheim opened this issue Dec 23, 2024 · 2 comments
Labels
C-bug Category: This is a bug

Comments

@Alfrheim
Copy link

Summary

Tried to copy paste 3600 lines of a json document. When trying with ctrl+v nothing happens. If I try space+P helix freezes.

Reproduction Steps

I tried this:

  1. copy a json document with more than 3600 lines.
  2. hx . to open helix
  3. ctrl+v to paste -> nothing happens
  4. space+P helix freezes with the menu space open

I expected to paste the clipboard

Helix log

~/.cache/helix/helix.log

2024-12-23T20:59:27.497 globset [DEBUG] glob converted to regex: Glob { glob: "/Dockerfile.", re: "(?-u)^./Dockerfile\..$", opts: GlobOptions { case_insensitive: false, literal_separator: false, backslash_escape: true, empty_alternates: false }, tokens: Tokens([ZeroOrMore, Literal('/'), Literal('D'), Literal('o'), Literal('c'
), Literal('k'), Literal('e'), Literal('r'), Literal('f'), Literal('i'), Literal('l'), Literal('e'), Literal('.'), ZeroOrMore]) }
2024-12-23T20:59:27.497 globset [DEBUG] glob converted to regex: Glob { glob: "/dockerfile.", re: "(?-u)^./dockerfile\..$", opts: GlobOptions { case_insensitive: false, literal_separator: false, backslash_escape: true, empty_alternates: false }, tokens: Tokens([ZeroOrMore, Literal('/'), Literal('d'), Literal('o'), Literal('c'
), Literal('k'), Literal('e'), Literal('r'), Literal('f'), Literal('i'), Literal('l'), Literal('e'), Literal('.'), ZeroOrMore]) }
2024-12-23T20:59:27.497 globset [DEBUG] glob converted to regex: Glob { glob: "/Containerfile.", re: "(?-u)^./Containerfile\..$", opts: GlobOptions { case_insensitive: false, literal_separator: false, backslash_escape: true, empty_alternates: false }, tokens: Tokens([ZeroOrMore, Literal('/'), Literal('C'), Literal('o'), Liter
al('n'), Literal('t'), Literal('a'), Literal('i'), Literal('n'), Literal('e'), Literal('r'), Literal('f'), Literal('i'), Literal('l'), Literal('e'), Literal('.'), ZeroOrMore]) }
2024-12-23T20:59:27.497 globset [DEBUG] glob converted to regex: Glob { glob: "/containerfile.", re: "(?-u)^./containerfile\..$", opts: GlobOptions { case_insensitive: false, literal_separator: false, backslash_escape: true, empty_alternates: false }, tokens: Tokens([ZeroOrMore, Literal('/'), Literal('c'), Literal('o'), Liter
al('n'), Literal('t'), Literal('a'), Literal('i'), Literal('n'), Literal('e'), Literal('r'), Literal('f'), Literal('i'), Literal('l'), Literal('e'), Literal('.'), ZeroOrMore]) }
2024-12-23T20:59:27.497 globset [DEBUG] glob converted to regex: Glob { glob: "/.ignore", re: "(?-u)^./\..ignore$", opts: GlobOptions { case_insensitive: false, literal_separator: false, backslash_escape: true, empty_alternates: false }, tokens: Tokens([ZeroOrMore, Literal('/'), Literal('.'), ZeroOrMore, Literal('i'), Literal
('g'), Literal('n'), Literal('o'), Literal('r'), Literal('e')]) }
2024-12-23T20:59:27.497 globset [DEBUG] glob converted to regex: Glob { glob: "
/BUILD.
", re: "(?-u)^./BUILD\..$", opts: GlobOptions { case_insensitive: false, literal_separator: false, backslash_escape: true, empty_alternates: false }, tokens: Tokens([ZeroOrMore, Literal('/'), Literal('B'), Literal('U'), Literal('I'), Literal
('L'), Literal('D'), Literal('.'), ZeroOrMore]) }
2024-12-23T20:59:27.497 globset [DEBUG] glob converted to regex: Glob { glob: "/.env.", re: "(?-u)^./\.env\..$", opts: GlobOptions { case_insensitive: false, literal_separator: false, backslash_escape: true, empty_alternates: false }, tokens: Tokens([ZeroOrMore, Literal('/'), Literal('.'), Literal('e'), Literal('n'), Literal
('v'), Literal('.'), ZeroOrMore]) }
2024-12-23T20:59:27.497 globset [DEBUG] glob converted to regex: Glob { glob: "/.envrc.", re: "(?-u)^./\.envrc\..$", opts: GlobOptions { case_insensitive: false, literal_separator: false, backslash_escape: true, empty_alternates: false }, tokens: Tokens([ZeroOrMore, Literal('/'), Literal('.'), Literal('e'), Literal('n'), Lit
eral('v'), Literal('r'), Literal('c'), Literal('.'), ZeroOrMore]) }
2024-12-23T20:59:27.497 globset [DEBUG] glob converted to regex: Glob { glob: "/conf//.{inc,conf}", re: "(?-u)^./conf/./.\.(?:conf|inc)$", opts: GlobOptions { case_insensitive: false, literal_separator: false, backslash_escape: true, empty_alternates: false }, tokens: Tokens([ZeroOrMore, Literal('/'), Literal('c'), Literal(
'o'), Literal('n'), Literal('f'), Literal('/'), ZeroOrMore, Literal('/'), ZeroOrMore, Literal('.'), Alternates([Tokens([Literal('c'), Literal('o'), Literal('n'), Literal('f')]), Tokens([Literal('i'), Literal('n'), Literal('c')])])]) }
2024-12-23T20:59:27.497 globset [DEBUG] glob converted to regex: Glob { glob: "/Jenkinsfile.", re: "(?-u)^./Jenkinsfile\..$", opts: GlobOptions { case_insensitive: false, literal_separator: false, backslash_escape: true, empty_alternates: false }, tokens: Tokens([ZeroOrMore, Literal('/'), Literal('J'), Literal('e'), Literal('
n'), Literal('k'), Literal('i'), Literal('n'), Literal('s'), Literal('f'), Literal('i'), Literal('l'), Literal('e'), Literal('.'), ZeroOrMore]) }
2024-12-23T20:59:27.497 globset [DEBUG] built glob set; 1 literals, 0 basenames, 0 extensions, 0 prefixes, 140 suffixes, 10 required extensions, 10 regexes
2024-12-23T20:59:27.504 helix_tui::backend::crossterm [DEBUG] The keyboard enhancement protocol is not supported in this terminal (checked in 3.622958ms)
2024-12-23T20:59:27.551 helix_term::application [DEBUG] received editor event: IdleTimer
2024-12-23T20:59:27.887 helix_term::application [DEBUG] received editor event: Redraw
2024-12-23T20:59:32.211 helix_term::application [DEBUG] received editor event: IdleTimer
2024-12-23T20:59:32.854 helix_term::application [DEBUG] received editor event: IdleTimer
2024-12-23T20:59:33.182 helix_term::application [DEBUG] received editor event: Redraw

Platform

Linux

Terminal Emulator

WezTerm 6f375e2

Installation Method

nixos from helix/master

Helix Version

rev cc3b77b

@Alfrheim Alfrheim added the C-bug Category: This is a bug label Dec 23, 2024
@Alfrheim
Copy link
Author

It just pasted, after 30 minutes, but only 1359 lines. Log is the same.

@kirawi
Copy link
Member

kirawi commented Dec 31, 2024

What does hx --health say? I suspect it's a problem with your clipboard manager. Helix blocks until the clipboard finishes returning the contents.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug
Projects
None yet
Development

No branches or pull requests

2 participants