You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert

6
6
7
-
A ruby based implementation of a [Language Server](https://github.com/Microsoft/language-server-protocol) and [Debug Server](TODO) for the Puppet Language.
7
+
A ruby based implementation of a [Language Server](https://github.com/Microsoft/language-server-protocol) and [Debug Server](https://github.com/microsoft/debug-adapter-protocol) for the Puppet Language. Integrate this into your editor to benefit from full Puppet Language support, such as syntax hightlighting, linting, hover support and more.
8
8
9
9
## Requirements
10
10
@@ -20,23 +20,23 @@ A ruby based implementation of a [Language Server](https://github.com/Microsoft/
@@ -48,7 +48,7 @@ A ruby based implementation of a [Language Server](https://github.com/Microsoft/
48
48
49
49
By default the language server will stop if no connection is made within 10 seconds and will also stop after a client disconnects. Adding `--debug=stdout` will log messages to the console
I, [2018-12-05T15:20:56.302414 #29752] INFO -- : Language Server is v0.16.0
95
95
I, [2018-12-05T15:20:56.303391 #29752] INFO -- : Using Puppet v5.5.8
@@ -122,7 +122,7 @@ D, [2018-12-05T15:20:56.374333 #29752] DEBUG -- : TCPSRV: Started listening on l
122
122
123
123
> On Windows you need to run ruby with the `Puppet Command Prompt` which can be found in the Start Menu. This enables the Puppet Agent ruby environment.
124
124
125
-
```
125
+
```bash
126
126
> ruby puppet-languageserver
127
127
LANGUAGE SERVER RUNNING 127.0.0.1:55086
128
128
```
@@ -131,15 +131,15 @@ LANGUAGE SERVER RUNNING 127.0.0.1:55086
131
131
132
132
Note that the Language Server will use TCP as the default transport on `localhost` at a random port. The IP Address and Port can be changed using the `--ip` and `--port` arguments respectively. For example to listen on all interfaces on port 9000;
-a, --action=NAME The action for the sidecar to take. Expected ["noop", "default_classes", "default_functions", "default_types", "node_graph", "resource_list", "workspace_classes", "workspace_functions", "workspace_types"]
214
214
-c, --action-parameters=JSON JSON Encoded string containing the parameters for the sidecar action
By default the language server will stop if no connection is made within 10 seconds and will also stop after a client disconnects. Adding `--debug=stdout` will log messages to the console
229
+
By default the debug server will stop if no connection is made within 10 seconds and will also stop after a client disconnects. Adding `--debug=stdout` will log messages to the console
> On Windows you need to run ruby with the `Puppet Command Prompt` which can be found in the Start Menu. This enables the Puppet Agent ruby environment.
274
272
275
-
```
273
+
```bash
276
274
> ruby puppet-debugserver
277
275
DEBUG SERVER RUNNING 127.0.0.1:8082
278
276
```
@@ -281,7 +279,7 @@ Note the debug server will stop after 10 seconds if no client connection is made
281
279
282
280
## Command line arguments
283
281
284
-
```
282
+
```bash
285
283
Usage: puppet-debugserver.rb [options]
286
284
-p, --port=PORT TCP Port to listen on. Default is random port}
287
285
-i, --ip=ADDRESS IP Address to listen on (0.0.0.0 for all interfaces). Default is localhost
@@ -297,6 +295,14 @@ This codebase is licensed under Apache 2.0. However, the open source dependencie
297
295
298
296
# Other information
299
297
298
+
## Reporting bugs
299
+
300
+
If you find a bug in puppet-editor-services or its results, please create an issue in the [repo issues tracker](https://github.com/puppetlabs/puppet-editor-services/issues). Bonus points will be awarded if you also include a patch that fixes the issue.
301
+
302
+
## Development
303
+
304
+
If you run into an issue with this tool or would like to request a feature you can raise a PR with your suggested changes. Alternatively, you can raise a Github issue with a feature request or to report any bugs. Every other Tuesday the DevX team holds office hours in the Puppet Community Slack, where you can ask questions about this and any other supported tools. This session runs at 15:00 (GMT) for about an hour.
305
+
300
306
## Why are there vendored gems and why only native ruby
301
307
302
308
When used by editors this language server will be running using the Ruby runtime provided by Puppet Agent. That means no native extensions and no bundler. Also, only the gems provided by Puppet Agent would be available by default. To work around this limitation all runtime dependencies should be re-vendored and then the load path modified appropriately.
0 commit comments