Compile from workspace window compiles current document

If reporting a bug with the Zeus IDE please post the details here. Please do not post questions here.
Post Reply
engicoder
Posts: 10
Joined: Wed May 18, 2011 1:54 pm

Compile from workspace window compiles current document

Post by engicoder »

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.

Ben
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Post by jussij »

Hi Ben,

I can confirm that you have found a bug :(
It seems to behave the same as selecting Compile from the Compile menu.

I suspect you are correct.

Cheers Jussi
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Post by jussij »

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 ;)

Cheers Jussi
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Post by jussij »

This issue should now be fixed in the latest beta version found here:

http://www.zeusedit.com/z300/ze397f-beta.zip

Cheers Jussi
Post Reply