PyCharm 2019.1.1 Not Searching Project Correctly

I have been noticing poor searching capability lately in PyCharm, but this image kind of proves there is an issue. I am searching the whole project for 'property_choices" and there are 6 occurrences in the file in the background yet the search functionality finds nothing.... is there anything that can be done to fix this or am I out of luck? This is one of the main reasons I like using this IDE


Comment actions Permalink

Well downgrading to a previous release fixed my issue, but that issue still seems silly. 

Comment actions Permalink

Please try PyCharm 2019.1.3 (

If the issue is still reproduced in the latest version, can you provide a sample .py file and indicate the phrase that cannot be found? We would try to reproduce locally.

Comment actions Permalink

I did upgrade and the issue persists with 2019.1.3. I search for


which is clearly in the page in the background, and nothing is found. However, when I copied the text directly after cleaning up the comments it randomly worked though. I am not sure what the issue is but it does seem like there could be a bug.

I don't seem to be able to attach a file to the comment, but here is the code from the file, it could not find Group.DoesNotExist:

from django.contrib import messages
from django.contrib.auth.models import Group
from django.shortcuts import render, redirect
from django.urls import reverse

from apps.authentication.decorators import permissions_required
from apps.groups.forms.GroupForm import GroupForm
from import Property
from utils.other.logging_and_print_helpers import display_exception, log
from utils.other.pagination import paginated_results

def index(request, client_url):
    groups = Group.objects.all().order_by('name').exclude(name='admin')

    return render(request, 'groups/index.html', {
        'groups': paginated_results(request, groups)

def edit_group(request, client_url, group_id):
        group = Group.objects.get(id=group_id)
    except Group.DoesNotExist as ex:
        log(ex, display_exception(), request=request)
        messages.error(request, 'Group does not exist')
        return redirect(reverse('groups_index', args=[client_url]))

    form = GroupForm(request.POST, instance=group)

    # print(Property.objects.exclude(id__in=[ for prop in request.user.staff.allowed_properties.all()]))

    return render(request, 'groups/edit.html', {
        'form': form,
        'group': group
Comment actions Permalink

I'm not denying the possibility of a bug, but unfortunately I could not reproduce it. Tried on Windows and Linux builds of PyCharm 2019.1.3

Can it be that your project is in the process of indexing while the issue is reproduced? Is your background task list empty? (Window > Background task > Show)


Please sign in to leave a comment.