Skip to content

Commit f3f54fc

Browse files
committed
(GH-311) Explicitly require Facter
Changes with how Puppet includes Facter as suggested in the ticket means that we need to explicitly include the library.
1 parent 8262ebc commit f3f54fc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/puppet_languageserver.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ def self.require_gems(options)
7272
begin
7373
require 'lsp/lsp'
7474
require 'puppet'
75+
require 'facter'
7576
rescue LoadError => e
7677
log_message(:error, "Error while loading a critical gem: #{e} #{e.backtrace}")
7778
return

0 commit comments

Comments
 (0)