Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cant index deep dir and debugger by attach #1420

Open
DominicGame opened this issue Feb 3, 2023 · 1 comment
Open

cant index deep dir and debugger by attach #1420

DominicGame opened this issue Feb 3, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@DominicGame
Copy link
Contributor

DominicGame commented Feb 3, 2023

env:
win10
vscode~1.74.3
docker destop~4.15.0

setup:
docker run -it --name="test" -v /mnt/d/tmp:/root/tmp erlang:25.1.2.0 /bin/bash
vscode attach to /root/tmp
new terminal and type:

rebar3 new app test
cd test
mkdir include
mkdir include/b
mkdir src/abc
mkdir src/abc/b
echo -e "-module(aa).\n-include(\"a.hrl\").\naa() -> #a{}." > src/aa.erl
echo -e "-module(bb).\n-include(\"b.hrl\").\nbb() -> #b{}." > src/bb.erl
echo -e "-module(a).\n-include(\"a.hrl\").\na() -> #a{}." > src/abc/a.erl
echo -e "-module(b).\n-include(\"b.hrl\").\nb() -> #b{}." > src/abc/b/b.erl
echo -e "-record(a, {a})." > include/a.hrl
echo -e "-record(b, {b})." > include/b/b.hrl

add erlang_ls.config

include_dirs:
  - "include"
  - "include/*"

reload vscode, only open a.hrl and b.hrl, F12 record a and b
1, aa.erl and bb.erl can be found
2. src/abc/a.erl and src/abc/b/b.erl cant be found
3. open src/abc/a.erl(or b.erl), then the file can be found

expect:
child dir in src can be found

debugger by attach

@DominicGame DominicGame added the bug Something isn't working label Feb 3, 2023
@DominicGame
Copy link
Contributor Author

DominicGame commented Mar 6, 2023

using ** to include every thing under include dir

apps_dirs:
  - "apps/*"
deps_dirs:
  - "_build/default/lib/*"
include_dirs:
  - "apps"
  - "apps/*/include"
  - "apps/*/include/**"
  - "_build/default/lib/"
  - "_build/default/lib/*/include"

els_utils:fold_files/4 don't Recursive

DominicGame added a commit to DominicGame/erlang_ls that referenced this issue Mar 6, 2023
DominicGame added a commit to DominicGame/erlang_ls that referenced this issue Mar 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant