I have a workspace with multiple files. For example:
- MyProject files
- Header Files
- Resource Files
- Source Files
main.c
helper.c
If I open helper.c as the current document and then right click on main.c in the workspace window and select Compile, it will compile helper.c instead of main.c. This is true even if the current document is a output window such as "Compiler".
It seems to behave the same as selecting Compile from the Compile menu.
I have identified the cause of this issue and it should be fixed in the next beta release
This issue is the compiler command line is calculated using the $fn macro tag and by definition this tag will return the currently active directory and hence the reason for the wrong file being compiled.
The fix will be to make sure the selected file also becomes the active file