- Comment: PBBrowser can list files to examine from a project, but it does not absolutely need to. If you open the main '.pb' file of your project (instead of opening the '.pbp'), PBBrowser will examine all the "IncludedFile" mentions in order to establish the list of files that the program includes as a whole.
Ok,
I only work with my tool (it opens PB either in x86 or x64 with the selected project), I also sometimes have Includefiles that are not necessarily in the main file.
Ok,
Je ne travaille qu'avec mon outil (il ouvre PB soit en x86 soit en x64 avec le projet sélectionné), j'ai aussi parfois des Includefile qui ne sont pas forcément dans le fichier principal.
- Suggestion: You could try opening your project from the .pbp file, then, if that doesn't work (but I really don't see why it wouldn't work) from the main .pb file.
It's true, I've just read your messages and tried to understand your tool, but I haven't tried it out. I'm going to install it as a tool and see how it goes.
C'est vrai, j'ai simplement lu tes messages et essayé de comprendre ton outil mais sans faire d'essai. Je vais l'installer en outil et voir comment ça se passe.
- Comment: In theory, from the moment your program is open in the IDE, PBBrowser can work on it, whatever adjustments you may have made to your working environment.
Ok
- Comment: Once PBBrowser has been compiled and/or installed on your machine, then installed in the IDE tools, you no longer even need to wonder how it lists a project's files. Click on a word in your code in the IDE, then press CTRL + Q. If a project that includes this file is open int the IDE, PBBrowser will use it to list the files. If this is not the case, it will manage with 'IncludedFile' mentions.
Ok
- Question: You write: "it saves all project's prefs files in a special folder". But I don't understand what you are recording in your prefs, in 'C:\Users\ldsou\AppData\Roaming\PureBasic\ASM_Generator', for example. Are these preferences for PureBasic? Are these preferences for your particular tool? What do you exactly mean by "each project has its own ‘PB environment’"?
I'm going to take 2 examples of projects that my tool loads.
My tool is in fact a project launcher, i.e. I select a project, I select the x86 or x64 mode and I launch it with a button.
Je vais prendre 2 exemples de projet que mon outils charge.
Mon outil est en fait un lanceur de projet, c'est à dire que je sélectionne un projet, je sélectionne le mode x86 ou x64 et je lance avec un bouton.
Launcher/Lanceur
my working projects/Mes projets de travail
how I launch the PureBasic editor/Comment je lance l'éditeur PureBasic
From French doc Commutateurs de la ligne de commande
/P <fichier Préférences> charge (et enregistre) la configuration à partir du fichier spécifié.
/T <fichier Modèle> charge (et enregistre) les modèles de code à partir du fichier spécifié.
/A <fichier outils> charge (et enregistre) la configuration des outils externes à partir du fichier spécifié.
Prefs file path definition/Définition du chemin des fichier prefs
Each of the 3 prefs files is only used for the project in question.
For the Microsoft__Macros project:
The folder used by the ide for this project is (folder with the project name)
C:\Users\ldsou\AppData\Roaming\PureBasic\Microsoft__Macros
The prefs files also use the project name
Chacun des 3 fichiers prefs est uniquement utilisé pour le projet concerné.
Pour le projet Microsoft__Macros :
Le dossier utilisé par l'ide pour ce projet est (dossier reprenant le nom du projet)
C:\Users\ldsou\AppData\Roaming\PureBasic\Microsoft__Macros
Les fichiers prefs reprennent également le nom du projet
Pour le projet Module__SubClass :
Le dossier utilisé par l'ide pour ce projet est (dossier reprenant le nom du projet)
C:\Users\ldsou\AppData\Roaming\PureBasic\Module__SubClass
Les fichiers prefs reprennent également le nom du projet
Each project uses its own prefs file, its own Template.prefs file and its own tools.prefs file.
Chaque projet utilise son propre fichier prefs, son propre fichier Template.prefs et son propre fichier tools.prefs
- Suggestion: You write: "If I install code browser in the standard way, it won't work" but it seems you haven't try. Please try and describe the encountered problem, if any.
Yes, you're right.
When I've got a bit of time I'll have a look, but I think I'll have to modify my tool to modify the prefs files for all the projects as well as my basic prefs files which I use when I create a new project.
Oui, tu as raison.
Lorsque j'aurais un peu de temps je vais regarder, mais je pense devoir modifier mon outil pour modifier les fichiers prefs de tous les projets ainsi que mes fichiers prefs de base qui me servent lorsque je crée un nouveau projet.