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

Fix the termination issue of Document.Store caused by incomplete syntax errors. #528

Merged
merged 1 commit into from
Dec 28, 2023

Conversation

scottming
Copy link
Collaborator

Today, while writing an alias "as", I unexpectedly discovered that Document.Store terminated due to an unmatched error.

21:48:27.208 [error] Child :undefined of Supervisor LXical.Server.Provider.Queue.Supervisor terminated
** (exit) exited in: GenServer.call({:via, :global, {LXical.Document.Store, 322}}, {:fetch, "file:///Users/scottming/Code/dummy/lib/dummy.ex", :analysis}, 5000)
    ** (EXIT) an exception was raised:
        ** (Protocol.UndefinedError) protocol Enumerable not implemented for {:a, [_scope_id: #Reference<0.3819903562.3914334214.38740>, line: 16, column: 18], nil} of type Tuple
            (elixir 1.15.7) lib/enum.ex:1: Enumerable.impl_for!/1
            (elixir 1.15.7) lib/enum.ex:166: Enumerable.reduce/3
            (elixir 1.15.7) lib/enum.ex:1227: Enum.find_value/3
            (lx_common 0.3.0) lib/lexical/ast/analysis.ex:338: LXical.Ast.Analysis.fetch_alias_as/1
            (lx_common 0.3.0) lib/lexical/ast/analysis.ex:200: LXical.Ast.Analysis.analyze_node/2
            (lx_common 0.3.0) lib/lexical/ast/analysis.ex:71: anonymous fn/2 in LXical.Ast.Analysis.traverse/2
            (elixir 1.15.7) lib/macro.ex:688: anonymous fn/4 in Macro.do_traverse_args/4
            (stdlib 4.3.1.3) lists.erl:1462: :lists.mapfoldl_1/3
Pid: #PID<0.167.0>

…ntax errors.

Today, while writing an alias "as", I unexpectedly discovered that `Document.Store` terminated due to an unmatched error.
@scottming scottming merged commit 6af4711 into lexical-lsp:main Dec 28, 2023
7 checks passed
@scottming scottming deleted the fix-incomplete branch April 6, 2024 01:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants