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

[BUG] Clear cache and recompile does not clear cache for "Execute code" #3030

Closed
davidstone opened this issue Oct 12, 2021 · 10 comments
Closed
Labels

Comments

@davidstone
Copy link

Describe the bug
Clicking the "Clear cache and recompile" button does not clear the cache for "Execute code"

To Reproduce

  • Write and execute some (C++) code
  • Change a library so that the executed could would have a different result
  • Click "Clear cache and recompile"

Desktop

  • OS: Arch Linux
  • Browser: Firefox
  • Version: 93
@davidstone davidstone added the bug label Oct 12, 2021
@partouf
Copy link
Contributor

partouf commented Oct 12, 2021

Is this when using the Compilation pane with the assembly or the Execution pane?

@partouf
Copy link
Contributor

partouf commented Oct 12, 2021

Also, I assume you have Automatic compilation checked off in the Settings? Otherwise it would have already attempted to recompile when changing the library

@davidstone
Copy link
Author

This is in the "Output of [compiler name]" pane. Automatic compilation is turned on. By "change a library" I mean a library I have configured to be found with #include, not code in the source pane. So it's the type of change that would not be picked up by compiler explorer typically, which is why I'm trying to get it picked up with the "Clear cache & recompile" button

@partouf
Copy link
Contributor

partouf commented Oct 12, 2021

This is in the "Output of [compiler name]" pane. Automatic compilation is turned on. By "change a library" I mean a library I have configured to be found with #include, not code in the source pane. So it's the type of change that would not be picked up by compiler explorer typically, which is why I'm trying to get it picked up with the "Clear cache & recompile" button

It automatically recompiles (and executes) when you change the library in the UI, are you sure the execution output would have changed in the way that you expected?

@apmorton
Copy link
Member

apmorton commented Oct 13, 2021 via email

@partouf
Copy link
Contributor

partouf commented Oct 13, 2021

I think David means on a local instance he's changed some files on disk outside of CE that are getting #included and when forcing recompilation it's not actually happening for the execute pane. Is this correct?

ahh that would make sense

@davidstone
Copy link
Author

Yes, that is correct

@jeremy-rifkin
Copy link
Member

I'm able to reproduce

// ~/test.h
#include <iostream>
void foo() {
        std::cout<<"Hello World!"<<std::endl;
}
// CE
#include <\
/home/rifkin/test.h>

int main() {
    foo();
}

image

@jeremy-rifkin
Copy link
Member

Improved behavior is now live

@AbrilRBS
Copy link
Member

Was just coming here to comment on it after seeing it. This is great! Thanks a lot @jeremy-rifkin

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

No branches or pull requests

5 participants