puppetlabs / puppet-editor-services

Puppet Language Server for editors
Apache License 2.0
46 stars 21 forks source link

[RFC] What would it take to not use Ruby for the Language Server? #304

Open glennsarti opened 3 years ago

glennsarti commented 3 years ago

Out of Scope

Debug Server - The debug server requires compilation which HAS to have a ruby runtime.

In Scope

Therefore Golang would be considered an alternate language for the Puppet Editor Services

Feature All in Go Needs information from Ruby Hosted entirely in Ruby Notes
Code Folding Just needs the Puppet Lexer
Diagnostics Needs puppet-lint. There's nothing comparable in Go
Diagnostics The puppetfile-resolver is in Ruby. But it could be done in Go. Except the puppetfile is actually ruby code
Hover The parser is needed to locate the cursor in the document (which could be Go) however the actual information comes from the Sidecar, which requires YARD and Puppet Strings, which requires Ruby. But it is out-of-process/async-able
Autocomplete See Hover comments
Definition See Hover comments
Document Symbol Requires parser
Format on Type Currently it uses the Puppet Lint lexer which is Ruby only. But it could be changed to use the Puppet lexer based on the code folding
Signature Provider See Hover comments
Puppet - Resource Requires Puppet providers (Ruby) therefore can't be in Go
Puppet - Get Facts Facter (2/4) is in Ruby
Puppet - Node Graph Requires compilation therefore can't be in Go
Workspace Symbol See Hover comments

'