From ddd7c3801f181b8d7c3dd6020f6053288fd0bb7e Mon Sep 17 00:00:00 2001 From: Basile Burg Date: Mon, 11 Jun 2018 12:37:03 +0200 Subject: [PATCH] fix #493 - regression, crash when trying to get completion for selective import --- dsymbol | 2 +- dub.json | 2 +- tests/tc_selective_import_list/expected.txt | 2 ++ tests/tc_selective_import_list/file.d | 1 + tests/tc_selective_import_list/run.sh | 5 +++++ 5 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 tests/tc_selective_import_list/expected.txt create mode 100644 tests/tc_selective_import_list/file.d create mode 100755 tests/tc_selective_import_list/run.sh diff --git a/dsymbol b/dsymbol index b8c76630..77c4a114 160000 --- a/dsymbol +++ b/dsymbol @@ -1 +1 @@ -Subproject commit b8c7663045268dd4660a16fc4f76d8f7196f6952 +Subproject commit 77c4a1140a38828cc10da718519815635873bfae diff --git a/dub.json b/dub.json index 9dfa96e4..17dbc475 100644 --- a/dub.json +++ b/dub.json @@ -7,7 +7,7 @@ ], "license": "GPL-3.0", "dependencies": { - "dsymbol": "~>0.3.8", + "dsymbol": "~>0.3.9", "libdparse": "~>0.8.6", "msgpack-d": "~>1.0.0-beta.3", "stdx-allocator": "~>2.77.2" diff --git a/tests/tc_selective_import_list/expected.txt b/tests/tc_selective_import_list/expected.txt new file mode 100644 index 00000000..7d654847 --- /dev/null +++ b/tests/tc_selective_import_list/expected.txt @@ -0,0 +1,2 @@ +identifiers +Point s diff --git a/tests/tc_selective_import_list/file.d b/tests/tc_selective_import_list/file.d new file mode 100644 index 00000000..2646ddbe --- /dev/null +++ b/tests/tc_selective_import_list/file.d @@ -0,0 +1 @@ +import point:; diff --git a/tests/tc_selective_import_list/run.sh b/tests/tc_selective_import_list/run.sh new file mode 100755 index 00000000..4c55c94c --- /dev/null +++ b/tests/tc_selective_import_list/run.sh @@ -0,0 +1,5 @@ +set -e +set -u + +../../bin/dcd-client $1 file.d -c13 > actual.txt +diff actual.txt expected.txt