prb28 / vscode-amiga-assembly

Amiga Assembly extension for Visual Studio Code
GNU General Public License v3.0
179 stars 12 forks source link

Files are compiled twice #227

Open Real-MJoe opened 2 years ago

Real-MJoe commented 2 years ago

I am currently in the process of upgrading my old projects to the new version 1.6.0. First of all, what a great version with all its new features! So while upgrading I noticed a strange behavior. Now when I want to compile a selected file, it is compiled twice. Unfortunately the object file is also sent twice to the linker. And that causes then an error message that for example Global symbol are already defined.

Compiling: grafik

Linking: grafik

I have found the cause of this, or rather I suspect it. I have added a second directory in my workspace file. And if I comment this out, also the compilation is done only once. grafik

Thanks in advance

prb28 commented 2 years ago

Looks like a bug. I'll be far from a computer for the next couple of weeks, but I'll take a look as soon as possible.

Oh and you can thank @grahambates for the new features!

prb28 commented 2 years ago

What is your vlink configuration in your tasks.json file ?

Real-MJoe commented 2 years ago

First of all, sorry for the delay. So the whole thing can be readjusted very quickly. First you have to create the example twice in a seperate directory. So something like this: grafik

After the last directory in VSCode is closed, select the menu item "Add Folder to Warkspace..." and select the two created directories. As soon as you are in one of the two "projects" and create it with F5, both projects are always created and not the selected one. grafik

With other extensions only the project is created, in which one is straight.

Oh, here again the vlink setting: grafik

Thanks for the efforts.

Real-MJoe commented 2 years ago

Is there any progress to report here yet?

prb28 commented 2 years ago

Sorry for the delay, I'm pretty busy last months. I think, I've done this on purpose, so if you have a workspace with a library folder and a project folder everything is build on one click. I don't if it was a good idea, maybe I must do a better separation: project / workspace.