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

How to start the server? #23

Open
maximvl opened this issue Apr 2, 2019 · 2 comments
Open

How to start the server? #23

maximvl opened this issue Apr 2, 2019 · 2 comments

Comments

@maximvl
Copy link

maximvl commented Apr 2, 2019

Hello, I'm looking into sourcer as a replacement for now-unmantained EDTS, but can not even start it :)

Could you tell me how it's supposed to be started/used?

2> application:ensure_all_started(lsp_server). 

=INFO REPORT==== 2-Apr-2019::16:33:38 ===
    application: lsp_server
    exited: {{error,
                 {{badmatch,undefined},
                  [{lsp_server_sup,children,0,
                       [{file,
                            "/home/maxim/projects/sourcer/apps/lsp_server/src/lsp_server_sup.erl"},
                        {line,19}]},
                   {lsp_server_sup,init,1,
                       [{file,
                            "/home/maxim/projects/sourcer/apps/lsp_server/src/lsp_server_sup.erl"},
                        {line,14}]},
                   {supervisor,init,1,[{file,"supervisor.erl"},{line,294}]},
                   {gen_server,init_it,2,[{file,"gen_server.erl"},{line,365}]},
                   {gen_server,init_it,6,[{file,"gen_server.erl"},{line,333}]},
                   {proc_lib,init_p_do_apply,3,
                       [{file,"proc_lib.erl"},{line,247}]}]}},
             {lsp_server_app,start,[normal,[]]}}
    type: temporary

=INFO REPORT==== 2-Apr-2019::16:33:38 ===
    application: getopt
    exited: stopped
    type: temporary

=INFO REPORT==== 2-Apr-2019::16:33:38 ===
    application: jsx
    exited: stopped
    type: temporary
{error,{lsp_server,{{error,{{badmatch,undefined},
                            [{lsp_server_sup,children,0,
                                             [{file,"/home/maxim/projects/sourcer/apps/lsp_server/src/lsp_server_sup.erl"},
                                              {line,19}]},
                             {lsp_server_sup,init,1,
                                             [{file,"/home/maxim/projects/sourcer/apps/lsp_server/src/lsp_server_sup.erl"},
                                              {line,14}]},
                             {supervisor,init,1,[{file,"supervisor.erl"},{line,294}]},
                             {gen_server,init_it,2,[{file,"gen_server.erl"},{line,365}]},
                             {gen_server,init_it,6,[{file,"gen_server.erl"},{line,333}]},
                             {proc_lib,init_p_do_apply,3,
                                       [{file,"proc_lib.erl"},{line,247}]}]}},
                    {lsp_server_app,start,[normal,[]]}}}}
@vladdu
Copy link
Collaborator

vladdu commented May 4, 2019

Hi, I'm sorry, I missed this question. Will try to answer this weekend.

@vladdu
Copy link
Collaborator

vladdu commented May 17, 2019

Sorry again, a lot of stuff happening.

The server is meant to get started through the erlang_ls script. With a -h argument it will print the options to configure it. The default is to use communicate via a TCP connection; using stdio is currently not well tested.

The way you started it, it probably did not have the code path setup properly.

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

No branches or pull requests

2 participants