Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Files are compiled twice #227

Open
Real-MJoe opened this issue Jul 9, 2022 · 5 comments
Open

Files are compiled twice #227

Real-MJoe opened this issue Jul 9, 2022 · 5 comments

Comments

@Real-MJoe
Copy link

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
Copy link
Owner

prb28 commented Jul 10, 2022

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
Copy link
Owner

prb28 commented Jul 28, 2022

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

@Real-MJoe
Copy link
Author

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
Copy link
Author

Is there any progress to report here yet?

@prb28
Copy link
Owner

prb28 commented Oct 23, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants