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

[macro] Remove CompilationServer.setModuleCheckPolicy options #11615

Merged
merged 6 commits into from
Apr 3, 2024

Conversation

kLabz
Copy link
Contributor

@kLabz kLabz commented Mar 19, 2024

I'm really not sure it ever worked properly, and was often triggering X is redefined from X errors.

Since hxb (#11504) has been merged, CompilationServer.setModuleCheckPolicy seems utterly broken (as expected for things that would tend to break over time with compilation server: with hxb, it break fast) and triggers BadModule errors.. which are new errors that would have resulted in a X is redefined from X before.

I'm currently removing it entirely, but I can see some real use case in there for CheckFileContentModification (and possibly NoCheckFileTimeModification) policy which seems like a legit one. Will look into simplifying the previous API to only allow these two. I kept functionality for previous CheckFileContentModification and NoCheckFileTimeModification policies.

Closes #6993

@kLabz kLabz changed the base branch from 4.3_bugfix to identify_choke_points March 19, 2024 10:11
@kLabz kLabz changed the base branch from identify_choke_points to development March 19, 2024 10:13
@kLabz kLabz marked this pull request as ready for review March 19, 2024 11:56
@skial skial mentioned this pull request Mar 20, 2024
1 task
@kLabz kLabz requested a review from Simn April 2, 2024 18:53
@Simn
Copy link
Member

Simn commented Apr 2, 2024

I agree with the change generally but the renaming seems a bit pointless...

@kLabz kLabz changed the title [macro] Remove CompilationServer.setModuleCheckPolicy [macro] Remove CompilationServer.setModuleCheckPolicy options Apr 3, 2024
@Simn Simn merged commit 0bdc03a into development Apr 3, 2024
101 checks passed
@kLabz kLabz deleted the remove_setModuleCheckPolicy branch May 28, 2024 09:33
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

Successfully merging this pull request may close these issues.

Code completion breaks when using compilation cache with --macro server.setModuleCheckPolicy(...)
2 participants