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

LSP support #872

Open
wants to merge 2 commits into
base: development
Choose a base branch
from

Conversation

dumheter
Copy link

@dumheter dumheter commented Aug 8, 2018

This pull request adds LSP, Language server protocol, (See: https://microsoft.github.io/language-server-protocol/) support for Encore. It was implemented as a part of the course "Independent Project in Information Engineering" (1DT350) by Christoffer Gustafsson (me), Filip Björklund, Andreas Olofsson and Valter Gådin.

The implementation adds support for some of the features that are supported by LSP

  • Error messages (Diagnostics)
  • Information on hover

The base for the implementation was written such that adding support for more features would be made easier than the initial implementation.

Sorry for the single squashed commit. We had problems, now its just one.

commit 8267856
Merge: 7d3a180 13e6f16
Author: Christoffer Gustafsson <[email protected]>
Date:   Tue Jul 3 11:52:14 2018 -0700

    Merge after rebasing the service branch against development branch.

commit 7d3a180
Author: Christoffer Gustafsson <[email protected]>
Date:   Tue Jul 3 11:48:45 2018 -0700

    Updated lsp to handle new changes in the encore project.

commit 3eb01c0
Author: Christoffer Gustafsson <[email protected]>
Date:   Tue Jul 3 08:56:50 2018 -0700

    Wrote a readme file for the vscode client.

commit e137540
Author: Christoffer Gustafsson <[email protected]>
Date:   Tue Jul 3 08:43:11 2018 -0700

    Reverted commit that fixed a compile problem with gcc6 and later.

commit ebfd5f1
Author: Christoffer Gustafsson <[email protected]>
Date:   Tue Jul 3 08:17:28 2018 -0700

    Added files required to make the vscode client work properly.

commit ca9466f
Author: Christoffer Gustafsson <[email protected]>
Date:   Tue Jul 3 07:36:52 2018 -0700

    Added vscode client to the project.

    Also removed test folder.

commit 1165c6c
Author: Christoffer Gustafsson <[email protected]>
Date:   Tue Jul 3 07:27:26 2018 -0700

    Removed experimental code.

commit dfbecf8
Author: Christoffer Gustafsson <[email protected]>
Date:   Wed May 16 08:37:22 2018 -0700

    Commented out experimental code in program.hs.

commit 24e3f7c
Author: Christoffer Gustafsson <[email protected]>
Date:   Wed May 16 02:35:50 2018 -0700

    Fixed bug with binop's hover behaviour.

commit e474885
Author: Andreas Olofsson <[email protected]>
Date:   Thu May 10 20:02:17 2018 +0200

    Removed debug messages

commit 17551d6
Author: Andreas Olofsson <[email protected]>
Date:   Thu May 10 19:52:27 2018 +0200

    Removed debug traces + added lsp safety check

commit 2eb828b
Author: Christoffer Gustafsson <[email protected]>
Date:   Wed May 9 07:52:28 2018 -0700

    Improved hover functionallity for methodCall, functionCall and messageSend.

commit a745e0a
Author: Christoffer Gustafsson <[email protected]>
Date:   Wed May 9 05:11:30 2018 -0700

    Implemented more of hover feature. Also added fix for compiling with gcc 7.x

commit 1b0f61f
Author: Christoffer Gustafsson <[email protected]>
Date:   Tue May 8 09:50:39 2018 -0700

    Better support for the LSP feature hover.

commit 8424d52
Author: Andreas Olofsson <[email protected]>
Date:   Thu May 3 14:50:41 2018 +0200

    Added diagnostics on 'didOpen' + ignored notifications.

commit a17a64d
Author: Andreas Olofsson <[email protected]>
Date:   Thu May 3 13:17:52 2018 +0200

    Fixed error position bug.

commit 53a8d25
Author: Christoffer Gustafsson <[email protected]>
Date:   Thu May 3 00:38:33 2018 -0700

    Hover now works on var assignments, ex. var x = 1 will say x :: Int.

commit 97d59d2
Author: Alfret <[email protected]>
Date:   Wed May 2 15:35:33 2018 +0200

    Fixed a really small issue in Program.hs

commit 6890d11
Author: Christoffer Gustafsson <[email protected]>
Date:   Thu Apr 26 20:48:36 2018 +0200

    Fixed bug with ranges not being calulcated in the right way. Improved the producer to handle errors in a better way.

commit a16af17
Author: Christoffer Gustafsson <[email protected]>
Date:   Wed Apr 25 22:48:51 2018 +0200

    Added feature to State.hs.

commit 6b82815
Author: Andreas Olofsson <[email protected]>
Date:   Wed Apr 25 19:02:58 2018 +0200

    Added diagnostics.

commit 0478f2c
Author: Andreas Olofsson <[email protected]>
Date:   Wed Apr 25 18:22:37 2018 +0200

    Fixed textDocument/didClose + namespace cleanup.

commit a04ce2e
Author: Andreas Olofsson <[email protected]>
Date:   Wed Apr 25 17:45:05 2018 +0200

    Fixed side-effects in LSP.

commit 5c05118
Author: Andreas Olofsson <[email protected]>
Date:   Wed Apr 25 16:37:52 2018 +0200

    Added program compilation from LSP + hover.

commit 0706f71
Author: Andreas Olofsson <[email protected]>
Date:   Wed Apr 25 14:29:15 2018 +0200

    Added StateM type, allows lazy state with IO.

commit aa7866f
Author: Valter Gådin <[email protected]>
Date:   Wed Apr 25 14:25:51 2018 +0200

    Funkar med ändringar för Hover

commit 333a318
Author: Andreas Olofsson <[email protected]>
Date:   Tue Apr 24 22:20:56 2018 +0200

    Made LSP request handler use IO

commit 2987279
Author: Alfret <[email protected]>
Date:   Tue Apr 24 18:44:05 2018 +0200

    Updated ProgramInfo to contain range position

commit 5a2d2a3
Author: Alfret <[email protected]>
Date:   Mon Apr 23 17:30:19 2018 +0200

    Fixed getProgramInfo

    getProgramInfo is no longer in the IO monad and the results are so far correct for function calls and message sends.

commit 9236ba9
Author: Alfret <[email protected]>
Date:   Fri Apr 20 14:37:41 2018 +0200

    Updated the program information retriever

commit 58920a1
Author: Alfret <[email protected]>
Date:   Thu Apr 19 18:41:54 2018 +0200

    Program information lookup

    Added: functions for finding information about a location in the source document

    Fixed: Some problems with the producer

commit 438be94
Author: Christoffer Gustafsson <[email protected]>
Date:   Thu Apr 19 17:37:18 2018 +0200

    Added new encore file to aid testing.

commit 05ad216
Author: Christoffer Gustafsson <[email protected]>
Date:   Thu Apr 19 15:14:13 2018 +0200

    Implementing functions to extract data from the LSP data structure, will be used in the LSP program.

commit 1574116
Author: Christoffer Gustafsson <[email protected]>
Date:   Thu Apr 19 12:04:10 2018 +0200

    Fixed bug with convertFromProgram where it only converted to empty programs.

commit 57f56df
Author: Christoffer Gustafsson <[email protected]>
Date:   Thu Apr 19 11:38:35 2018 +0200

    LSP representation of the data improved. Fixed problem with encore adding ./ to the file names.

commit cdbe96c
Author: Christoffer Gustafsson <[email protected]>
Date:   Wed Apr 18 16:04:12 2018 +0200

    Made changes to enable compilation while completing the merge of ls-back and service.

commit 2bacd80
Author: Christoffer Gustafsson <[email protected]>
Date:   Wed Apr 18 13:40:46 2018 +0200

    Continouation of merge between ls-back and service.

commit 10897ab
Author: Christoffer Gustafsson <[email protected]>
Date:   Tue Apr 17 20:23:06 2018 +0200

    Merging two different database structures into one. Mainly adding the error data type.

commit 0f568c2
Author: Alfret <[email protected]>
Date:   Mon Apr 16 18:24:07 2018 +0200

    Minor additions and fixes to the server database

commit 35aa10a
Author: Christoffer Gustafsson <[email protected]>
Date:   Mon Apr 16 17:54:33 2018 +0200

    Parsing file from stdin instead of hard coded file.

commit faba2e9
Author: Andreas Olofsson <[email protected]>
Date:   Mon Apr 16 17:38:24 2018 +0200

    Added store + support for textDocument updates

commit 4bae0f6
Author: Alfret <[email protected]>
Date:   Mon Apr 16 16:34:51 2018 +0200

    Added support for errors in the LSP that supports conversion from some of the standard error types in Encore (TCError and megaparsec error). Also added position determination

commit d91b084
Author: Alfret <[email protected]>
Date:   Mon Apr 16 14:17:46 2018 +0200

    Updated LSP code parsing. Errors and warnings are now collected from all compilation units and stored in the program database with the actual programs.

commit 8b6eb55
Author: Andreas Olofsson <[email protected]>
Date:   Wed Apr 11 00:20:54 2018 +0200

    Changed cmd-line options to start LSP-server + added port&host options.

commit 21d0201
Author: Andreas Olofsson <[email protected]>
Date:   Tue Apr 10 19:44:00 2018 +0200

    Created a basic LSP server

    src/lsp/Base.hs    Handles the HTTP-like base layer of LSP
    src/lsp/JSONRPC.hs Handles the JSONRPC layer
    src/lsp/LSP.hs     Starts the LSP server and currently just sends dummy responses

    aeson, network & bytestring have been added to 'encore.cabal' as dependencies

commit 3860355
Author: Alfret <[email protected]>
Date:   Tue Apr 10 19:22:36 2018 +0200

    Added service base

    Added: Initial code for the compiler service

    Added: Copied the program-table producing code into our own file

    Update: Added the src/lsp directory to the cabal file

commit 9341c48
Author: Christoffer Gustafsson <[email protected]>
Date:   Tue Jul 3 07:36:52 2018 -0700

    Added vscode client to the project.

    Also removed test folder.

commit 3028426
Author: Christoffer Gustafsson <[email protected]>
Date:   Tue Jul 3 07:27:26 2018 -0700

    Removed experimental code.

commit 28ad92f
Author: Christoffer Gustafsson <[email protected]>
Date:   Wed May 16 08:37:22 2018 -0700

    Commented out experimental code in program.hs.

commit 6d921b0
Author: Christoffer Gustafsson <[email protected]>
Date:   Wed May 16 02:35:50 2018 -0700

    Fixed bug with binop's hover behaviour.

commit f566773
Author: Andreas Olofsson <[email protected]>
Date:   Thu May 10 20:02:17 2018 +0200

    Removed debug messages

commit b9c8be4
Author: Andreas Olofsson <[email protected]>
Date:   Thu May 10 19:52:27 2018 +0200

    Removed debug traces + added lsp safety check

commit 6b93f41
Author: Christoffer Gustafsson <[email protected]>
Date:   Wed May 9 07:52:28 2018 -0700

    Improved hover functionallity for methodCall, functionCall and messageSend.

commit 66cdec0
Author: Christoffer Gustafsson <[email protected]>
Date:   Wed May 9 05:11:30 2018 -0700

    Implemented more of hover feature. Also added fix for compiling with gcc 7.x

commit 398bfaf
Author: Christoffer Gustafsson <[email protected]>
Date:   Tue May 8 09:50:39 2018 -0700

    Better support for the LSP feature hover.

commit c9ae5ee
Author: Andreas Olofsson <[email protected]>
Date:   Thu May 3 14:50:41 2018 +0200

    Added diagnostics on 'didOpen' + ignored notifications.

commit ca289e3
Author: Andreas Olofsson <[email protected]>
Date:   Thu May 3 13:17:52 2018 +0200

    Fixed error position bug.

commit 7691ecb
Author: Christoffer Gustafsson <[email protected]>
Date:   Thu May 3 00:38:33 2018 -0700

    Hover now works on var assignments, ex. var x = 1 will say x :: Int.

commit e72973f
Author: Alfret <[email protected]>
Date:   Wed May 2 15:35:33 2018 +0200

    Fixed a really small issue in Program.hs

commit 4048936
Author: Christoffer Gustafsson <[email protected]>
Date:   Thu Apr 26 20:48:36 2018 +0200

    Fixed bug with ranges not being calulcated in the right way. Improved the producer to handle errors in a better way.

commit a942349
Author: Christoffer Gustafsson <[email protected]>
Date:   Wed Apr 25 22:48:51 2018 +0200

    Added feature to State.hs.

commit bfcd75d
Author: Andreas Olofsson <[email protected]>
Date:   Wed Apr 25 19:02:58 2018 +0200

    Added diagnostics.

commit 9db404b
Author: Andreas Olofsson <[email protected]>
Date:   Wed Apr 25 18:22:37 2018 +0200

    Fixed textDocument/didClose + namespace cleanup.

commit 169d3b1
Author: Andreas Olofsson <[email protected]>
Date:   Wed Apr 25 17:45:05 2018 +0200

    Fixed side-effects in LSP.

commit 5f962ee
Author: Andreas Olofsson <[email protected]>
Date:   Wed Apr 25 16:37:52 2018 +0200

    Added program compilation from LSP + hover.

commit 24a23d0
Author: Andreas Olofsson <[email protected]>
Date:   Wed Apr 25 14:29:15 2018 +0200

    Added StateM type, allows lazy state with IO.

commit fcfab46
Author: Valter Gådin <[email protected]>
Date:   Wed Apr 25 14:25:51 2018 +0200

    Funkar med ändringar för Hover

commit b3b2b3e
Author: Andreas Olofsson <[email protected]>
Date:   Tue Apr 24 22:20:56 2018 +0200

    Made LSP request handler use IO

commit ff2b78c
Author: Alfret <[email protected]>
Date:   Tue Apr 24 18:44:05 2018 +0200

    Updated ProgramInfo to contain range position

commit 480d397
Author: Alfret <[email protected]>
Date:   Mon Apr 23 17:30:19 2018 +0200

    Fixed getProgramInfo

    getProgramInfo is no longer in the IO monad and the results are so far correct for function calls and message sends.

commit a489d69
Author: Alfret <[email protected]>
Date:   Fri Apr 20 14:37:41 2018 +0200

    Updated the program information retriever

commit 813a956
Author: Alfret <[email protected]>
Date:   Thu Apr 19 18:41:54 2018 +0200

    Program information lookup

    Added: functions for finding information about a location in the source document

    Fixed: Some problems with the producer

commit 5dc025d
Author: Christoffer Gustafsson <[email protected]>
Date:   Thu Apr 19 17:37:18 2018 +0200

    Added new encore file to aid testing.

commit 1a10f05
Author: Christoffer Gustafsson <[email protected]>
Date:   Thu Apr 19 15:14:13 2018 +0200

    Implementing functions to extract data from the LSP data structure, will be used in the LSP program.

commit ea455cf
Author: Christoffer Gustafsson <[email protected]>
Date:   Thu Apr 19 12:04:10 2018 +0200

    Fixed bug with convertFromProgram where it only converted to empty programs.

commit ba35b2c
Author: Christoffer Gustafsson <[email protected]>
Date:   Thu Apr 19 11:38:35 2018 +0200

    LSP representation of the data improved. Fixed problem with encore adding ./ to the file names.

commit 9073d95
Author: Christoffer Gustafsson <[email protected]>
Date:   Wed Apr 18 16:04:12 2018 +0200

    Made changes to enable compilation while completing the merge of ls-back and service.

commit 1e1c0df
Author: Christoffer Gustafsson <[email protected]>
Date:   Wed Apr 18 13:40:46 2018 +0200

    Continouation of merge between ls-back and service.

commit 15feac7
Author: Christoffer Gustafsson <[email protected]>
Date:   Tue Apr 17 20:23:06 2018 +0200

    Merging two different database structures into one. Mainly adding the error data type.

commit ccfd16b
Author: Alfret <[email protected]>
Date:   Mon Apr 16 18:24:07 2018 +0200

    Minor additions and fixes to the server database

commit 0372421
Author: Christoffer Gustafsson <[email protected]>
Date:   Mon Apr 16 17:54:33 2018 +0200

    Parsing file from stdin instead of hard coded file.

commit 35c40b2
Author: Andreas Olofsson <[email protected]>
Date:   Mon Apr 16 17:38:24 2018 +0200

    Added store + support for textDocument updates

commit daeef73
Author: Alfret <[email protected]>
Date:   Mon Apr 16 16:34:51 2018 +0200

    Added support for errors in the LSP that supports conversion from some of the standard error types in Encore (TCError and megaparsec error). Also added position determination

commit 5c9936f
Author: Alfret <[email protected]>
Date:   Mon Apr 16 14:17:46 2018 +0200

    Updated LSP code parsing. Errors and warnings are now collected from all compilation units and stored in the program database with the actual programs.

commit 5d5c752
Author: Andreas Olofsson <[email protected]>
Date:   Wed Apr 11 00:20:54 2018 +0200

    Changed cmd-line options to start LSP-server + added port&host options.

commit af51aef
Author: Andreas Olofsson <[email protected]>
Date:   Tue Apr 10 19:44:00 2018 +0200

    Created a basic LSP server

    src/lsp/Base.hs    Handles the HTTP-like base layer of LSP
    src/lsp/JSONRPC.hs Handles the JSONRPC layer
    src/lsp/LSP.hs     Starts the LSP server and currently just sends dummy responses

    aeson, network & bytestring have been added to 'encore.cabal' as dependencies

commit 8dd9d98
Author: Alfret <[email protected]>
Date:   Tue Apr 10 19:22:36 2018 +0200

    Added service base

    Added: Initial code for the compiler service

    Added: Copied the program-table producing code into our own file

    Update: Added the src/lsp directory to the cabal file

commit 13e6f16
Author: Christoffer Gustafsson <[email protected]>
Date:   Tue Jul 3 08:56:50 2018 -0700

    Wrote a readme file for the vscode client.

commit 17f0205
Author: Christoffer Gustafsson <[email protected]>
Date:   Tue Jul 3 08:43:11 2018 -0700

    Reverted commit that fixed a compile problem with gcc6 and later.

commit a8c88e2
Merge: ca5884a 3d1f9bc
Author: Christoffer Gustafsson <[email protected]>
Date:   Tue Jul 3 08:25:06 2018 -0700

    Rebased project against development branch.

commit ca5884a
Author: Christoffer Gustafsson <[email protected]>
Date:   Tue Jul 3 08:17:28 2018 -0700

    Added files required to make the vscode client work properly.

commit ca9ba0c
Author: Christoffer Gustafsson <[email protected]>
Date:   Tue Jul 3 07:36:52 2018 -0700

    Added vscode client to the project.

    Also removed test folder.

commit a919ffe
Author: Christoffer Gustafsson <[email protected]>
Date:   Tue Jul 3 07:27:26 2018 -0700

    Removed experimental code.

commit 3cf433a
Author: Christoffer Gustafsson <[email protected]>
Date:   Wed May 16 08:37:22 2018 -0700

    Commented out experimental code in program.hs.

commit 78c6325
Author: Christoffer Gustafsson <[email protected]>
Date:   Wed May 16 02:35:50 2018 -0700

    Fixed bug with binop's hover behaviour.

commit 303e3ca
Author: Andreas Olofsson <[email protected]>
Date:   Thu May 10 20:02:17 2018 +0200

    Removed debug messages

commit ab5d617
Author: Andreas Olofsson <[email protected]>
Date:   Thu May 10 19:52:27 2018 +0200

    Removed debug traces + added lsp safety check

commit b7a9177
Author: Christoffer Gustafsson <[email protected]>
Date:   Wed May 9 07:52:28 2018 -0700

    Improved hover functionallity for methodCall, functionCall and messageSend.

commit cf68db2
Author: Christoffer Gustafsson <[email protected]>
Date:   Wed May 9 05:11:30 2018 -0700

    Implemented more of hover feature. Also added fix for compiling with gcc 7.x

commit 2d52008
Author: Christoffer Gustafsson <[email protected]>
Date:   Tue May 8 09:50:39 2018 -0700

    Better support for the LSP feature hover.

commit b6a5141
Author: Andreas Olofsson <[email protected]>
Date:   Thu May 3 14:50:41 2018 +0200

    Added diagnostics on 'didOpen' + ignored notifications.

commit f79520a
Author: Andreas Olofsson <[email protected]>
Date:   Thu May 3 13:17:52 2018 +0200

    Fixed error position bug.

commit 1c2e988
Author: Christoffer Gustafsson <[email protected]>
Date:   Thu May 3 00:38:33 2018 -0700

    Hover now works on var assignments, ex. var x = 1 will say x :: Int.

commit b89183b
Author: Alfret <[email protected]>
Date:   Wed May 2 15:35:33 2018 +0200

    Fixed a really small issue in Program.hs

commit 06e0d1a
Author: Christoffer Gustafsson <[email protected]>
Date:   Thu Apr 26 20:48:36 2018 +0200

    Fixed bug with ranges not being calulcated in the right way. Improved the producer to handle errors in a better way.

commit 2fc16c2
Author: Christoffer Gustafsson <[email protected]>
Date:   Wed Apr 25 22:48:51 2018 +0200

    Added feature to State.hs.

commit 1416c12
Author: Andreas Olofsson <[email protected]>
Date:   Wed Apr 25 19:02:58 2018 +0200

    Added diagnostics.

commit 7d00ee6
Author: Andreas Olofsson <[email protected]>
Date:   Wed Apr 25 18:22:37 2018 +0200

    Fixed textDocument/didClose + namespace cleanup.

commit a794de1
Author: Andreas Olofsson <[email protected]>
Date:   Wed Apr 25 17:45:05 2018 +0200

    Fixed side-effects in LSP.

commit 6dd3697
Author: Andreas Olofsson <[email protected]>
Date:   Wed Apr 25 16:37:52 2018 +0200

    Added program compilation from LSP + hover.

commit 7bffe84
Author: Andreas Olofsson <[email protected]>
Date:   Wed Apr 25 14:29:15 2018 +0200

    Added StateM type, allows lazy state with IO.

commit 84de043
Author: Valter Gådin <[email protected]>
Date:   Wed Apr 25 14:25:51 2018 +0200

    Funkar med ändringar för Hover

commit 7dc5503
Author: Andreas Olofsson <[email protected]>
Date:   Tue Apr 24 22:20:56 2018 +0200

    Made LSP request handler use IO

commit 95c2122
Author: Alfret <[email protected]>
Date:   Tue Apr 24 18:44:05 2018 +0200

    Updated ProgramInfo to contain range position

commit 0918720
Author: Alfret <[email protected]>
Date:   Mon Apr 23 17:30:19 2018 +0200

    Fixed getProgramInfo

    getProgramInfo is no longer in the IO monad and the results are so far correct for function calls and message sends.

commit 5270ed6
Author: Alfret <[email protected]>
Date:   Fri Apr 20 14:37:41 2018 +0200

    Updated the program information retriever

commit 24906c7
Author: Alfret <[email protected]>
Date:   Thu Apr 19 18:41:54 2018 +0200

    Program information lookup

    Added: functions for finding information about a location in the source document

    Fixed: Some problems with the producer

commit f499f46
Author: Christoffer Gustafsson <[email protected]>
Date:   Thu Apr 19 17:37:18 2018 +0200

    Added new encore file to aid testing.

commit 2e6a2a8
Author: Christoffer Gustafsson <[email protected]>
Date:   Thu Apr 19 15:14:13 2018 +0200

    Implementing functions to extract data from the LSP data structure, will be used in the LSP program.

commit 827b632
Author: Christoffer Gustafsson <[email protected]>
Date:   Thu Apr 19 12:04:10 2018 +0200

    Fixed bug with convertFromProgram where it only converted to empty programs.

commit 0c120c6
Author: Christoffer Gustafsson <[email protected]>
Date:   Thu Apr 19 11:38:35 2018 +0200

    LSP representation of the data improved. Fixed problem with encore adding ./ to the file names.

commit 112b1c6
Author: Christoffer Gustafsson <[email protected]>
Date:   Wed Apr 18 16:04:12 2018 +0200

    Made changes to enable compilation while completing the merge of ls-back and service.

commit 2b140e2
Author: Christoffer Gustafsson <[email protected]>
Date:   Wed Apr 18 13:40:46 2018 +0200

    Continouation of merge between ls-back and service.

commit 8898433
Author: Christoffer Gustafsson <[email protected]>
Date:   Tue Apr 17 20:23:06 2018 +0200

    Merging two different database structures into one. Mainly adding the error data type.

commit 9506141
Author: Alfret <[email protected]>
Date:   Mon Apr 16 18:24:07 2018 +0200

    Minor additions and fixes to the server database

commit 70e1b01
Author: Christoffer Gustafsson <[email protected]>
Date:   Mon Apr 16 17:54:33 2018 +0200

    Parsing file from stdin instead of hard coded file.

commit f17de23
Author: Andreas Olofsson <[email protected]>
Date:   Mon Apr 16 17:38:24 2018 +0200

    Added store + support for textDocument updates

commit 4843ad7
Author: Alfret <[email protected]>
Date:   Mon Apr 16 16:34:51 2018 +0200

    Added support for errors in the LSP that supports conversion from some of the standard error types in Encore (TCError and megaparsec error). Also added position determination

commit 0ac89fc
Author: Alfret <[email protected]>
Date:   Mon Apr 16 14:17:46 2018 +0200

    Updated LSP code parsing. Errors and warnings are now collected from all compilation units and stored in the program database with the actual programs.

commit 56339d2
Author: Andreas Olofsson <[email protected]>
Date:   Wed Apr 11 00:20:54 2018 +0200

    Changed cmd-line options to start LSP-server + added port&host options.

commit 485b2b9
Author: Andreas Olofsson <[email protected]>
Date:   Tue Apr 10 19:44:00 2018 +0200

    Created a basic LSP server

    src/lsp/Base.hs    Handles the HTTP-like base layer of LSP
    src/lsp/JSONRPC.hs Handles the JSONRPC layer
    src/lsp/LSP.hs     Starts the LSP server and currently just sends dummy responses

    aeson, network & bytestring have been added to 'encore.cabal' as dependencies

commit 7b00d5f
Author: Alfret <[email protected]>
Date:   Tue Apr 10 19:22:36 2018 +0200

    Added service base

    Added: Initial code for the compiler service

    Added: Copied the program-table producing code into our own file

    Update: Added the src/lsp directory to the cabal file

commit 3d1f9bc
Author: Christoffer Gustafsson <[email protected]>
Date:   Tue Jul 3 07:36:52 2018 -0700

    Added vscode client to the project.

    Also removed test folder.

commit 1bbe9a7
Author: Christoffer Gustafsson <[email protected]>
Date:   Tue Jul 3 07:27:26 2018 -0700

    Removed experimental code.

commit beb6d9f
Author: Christoffer Gustafsson <[email protected]>
Date:   Wed May 16 08:37:22 2018 -0700

    Commented out experimental code in program.hs.

commit 459307d
Merge: 7ae70dd fca0fa7
Author: Christoffer Gustafsson <[email protected]>
Date:   Wed May 16 03:02:00 2018 -0700

    Merge branch 'service' of https://github.com/IT-independent-project-UU/G14-Encore_LSP into service

commit 7ae70dd
Author: Christoffer Gustafsson <[email protected]>
Date:   Wed May 16 02:35:50 2018 -0700

    Fixed bug with binop's hover behaviour.

commit fca0fa7
Merge: 71f727b c36f1af
Author: Andreas Olofsson <[email protected]>
Date:   Thu May 10 20:04:14 2018 +0200

    Merge branch 'service' of https://github.com/IT-independent-project-UU/G14-Encore_LSP into service

commit 71f727b
Author: Andreas Olofsson <[email protected]>
Date:   Thu May 10 20:02:17 2018 +0200

    Removed debug messages

commit c36f1af
Merge: 6f9b7d1 7b0ee5c
Author: Andreas Olofsson <[email protected]>
Date:   Thu May 10 19:53:48 2018 +0200

    Merge branch 'service' of https://github.com/IT-independent-project-UU/G14-Encore_LSP into service

commit 6f9b7d1
Author: Andreas Olofsson <[email protected]>
Date:   Thu May 10 19:52:27 2018 +0200

    Removed debug traces + added lsp safety check

commit 7b0ee5c
Author: Christoffer Gustafsson <[email protected]>
Date:   Wed May 9 07:52:28 2018 -0700

    Improved hover functionallity for methodCall, functionCall and messageSend.

commit 1dcc1ae
Author: Christoffer Gustafsson <[email protected]>
Date:   Wed May 9 05:11:30 2018 -0700

    Implemented more of hover feature. Also added fix for compiling with gcc 7.x

commit d6a876f
Merge: 1977b2e 4095ac5
Author: Christoffer Gustafsson <[email protected]>
Date:   Tue May 8 09:54:19 2018 -0700

    Merge branch 'service' of https://github.com/IT-independent-project-UU/G14-Encore_LSP into service

commit 1977b2e
Author: Christoffer Gustafsson <[email protected]>
Date:   Tue May 8 09:50:39 2018 -0700

    Better support for the LSP feature hover.

commit 4095ac5
Author: Andreas Olofsson <[email protected]>
Date:   Thu May 3 14:50:41 2018 +0200

    Added diagnostics on 'didOpen' + ignored notifications.

commit 897287a
Merge: c01115c cc8993e
Author: Andreas Olofsson <[email protected]>
Date:   Thu May 3 13:18:44 2018 +0200

    Merge branch 'service' of https://github.com/IT-independent-project-UU/G14-Encore_LSP into service

commit c01115c
Author: Andreas Olofsson <[email protected]>
Date:   Thu May 3 13:17:52 2018 +0200

    Fixed error position bug.

commit cc8993e
Author: Christoffer Gustafsson <[email protected]>
Date:   Thu May 3 00:38:33 2018 -0700

    Hover now works on var assignments, ex. var x = 1 will say x :: Int.

commit d0927d2
Author: Alfret <[email protected]>
Date:   Wed May 2 15:35:33 2018 +0200

    Fixed a really small issue in Program.hs

commit 2f58fd4
Author: Christoffer Gustafsson <[email protected]>
Date:   Thu Apr 26 20:48:36 2018 +0200

    Fixed bug with ranges not being calulcated in the right way. Improved the producer to handle errors in a better way.

commit a1089b3
Merge: 520b628 470ae37
Author: Christoffer Gustafsson <[email protected]>
Date:   Wed Apr 25 22:49:01 2018 +0200

    Merge branch 'service' of https://github.com/IT-independent-project-UU/G14-Encore_LSP into service

commit 520b628
Author: Christoffer Gustafsson <[email protected]>
Date:   Wed Apr 25 22:48:51 2018 +0200

    Added feature to State.hs.

commit 470ae37
Author: Andreas Olofsson <[email protected]>
Date:   Wed Apr 25 19:02:58 2018 +0200

    Added diagnostics.

commit 872a09c
Author: Andreas Olofsson <[email protected]>
Date:   Wed Apr 25 18:22:37 2018 +0200

    Fixed textDocument/didClose + namespace cleanup.

commit 048687d
Author: Andreas Olofsson <[email protected]>
Date:   Wed Apr 25 17:45:05 2018 +0200

    Fixed side-effects in LSP.

commit 26eb067
Author: Andreas Olofsson <[email protected]>
Date:   Wed Apr 25 16:37:52 2018 +0200

    Added program compilation from LSP + hover.

commit 04abdfd
Merge: ba180fe c28b93f
Author: Andreas Olofsson <[email protected]>
Date:   Wed Apr 25 14:34:19 2018 +0200

    Merge branch 'service' of https://github.com/IT-independent-project-UU/G14-Encore_LSP into service

commit ba180fe
Author: Andreas Olofsson <[email protected]>
Date:   Wed Apr 25 14:29:15 2018 +0200

    Added StateM type, allows lazy state with IO.

commit c28b93f
Author: Valter Gådin <[email protected]>
Date:   Wed Apr 25 14:25:51 2018 +0200

    Funkar med ändringar för Hover

commit 5c70aa8
Author: Andreas Olofsson <[email protected]>
Date:   Tue Apr 24 22:20:56 2018 +0200

    Made LSP request handler use IO

commit 4ff449e
Author: Alfret <[email protected]>
Date:   Tue Apr 24 18:44:05 2018 +0200

    Updated ProgramInfo to contain range position

commit 88744bc
Author: Alfret <[email protected]>
Date:   Mon Apr 23 17:30:19 2018 +0200

    Fixed getProgramInfo

    getProgramInfo is no longer in the IO monad and the results are so far correct for function calls and message sends.

commit 7e47176
Author: Alfret <[email protected]>
Date:   Fri Apr 20 14:37:41 2018 +0200

    Updated the program information retriever

commit 006646b
Author: Alfret <[email protected]>
Date:   Thu Apr 19 18:41:54 2018 +0200

    Program information lookup

    Added: functions for finding information about a location in the source document

    Fixed: Some problems with the producer

commit 87a5622
Author: Christoffer Gustafsson <[email protected]>
Date:   Thu Apr 19 17:37:18 2018 +0200

    Added new encore file to aid testing.

commit 22db642
Author: Christoffer Gustafsson <[email protected]>
Date:   Thu Apr 19 15:14:13 2018 +0200

    Implementing functions to extract data from the LSP data structure, will be used in the LSP program.

commit fae830f
Author: Christoffer Gustafsson <[email protected]>
Date:   Thu Apr 19 12:04:10 2018 +0200

    Fixed bug with convertFromProgram where it only converted to empty programs.

commit 98dd90c
Author: Christoffer Gustafsson <[email protected]>
Date:   Thu Apr 19 11:38:35 2018 +0200

    LSP representation of the data improved. Fixed problem with encore adding ./ to the file names.

commit d2f66a8
Author: Christoffer Gustafsson <[email protected]>
Date:   Wed Apr 18 16:04:12 2018 +0200

    Made changes to enable compilation while completing the merge of ls-back and service.

commit 5943814
Author: Christoffer Gustafsson <[email protected]>
Date:   Wed Apr 18 13:40:46 2018 +0200

    Continouation of merge between ls-back and service.

commit 8a554d9
Author: Christoffer Gustafsson <[email protected]>
Date:   Tue Apr 17 20:23:06 2018 +0200

    Merging two different database structures into one. Mainly adding the error data type.

commit cc27a1b
Merge: da3f7f0 0db2f8d
Author: Christoffer Gustafsson <[email protected]>
Date:   Tue Apr 17 17:20:23 2018 +0200

    Merge branch 'service' of https://github.com/IT-independent-project-UU/G14-Encore_LSP into ls-back

commit da3f7f0
Merge: 457e9c8 5ee58b4
Author: Alfret <[email protected]>
Date:   Mon Apr 16 18:24:14 2018 +0200

    Merge branch 'ls-back' of https://github.com/IT-independent-project-UU/G14-Encore_LSP into ls-back

commit 457e9c8
Author: Alfret <[email protected]>
Date:   Mon Apr 16 18:24:07 2018 +0200

    Minor additions and fixes to the server database

commit 5ee58b4
Author: Christoffer Gustafsson <[email protected]>
Date:   Mon Apr 16 17:54:33 2018 +0200

    Parsing file from stdin instead of hard coded file.

commit 0db2f8d
Author: Andreas Olofsson <[email protected]>
Date:   Mon Apr 16 17:38:24 2018 +0200

    Added store + support for textDocument updates

commit 4ca9d50
Author: Alfret <[email protected]>
Date:   Mon Apr 16 16:34:51 2018 +0200

    Added support for errors in the LSP that supports conversion from some of the standard error types in Encore (TCError and megaparsec error). Also added position determination

commit 47e4d8b
Author: Alfret <[email protected]>
Date:   Mon Apr 16 14:17:46 2018 +0200

    Updated LSP code parsing. Errors and warnings are now collected from all compilation units and stored in the program database with the actual programs.

commit 0b2d5a0
Author: Andreas Olofsson <[email protected]>
Date:   Wed Apr 11 00:20:54 2018 +0200

    Changed cmd-line options to start LSP-server + added port&host options.

commit 6884fe0
Author: Andreas Olofsson <[email protected]>
Date:   Tue Apr 10 19:44:00 2018 +0200

    Created a basic LSP server

    src/lsp/Base.hs    Handles the HTTP-like base layer of LSP
    src/lsp/JSONRPC.hs Handles the JSONRPC layer
    src/lsp/LSP.hs     Starts the LSP server and currently just sends dummy responses

    aeson, network & bytestring have been added to 'encore.cabal' as dependencies

commit 67847b5
Author: Alfret <[email protected]>
Date:   Tue Apr 10 19:22:36 2018 +0200

    Added service base

    Added: Initial code for the compiler service

    Added: Copied the program-table producing code into our own file

    Update: Added the src/lsp directory to the cabal file
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.

1 participant