Page 14 sur 21

Re: Présentation du Project Builder avec compilateur C en li

Message non luPosté: 03 Juin 2017, 18:40
de Adriweb
Un exemple peut-être un peu plus parlant, avec une implémentation (réduite...) d'une classe string :

Image

Cf. https://tiplanet.org/pb/?id=1381_149649 ... string.cpp

Re: Présentation du Project Builder avec compilateur C en li

Message non luPosté: 03 Juin 2017, 18:41
de Hayleia
Hé là, mon code n'est pas open source et libre de droits :troll:

Re: Présentation du Project Builder avec compilateur C en li

Message non luPosté: 03 Juin 2017, 18:42
de Adriweb
Hayleia a écrit:mon code

C'est pas comme si j'avais en gros tout refait et que par hasard, ça ressemble à ton code original :D
(bon, ok, pas les "tests" :P)

Re: Présentation du Project Builder avec compilateur C en li

Message non luPosté: 03 Juin 2017, 18:43
de Hayleia
Adriweb a écrit:C'est pas comme si j'avais en gros tout refait :D

Je reconnais encore mon main :troll:

Re: Présentation du Project Builder avec compilateur C en li

Message non luPosté: 10 Juil 2017, 20:29
de Adriweb
Un certain nombre d'évolutions sur le Project Builder, ces derniers temps, surtout grâce aux feedbacks de MateoC et Jacobly :)

  • Nouveautés
    • Les ctags (liste des symboles/defines/labels...) sont disponibles sur les fichiers .inc aussi.
    • Autocomplétion (en C/C++/ASM) basée sur les mots aux alentours (matchs exacts) + les ctags (en fuzzy search)
      Image
    • Possibilité de télécharger un fichier uniquement (sous le nom actuel ou un nom personnalisé)
      Image
  • Bugfixes
    • Chargement et application corrects des paramètres d'interface lors de changements de fichiers
    • Fix crash sur l'output LLVM quand il est vide
    • Le téléchargement du projet en tant que .zip comprend maintenant bien les fichiers sources ASM et C++.
    • L'affichage inline de l'ASM généré n'est visible que pour du C via ZDS
  • Beaucoup d'améliorations sur l'édition de code ASM:
    • Meilleurs syntax-highlighting pour certains mots-clés eZ80
    • L'indentation se fait par [tab] (avec une largeur de 8 espaces), par principe, sur ce langage.
      Image
    • Support du
      Ctrl
      +MouseOver sur des variables/labels, pour afficher leur définition. Clic pour y aller.
    • Support du
      Ctrl
      +MouseOver sur des fonctions documentées pour afficher leur docs (bientôt avec support Doxygen). Clic pour y aller.
    • Support du
      Ctrl
      +MouseOver sur nombres, pour afficher leur conversion en décimal/hexadécimal. Clic pour convertir.


Enjoy :)

Re: Présentation du Project Builder avec compilateur C en li

Message non luPosté: 11 Juil 2017, 23:58
de Adriweb
Autocomplétion (fuzzy search) et rappel de la définition depuis les includes du SDK (standard, libs...) :

Image

Image

Re: Présentation du Project Builder avec compilateur C en li

Message non luPosté: 21 Juil 2017, 19:49
de Adriweb
Changes since last time: (see previous post)

New:
  • Automatic autocompletion popup (debounced)
  • Ctrl-Click (or Cmd-Click on mac) on toolchain functions/defines etc. will open up the corresponding documentation line on GitHub
  • Trailing whitespaces are now trimmed on save
  • clang-provided warnings (as well as errors and diagnostics) are now shown inline, updated on each save and file switching
    Other sources of warnings (ZDS, cppcheck) are still displayed, and have their name on the right.
    Image
  • Code re-indent feature available at the click of a button at the top-right of the editor
    Image

Improved:
  • More optimal sorting of the autocompletion items
  • Finer file permissions in the backend
  • Better security checks on #include statements
  • Stricter clang warning flags when using llvm-eZ80
  • The backend toolchain is now just the same as on github with a (very) small patch to apply
  • The backend code got improved/refactored for several things, like error handling, permissions checking, action processing, DB usage (now generic)...

Fixed:
  • Ctrl-Hover (or Cmd-Hover on mac) improvements on compatibility and performance
  • Some eZ80 ASM ctags were not correct
  • The clang build output was not complete ; everything is now shown correctly.
  • Forking a project was not working if done on a project that didn't have saved files yet (ie: just created), and had incorrect error handling.
  • Re-sharing in RW a project that was shared then unshared at some point would result in having an old version of the files.
  • The Ctrl/Cmd-Hover popup was not destroyed when its word would get edited
  • Random typos got fixed

My thanks to:
- Lionel Debroux who's started code-reviewing and suggested quite a few interesting things, mostly aimed towards a more reusable/portable PB. Everything isn't done yet, but we're getting there!
- Runer112 too in particular, for feedback, testing, sorting ideas+code
- Everyone else who's tried/used the PB and provided feedback :)

Re: Présentation du Project Builder avec compilateur C en li

Message non luPosté: 23 Juil 2017, 23:26
de Adriweb
Among the numerous improvements from today:

  • Improved auto-completion rendering, now with types, signatures...
  • Better log output in the build console
  • The CEmu sidebar is now toggled properly if need be, when testing a program
  • Cache-busting URLs for several CSS and JS resources
  • Lots of cleanup/refactor in the backend
  • Some work by Lionel to make the PB easily installable locally (not committed yet)

Image

Image

Re: Présentation du Project Builder avec compilateur C en li

Message non luPosté: 28 Juil 2017, 16:58
de Adriweb
Latest updates:
  • Improved fuzzy-match search rendering
  • Locals are now displayed correctly in the autocompletion list
  • Bugfix for conflicting type names / bootstrap label
  • CodeMirror updated
  • WebCEmu arrows display improved
  • WebCEmu is now multithreaded and, as such, runs at full-speed (this requires a very recent stable/beta browser version: Chrome 60 / Opera 47, Firefox 55, Safari 10.1, Edge 16)

Image

Image

Re: Présentation du Project Builder avec compilateur C en li

Message non luPosté: 02 Aoû 2017, 00:49
de Adriweb
Some of the latest updates:
  • The hardcoded requirement to have a 'main.c' file is now gone. You just need to have at least one (any) file in a project
  • You can now import source code files via drag'n'drop on the editor
  • Fix-its, when available, are displayed and applicable by clicking on the flash icon on the right of warnings
  • Even more safe file switching (you can't click on stuff when it's loading the content)
  • WebCEmu build improved (latest emscripten SDK, behind the scenes improvements)
  • AJAX activity indicator (when loading, saving, etc.)
  • Some misc. cleanup and bugfixes





Image