Skip to content

Conversation

@glennsarti
Copy link
Contributor

Fixes #147

Note - Technically this doesn't fix the error, but at least Editor Services will not crashing or throw bad data. The fact a gem is missing from the ruby environment is outside the control of Editor Services.

Previously the sidecar would error completely when a LoadError was encountered.
This could be caused by gem Facter trying to load libraries which are not
present. StandardError does not trap these. This commit also traps the
LoadError and allows the sidecar to return a properly formatted response to
Editor Services intead of dumping error text to STDERR.

Previously the sidecar would error completely when a LoadError was encountered.
This could be caused by gem Facter trying to load libraries which are not
present.  StandardError does not trap these.  This commit also traps the
LoadError and allows the sidecar to return a properly formatted response to
Editor Services intead of dumping error text to STDERR.
@glennsarti glennsarti requested a review from jpogran July 11, 2019 02:40
@glennsarti glennsarti added bug Something isn't working Language Server labels Jul 11, 2019
@glennsarti glennsarti added this to the 0.20.0 milestone Jul 11, 2019
@glennsarti
Copy link
Contributor Author

No tests required for this.

@jpogran jpogran merged commit b040555 into puppetlabs:master Jul 11, 2019
@glennsarti glennsarti deleted the gh-147-graceful-fail branch July 28, 2019 11:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error generating node graph

2 participants