Open windrg opened 2 years ago
This is failing due to with "Invalid regular expression"
Can you tell me which part is wrong in those expression, please?
@windrg this issue had been a showstopper for me, until I figured out the underscore character was causing an issue, at least in this form of regex. I don't fully grok the regular expression patterns typically used in this list, but does replacing
"[/\\\\]\\__pycache__\\'"
with
"[/\\\\]__pycache__"
work for you?
I'm also having this problem. There's a whole project that I'd like to ignore. I load lsp this way:
(use-package lsp-pyright
:ensure t
:hook ((python-mode python-ts-mode) . (lambda ()
(require 'lsp-pyright)
(add-to-list 'lsp-file-watch-ignored-directories
"[/\\\\]\\ignoredprojectname\\'")
(lsp)))) ; or lsp-deferred
There are a couple issues/questions I have:
Following up on my last comment. I tried putting the modification of lsp-file-watch-ignored-directories
following a :config
keyword and it didn't make a difference. I was still prompted if I wanted to watch the many files in this project:
(use-package lsp-pyright
:config
(add-to-list 'lsp-file-watch-ignored-directories "[/\\\\]\\ignoredprojectname\\'")
:ensure t
:hook ((python-mode python-ts-mode) . (lambda ()
(require 'lsp-pyright)
(lsp)))) ; or lsp-deferred
Thank you for the bug report
lsp-mode
related packages.M-x lsp-start-plain
Bug description
I've added few folder to the list lsp-file-watch-ignored-directories
and I've got
Steps to reproduce
add this codes and open a project
Expected behavior
No error
Which Language Server did you use?
ccls
OS
Linux
Error callstack
No response
Anything else?
No response