                             `((filepath . ,conf-file))))))
     (ycmd-notify-file-ready-to-parse)))
 
-(defun ycmd--handle-runtime-exception (results)
-  "Handle runtime exceptions in RESULTS."
-  (let* ((exception (assoc-default 'exception results))
-         (exception-type (assoc-default 'TYPE exception))
-         (message (assoc-default 'message results)))
-    (cond ((and (string-equal exception-type "RuntimeError")
-                (string-equal message "File already being parsed."))
-           (setq ycmd--file-already-parsing-exception t)))))
-
 (defun ycmd--handle-notify-response (results)
   "If RESULTS is a vector or nil, the response is an acual parse result.
 Otherwise the response is probably an exception."
   (if (or (not results)
           (vectorp results))
-      (run-hook-with-args 'ycmd-file-parse-result-hook results)
+      (progn
+        (run-hook-with-args 'ycmd-file-parse-result-hook results)
+        (ycmd--report-status 'parsed))
     (when (assoc 'exception results)
-      (ycmd--handle-exception
-       results #'ycmd--handle-runtime-exception))))
-
-(defvar-local ycmd--file-already-parsing-exception nil)
-(defun ycmd--parsing-buffer-finished-p ()
-  "Return t if parsing has finished."
-  (if ycmd--file-already-parsing-exception
-      (setq ycmd--file-already-parsing-exception nil)
-    t))
+      (ycmd--handle-exception results))))
 
 (defun ycmd-notify-file-ready-to-parse ()
   "Send a notification to ycmd that the buffer is ready to be parsed.

  (let ((force-semantic
         (when ycmd-force-semantic-completion "/s"))
        (text (pcase ycmd--last-status-change
                ((or `unparsed `parsed) "")
                (`parsing "*"))))
    (concat " ycmd" force-semantic text)))

;;;###autoload

        ;; catch
        (deferred:error it
          (lambda (err)
            (message "Error sending notification request: %s" err)
            (ycmd--report-status 'errored)))))))

(defun ycmd-display-raw-file-parse-results ()
  "Request file-parse results and display them in a buffer in raw form.
