Page 1 of 1

No autocomplete for macros in residents

Posted: Mon May 18, 2020 2:26 pm
by Justin
Not sure if this is a bug or by design but there is no autocomplete for macros in resident files.

I have a windows res with macros like HIWORD() LOWORD() etc.. and it's a bit of a hassle not having autocomplete for them, it would be nice to have it.

Re: No autocomplete for macros in residents

Posted: Mon Jun 08, 2020 6:37 pm
by Captn. Jinguji
Uhmmm..... it's there. I seemed to have the same problem.
I have PB5.72 and PB5.71 installed in adjacent paths of the same directory tree - AND I am creating the .res file through a custom entry in my tools menu in both installations.
On closer examination, I found that much to my surprise, lf I alter the entry for "Commandline" in the 5.71 Menu to point to the 5.71 compiler, the corresponding entry in the 5.72 also gets changed to point to the 5.71 compiler (et vice versa) behind my back! (yes. both Menu Items go by the same name).
The target paths to their respective compiler version-specific residents directory in each case is being coonstructed using the %HOME Parameter in the Arguments field in the Menu; thus, the .res file is being (re-)created with the wrong compiler in the (version-wise) "correct" target path, and with that .res-file, autocomplete is no longer working, until I set the correct compiler here, rebuild the res and restart this compiler. Of course, now the other version gets "mangled", but that only becomes obvious once the .res file is recreated succesfully there, which in my case is rare and long between. AND: With two versions of the compiler of the same major version 5.7x, this is really hard to detect on inspection of the Menus;if it were, say, 5.61 and 5.72, it would be more obvious.

You may want to check if your problem arises from a like condition!

Re: No autocomplete for macros in residents

Posted: Mon Jun 08, 2020 11:50 pm
by BarryG
Justin wrote:there is no autocomplete for macros in resident files
Confirmed here. I made a test residents file with a constant and a macro, and only the constant name is auto-completed, and not the macro name.

I only have one version of PureBasic installed, so Captn. Jinguji's comment doesn't apply as the cause.

Re: No autocomplete for macros in residents

Posted: Thu May 22, 2025 10:44 am
by Taz
I would like to bring up this topic again since I couldn’t find any response in the forum.

Is it a bug that the macros do not appear in the autocomplete list, or is it intentional?

I think this feature would be very useful.