
Hello,
I have configured Inno to upen all files automatically, but many of the files are not opened.
Most of the time it is OK, but now I need to debug a file that is not opened.
Can't quite figure out why there is no separate "Open included file..." functionality. Also now would help if I could set breakpoint into the Preprocessor output-file, but it seems that I can't.
Files that are not opened into the IDE are included fine into the Preprocessor output-file, and the installer compiles and works fine.
Is there anything I could do to get the file(s) opened into the IDE?
-tee-
--
You received this message because you are subscribed to the Google Groups "innosetup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to innosetup+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/innosetup/CABwd-apOpBsPjiffr_Gv2q59Hoo4ZNqzc7x2zhmOCh-D-4EBMA%40mail.gmail.com.
To view this discussion visit https://groups.google.com/d/msgid/innosetup/176466744546.7.12476005983070889402.1041946330%40innosetup.nl.
To view this discussion visit https://groups.google.com/d/msgid/innosetup/176466744546.7.12476005983070889402.1041946330%40innosetup.nl.
To view this discussion visit https://groups.google.com/d/msgid/innosetup/CABwd-aprMBnr6_5vUtvURBS9DLMT413RtKqro6GaH8xehZGoJw%40mail.gmail.com.
To view this discussion visit https://groups.google.com/d/msgid/innosetup/176493300762.8.13230591379981537562.1048642059%40innosetup.nl.
I don't know. To be honest, the limit of 20 already sounds like quite a lot.
The limit is there because supporting more comes with overhead (more Scintilla instances, even if you don't have extra include files), and the IDE is also missing functionality to navigate many files. For example, the tab control has no special features for handling large numbers of tabs, nor is there something like a dialog that lets you enter a filename and jump to it.
To me, the preferred behaviour would be to show only the main and preprocessed file (not open included files by default) but have an easy way to open them on demand.
How hard would it be to add a menu item to the right-click menu when the cursor is on a #include line to make it open the corresponding file?
Op 7-12-2025 om 23:40 schreef Gavin Lambert:
To me, the preferred behaviour would be to show only the main and preprocessed file (not open included files by default) but have an easy way to open them on demand.They only open by default the first time a new include file is encountered. After that, once you close them, they stay closed across sessions, and you can reopen them via the three ways I mentioned.
But for me the question still is: why is 20 not enough? And if 20 is not enough, then what number would be enough? Making it work to support an unlimited amount is not an option right now, because it would involve major refactoring.
To me, having 38 include files like OP sounds a bit odd. But maybe I just underestimate how complex scripts can be.
Once I know what number would be enough, I can check what that means for resources. Like I said, even if you don't use any include files, the memos are still there, just hidden.
If I turn off the setting to automatically open include files, there are no menu options to open specific ones in tabs afterwards.
Why not just save an unlimited number of files without creating any corresponding memos/tabs (just the menu items to open them), then create the UI on demand?
Then the setting could just control whether it initially opens all of them or not, so you don't have to close them all manually.
Ah, I see. If I have the setting on and then close only some of the tabs, when I later reload the script with the setting off and then compile, it offers to reload only those tabs I had previously closed
I'm sure that sounds like something that could be done easily, but like I tried to explain, unfortunately it's not.
Such a new setting could still be added. I'm not sure how interesting it is though, as it only opens many include files in an unexpected way if you get the script from someone else and the IDE hasn't seen it before. Even then, you can still close all easily by selecting the first and holding Ctrl+F4. Could add a 'Close All' option though.
You said that currently the tabs+editors still exist, just hidden. I was suggesting not creating them in the first place until explicitly requested to open.
Perhaps my usage is unusual in a different way, but I have about 50 or so top-level iss files (for different apps, or sometimes different bundles of apps), almost all of which share the same three or four include files (plus a few others that are more unique) and which almost never need to be edited. So it's a distraction to have to keep closing tabs when loading a top-level script for the first time. I don't have that many that this is a big issue, but still, it's nice to have a tidy workspace.
--
You received this message because you are subscribed to a topic in the Google Groups "innosetup" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/innosetup/qsd5nTdYdlY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to innosetup+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/innosetup/176535414524.8.13904755090728663640.1057497566%40innosetup.nl.
You received this message because you are subscribed to the Google Groups "innosetup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to innosetup+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/innosetup/CAKSr1pfkrn6rpCj_BU-7HPEVu5nMpPtacQjE8VzuROGhC8QByA%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "innosetup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to innosetup+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/innosetup/176535414524.8.13904755090728663640.1057497566%40innosetup.nl.