Remove hard coded edition fallback
Evaluación
- Dificultad
- 1/5
- Tiempo estimado
- Menos de una hora
- Aptitud para principiantes
- 35/100
Línea de trabajo
Start with the hard coded fallback at autoload/rustfmt.vim#L75, linked in the issue, and check how it interacts with rustfmt_command and rustfmt's own fallback. The issue proposes removing the hard coded argument; done means users can supply their preferred fallback or cargo fmt -- without rustfmt receiving the edition argument twice. An open pull request (#532) is already linked.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
This hard coded edition is becoming a problem:
There are multiple issues related to this open already but for very specific symptoms. I think the best early move would be to just remove the hard coded fallback entirely. The rustfmt program itself has it's own fallback mechanism, and people can use the options to pass a default if they want.
The issue now is that rustfmt refuses to accept the argument being specified twice and any attempt to use the currently available settings to use the users preferred fallback results in an error.
The idea of also parsing Cargo.toml has been floated in comments on other issues, but I would suggest it would be better to let users specify their rustfmt_command as cargo fmt -- instead which would accomplish that. Again this solution is currently blocked because it gets overridden by hard coded argument!
- Lenguaje dominante
- Vim Script
- Estrellas
- 4.2k
- Forks
- 323
- Métricas de merge de PR
- Sin PR fusionados en 30 d
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 rust-lang/rust.vim
-
Dificultad 1/5 1-3 horas Aptitud para principiantes 76/100
-
It's Dead, Jim!Abierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 15/100
-
README.md syntastic to aleAbierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 55/100
-
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
-
Dificultad 3/5 1-2 días Aptitud para principiantes 43/100
Todos los issues de rust-lang/rust.vim
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
mglaman/phpstan-drupal#1078 ·
Los mantenedores suelen responder en 1 día
-
[Bug]: Python mod.Box[T] annotation gets a false generic_arg edge that replaces the parameter_type one ('is' on tree-sitter nodes)Posiblemente ocupada @rohit-jsfreaky la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Graphify-Labs/graphify#5110 · 1 comentario ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
Los mantenedores suelen responder en 1 día
-
documentation good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
voyageurworks/launch-guard-pack#29 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
bigbio/sdrf-pipelines#372 · 1 comentario ·
Los mantenedores suelen responder en 1 día