Slow startup on WSL with default config
Los mantenedores suelen responder en 3 días
Nadie ha tomado este issue todavía.
- #4215 de @frankischilling — cerrado sin fusionar
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 55/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- go
- Área
- cli, performance
Línea de trabajo
Comienza en cmd/micro/micro.go alrededor de la línea 386 e inspecciona la inicialización síncrona del portapapeles descrita en el issue. Después, revisa la sección “WSL and Windows Console” del README y la configuración existente "clipboard": "terminal". Los maintainers deben definir qué se considera terminado: documentar la solución alternativa de OSC 52, abordar el retraso durante el inicio o aclarar qué ámbito se pretende y verificar el comportamiento del inicio en WSL.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Description
Launching micro in WSL takes ~1 second for me before the main UI appears.
I checked out master and manually added timing points. All the time is spent here: https://github.com/micro-editor/micro/blob/393cf24858e63ba75af1480b618d2e3add5b9e3e/cmd/micro/micro.go#L386
When I add timing points to break down each clipboard option, I get
2026/09/05 00:24:27 Type init: *clipper.Custom
2026/09/05 00:24:28 Time to init fail: 126.397986ms
2026/09/05 00:24:28 Type init: *clipper.Wayland
2026/09/05 00:24:28 Time to init fail: 126.933187ms
2026/09/05 00:24:28 Type init: *clipper.Xclip
2026/09/05 00:24:28 Time to init fail: 126.090087ms
2026/09/05 00:24:28 Type init: *clipper.Xsel
2026/09/05 00:24:28 Time to init fail: 124.130887ms
2026/09/05 00:24:28 Type init: *clipper.Wsl
2026/09/05 00:24:28 Time to init succeed: 381.408161ms
My understanding is that resolving non-existent commands is slow in WSL because it needs to check all the Windows paths. The ~120ms matches what I get when executing time which noexist.
I have 43 Windows entries in my PATH which might be higher than average? because I install a lot of tools through winget and each one gets its own path entry when installed that way.
I tested manually creating a micro-clip script and adding it to my first path entry (Linux folder) so micro doesn't need to try every other clip option in the list and with that, micro starts up instantly. Only later did I realize micro allows setting "clipboard": "terminal" in the config to use OSC 52 which will bypass all of this logic and works perfectly in Windows Terminal.
I think others might run into this issue as well and it might be beneficial to:
- Mention
clipboard": "terminal"in the README in the https://github.com/micro-editor/MICRO#wsl-and-windows-console section (will also help with https://github.com/micro-editor/micro/issues/1365). Out of curiosity, I checked what https://github.com/microsoft/edit does and it appears like they only support OSC 52, falling back to an internal buffer for copying/pasting when OSC 52 is not supported. - Make UI startup time not synchronously blocked by clipboard initialization? Not totally sure if okay, it's possible to type while the UI is still loading.
Environment
- Version: 2.0.15
- OS: Arch Linux (via WSL)
- Terminal: Windows Terminal
- Lenguaje dominante
- Go
- Estrellas
- 29.8k
- Forks
- 1.4k
- Merge medio
- 1 d 12 h
- PR fusionados (30 d)
- 2
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de micro-editor/micro
-
feature syntax
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
micro-editor/micro#4289 ·
Los mantenedores suelen responder en 3 días
-
Also bind alt-click for multi-cursorsPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertofeature
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
micro-editor/micro#4260 ·
Los mantenedores suelen responder en 3 días
-
XML syntax highlighting breaks if empty tag contains whitespace before closePosiblemente ocupada @justadityaraj la tomó hace 56 días. Abiertobug syntax
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
micro-editor/micro#4213 · 1 comentario ·
Los mantenedores suelen responder en 3 días
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 78/100
micro-editor/micro#3553 · 5 comentarios ·
Los mantenedores suelen responder en 3 días
-
syntax
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
micro-editor/micro#2969 · 3 comentarios · 1 reacción ·
Los mantenedores suelen responder en 3 días
Todos los issues de micro-editor/micro
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
kubeflow/semantic-operator#52 ·
Los mantenedores suelen responder en 10 días
-
enhancement help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
PramodBasavarajMenasi/siftwise#52 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
dragonflydb/dragonfly-operator#619 ·
Los mantenedores suelen responder en 2 días
-
非流式 /v1/chat/completions 经 Responses 转换时丢失 reasoning_content(vLLM 上游 summary 为空、思考在 content 中)Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 2 días
-
lazygit is not RustAbierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 78/100