Windows Defender might be impacting your build performance

52,712

Solution 1

You need to exclude those directories in your Windows Security's Exclusion list.

  1. Type Windows Security in your windows Search bar
  2. Click Virus & threat protection
  3. Under Virus & threat protection settings header, click Manage Settings
  4. Under Exclusions header, click Add or remove exclusions
  5. Click Add an exclusion
  6. Select type Folder
  7. Enter the directory
  8. You are done

Yes it is secure, necessary and really improves the performance as the real-time scanning is enabled in Windows defender by default. Read this: Minimize the impact of antivirus software on build speed.

Solution 2

I faced the same problem with Android Studio which is from same company after the recent update. So what you can do is you will get the directory which is causing this error. Like You will get the directories here

Then you need to go to Windows Defender and add these folders to the exclusion in Windows Defender or the antivirus you are using.

Solution 3

I did the above steps with adding exceptions to the defender, but the message in the WebStorm application did not want to disappear.

Running the WebStorm application as administrator helped me.

Share:
52,712
Burak
Author by

Burak

Updated on July 27, 2022

Comments

  • Burak
    Burak almost 2 years

    After I updated my PyCharm IDE to 19.2.0 from the 19.1.2. I am getting the following warning:

    "Windows Defender might be impacting your build performance. PyCharm checked 
    thefollowing directories:
    C:\Workspace\Projects\576_UniversityTwitter 
    C:\Users\Burak\.PyCharmCE2019.2\system 
    C:\Users\Burak\.gradle
    

    Do you think that it is secure, necessary and really improve the performance?

  • Umar Ata
    Umar Ata about 4 years
    Perfect!!, I completed your half century of votes. HAHAHAHA
  • Elias Rabl
    Elias Rabl about 4 years
    Can you elaborate why excluding certain folders will not compromise security? An attacker could specifically place malicious files in those folders, knowing that the files won't be scanned bei the antivirus software.
  • ScottMichaud
    ScottMichaud almost 4 years
    @EliasRabl You're correct, it's something to be concerned about, albeit kept in context considering what those files are, and who theoretically is responsible for them.
  • doublefelix
    doublefelix over 3 years
    I did this for my project's base folder and also for the AppData\Local\JetBrains\PyCharm folder, yet every time I open the project I still get the same warning. I don't want to just dismiss the notification if it will affect build performance. Is there actually still an issue or is PyCharm just "paranoid"? I already tried their auto-fix feature as well.
  • Sakuragaoka
    Sakuragaoka over 3 years
    Yes, agree with @doublefelix, I checked the Defender exclusions, they are exactly those that the PyCharm pop-up mentions, and yet that pop-up pops up each time I launch PyCharm... annoying
  • Mike
    Mike about 3 years
    For Norton, you can add the files/directories to just the real-time scan exclusion list. This will not impact the nightly file system scans.
  • 4b0
    4b0 about 3 years
    A link to a solution is welcome, but please ensure your answer is useful without it: add context around the link so your fellow users will have some idea what it is and why it’s there, then quote the most relevant part of the page you're linking to in case the target page is unavailable. Answers that are little more than a link may be deleted.
  • Yunnosch
    Yunnosch about 3 years
    Ven Ren, do you undestand why the edit by Teomerikoo was needed? Why that edit would have been expected by you? And why you should keep that in mind for future posts?
  • Adriana Hernández
    Adriana Hernández almost 3 years
    Thanks. Running the PHPStorm as administrator was the only thing that helped me!!