jeudi, septembre 20, 2007

Est-ce que vous aimez la "Task-list" de Visual Studio? Moi, je la déteste. Cette horreur sans nom a le don pour me mettre en boule. J'imagine bien qu'elle puisse parfois être utile, mais elle a surtout un très gros défaut lorsque l'on programme en C++: elle surgit à chaque compilation pour lister les erreurs de compilation. Et ça, c'est moche.

Problème numéro 1: il est difficile de savoir d'où sort l'erreur. Je veux pouvoir très facilement savoir quel fichier était en train de compiler, mais également s'il s'agissait d'un fichier d'inclusion, et dans ce cas quel était le fichier de base. D'ailleurs, je commence très souvent à lire le message d'erreur alors que la compilation n'est pas finie. Ce n'est pas pour que tout d'un coup il me soit caché au profit du tas d'immondices s'autoproclamant Task List!

Problème numéro 2: Un message d'erreur, en C++, c'est long. Surtout si l'on combine STL, boost, et ses propres templates. Or, l'horrible Task List s'évertue à mettre tout sur une ligne, et à tronquer ce qui vient après. Résultat, on ne voit rien.

Problème numéro 3: Cette cochonne de task list réordonne parfois les erreurs! On perd inutilement du temps à essayer de comprendre pourquoi un bout de code foire, alors qu'il suffisait de corriger l'erreur précédente pour que tout fonctionne. Quelle idée saugrenue.

Je vais donc oeuvrer pour le bien public, et rappeler qu'il existe une solution imparable à ce problème. Ouvrez bien grand vos esgourdes!

Tools -> Options -> Projects and Solutions -> décocher "Show Task List window if build finishes with errors"


Do you like the Task List of Visual Studio? I personally hate it. This unnamed horror unnerves me to the highest point. I imagine that it can sometimes be useful, but it has a major flaw when coding in C++: it jumps out on the programmer's face to list compile errors. And that's bad.

Problem number 1: it's very difficult to know where the error comes from. When something fails, I want to know where, but also, if for example it is in a header file, what was the target cpp file in the first place. By the way, I very often start reading the error message before the compilation finishes. And in the middle of my reading, the steaming pile of tasks jumps over.

Problem number 2: An error message, in C++, can be very long. Especially when combining STL, Boost, and one's own templates. And this stupid thing keeps truncating errors, hiding useful information, and making it difficult to access.

Problem number 3: This silly thing sometimes reorder error messages! One can loose time stupidly by trying to fix an error that does not even exist, as it may be solved with the first problem, but with the reordering, good luck to find out which line was causing the mess in the first place. What a strange idea.

I will therefore act for the greater good, and remind everyone that there is a solution to this. Open your ears!

Tools -> Options -> Projects and Solutions -> uncheck "Show Task List window if build finishes with errors"

Aucun commentaire: