Open vladp opened 5 years ago
I don't know if you found a solution here, but all this uses is the elisp (locate-dominating-file) function. My best guess is that your .flowconfig is a dead symlink. Maybe you can run something like the following to debug:
$ junk pwd
/tmp/junk
$ junk find . -ls
8627313060 0 drwxr-xr-x 6 douglasmennella wheel 192 Nov 29 09:03 .
8627333212 0 drwxr-xr-x 2 douglasmennella wheel 64 Nov 29 08:49 ./touch
8627333219 0 drwxr-xr-x 3 douglasmennella wheel 96 Nov 29 09:01 ./subdir
8627341971 0 lrwxr-xr-x 1 douglasmennella wheel 7 Nov 29 09:01 ./subdir/.flowconfig -> garbage
8627342016 0 -rw-r--r-- 1 douglasmennella wheel 0 Nov 29 09:03 ./.flowconfig
8627313064 8 -rw-r--r-- 1 douglasmennella wheel 789 Nov 28 19:39 ./x.sh
$ junk cd subdir
$ subdir ls -al
total 0
drwxr-xr-x 3 douglasmennella wheel 96 Nov 29 09:01 .
drwxr-xr-x 6 douglasmennella wheel 192 Nov 29 09:03 ..
lrwxr-xr-x 1 douglasmennella wheel 7 Nov 29 09:01 .flowconfig -> garbage
$ subdir emacs -Q -batch --eval '(message (locate-dominating-file default-directory ".flowconfig"))'
/tmp/junk/
$ subdir
I am starting emacs from /home/v/devel/mine/proj1/rnweb/app1/csr/
that directory has .flowconfig (VSCode uses that too).
However, for some reason that flowconfig is ingored, and instead I get:
I also have put .projectfile file into /home/v/devel/mine/proj1/rnweb/app1/csr/
In the hope that it will instruct LSP, and therefore JS2-mode, and therefore this minor mode, that /home/v/devel/mine/proj1/rnweb/app1/csr/
But that's not working. Are there options to instruct a component that's invoking flow to use .flowconfig from directory I need ?
Other information: emacs 27.0.50 flow: 0.105.2 lsp is using javascript-typescript-langserver
Relevant .emacs config: