openvox-editor-services 4.0.1 → 4.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2482da72d66357f9710a3705a119f913b8b1f589cd8c1308fdf4267380516c14
4
- data.tar.gz: 9166657dc9d5c62fd15ce34b97a89ab81db74cce077789c9d4801da61cfb7514
3
+ metadata.gz: 2f9ce7442a09e6d7b48089a215ac20098c8422d1ac98f269b9fdcdb8d44a627c
4
+ data.tar.gz: 9cc6ee33ada55594099f73f869b261e7c16a27db72c211dc150d90b254182f7c
5
5
  SHA512:
6
- metadata.gz: 07a236de9536aa66d4311bb1632f0686a79bca0e0a2ab167c61ddeee1f0beafab2de63efc3d710b7023c45322f74bfea39b99bd1b1def1b9f15b34e1f9f3dee2
7
- data.tar.gz: 1c3138263fc890e6c0aacce1c7806a538c73ab3fbd4d488d80ed07f8d21c6ddcd780cd01da4c12049698d502def58660df19be9fa66cbce148a70e288663edce
6
+ metadata.gz: b1772582e543ecd12f0c6d20f2c4ba81a96834c0b3000e7e56e480b29da215f569e6b229bb9240b1aaafd8d62aa814b098ec7a671bfead102a71df8e20cdeedd
7
+ data.tar.gz: 6ab376ed9a702bc4a5fa5f67493ff375d698c9d43b64af1f3e564c6804e4758d4dd50f4753bfe43ef7ca94bba12ba1e6bb64b675847a13ffe7de912a021d8fc8
data/CHANGELOG.md CHANGED
@@ -1,8 +1,26 @@
1
1
  # Changelog
2
2
 
3
- ## [4.0.1](https://github.com/voxpupuli/openvox-editor-services/tree/4.0.1) (2026-11-09)
3
+ ## [4.0.3](https://github.com/voxpupuli/openvox-editor-services/tree/4.0.3) (2026-11-30)
4
4
 
5
- [Full Changelog](https://github.com/voxpupuli/openvox-editor-services/compare/v4.0.0...4.0.1)
5
+ [Full Changelog](https://github.com/voxpupuli/openvox-editor-services/compare/v4.0.1...4.0.3)
6
+
7
+ **Implemented enhancements:**
8
+
9
+ - Add documentation for neovim and emacs [\#108](https://github.com/voxpupuli/openvox-editor-services/pull/108) ([sebastianrakel](https://github.com/sebastianrakel))
10
+
11
+ **Fixed bugs:**
12
+
13
+ - Add files from root \(openvox-languageserver, openvox-languageserver-sidecar, ...\) also to the resulting gem [\#107](https://github.com/voxpupuli/openvox-editor-services/pull/107) ([sebastianrakel](https://github.com/sebastianrakel))
14
+ - Report parser validation errors as diagnostics and stop linter failures erasing files [\#93](https://github.com/voxpupuli/openvox-editor-services/pull/93) ([jay7x](https://github.com/jay7x))
15
+ - fix: update compile command [\#91](https://github.com/voxpupuli/openvox-editor-services/pull/91) ([rwaffen](https://github.com/rwaffen))
16
+
17
+ **Merged pull requests:**
18
+
19
+ - ci: --merge, --rebase, or --squash required when not running interactively [\#103](https://github.com/voxpupuli/openvox-editor-services/pull/103) ([rwaffen](https://github.com/rwaffen))
20
+
21
+ ## [v4.0.1](https://github.com/voxpupuli/openvox-editor-services/tree/v4.0.1) (2026-11-09)
22
+
23
+ [Full Changelog](https://github.com/voxpupuli/openvox-editor-services/compare/v4.0.0...v4.0.1)
6
24
 
7
25
  **Fixed bugs:**
8
26
 
data/Gemfile CHANGED
@@ -11,7 +11,7 @@ source ENV['GEM_SOURCE'] || "https://rubygems.org"
11
11
  group :development do
12
12
  # JSON 3 support requires keyword options in the sidecar/OpenVox JSON loaders
13
13
  # and replacing JSON::PRETTY_STATE_PROTOTYPE in OpenVox's JSON dumper.
14
- gem 'json', "< 3.0", :require => false
14
+ gem 'json', "< 3.0", :require => false
15
15
  gem 'openfact', '>= 5.1', '< 7', :require => false
16
16
  gem 'openvox-strings', '~> 7.1', :require => false
17
17
  gem 'puppetfile-resolver', '~> 0.6.2', :require => false
@@ -27,7 +27,7 @@ group :development do
27
27
  gem 'yard', '~> 0.9.28', :require => false
28
28
  gem "rubocop-performance", '~> 1.27.0', :require => false
29
29
  gem "rubocop-rspec", '~> 3.10.0', :require => false
30
- gem "rubocop", '~> 1.92.0', :require => false
30
+ gem "rubocop", '~> 1.93.0', :require => false
31
31
 
32
32
  if ENV['OPENVOX_GEM_VERSION']
33
33
  gem 'openvox', ENV['OPENVOX_GEM_VERSION'], :require => false
data/README.md CHANGED
@@ -12,6 +12,8 @@ The internal `Puppet` Ruby namespace and `puppet/*` protocol methods are retaine
12
12
  - [How to run the Language Server in Production](#how-to-run-the-language-server-in-production)
13
13
  - [Command line arguments](#command-line-arguments)
14
14
  - [Resource attribute completion](#resource-attribute-completion)
15
+ - [emacs](#emacs-configuration)
16
+ - [neovim](#neovim-configuration)
15
17
  - [Language Server Sidecar](#language-server-sidecar)
16
18
  - [How to run the Language Server Sidecar for Development](#how-to-run-the-language-server-sidecar-for-development)
17
19
  - [Example usage](#example-usage)
@@ -154,6 +156,28 @@ The alignment padding is capped at 999 characters (`MAX_ATTRIBUTE_PADDING`) beca
154
156
  This bounds memory and CPU use for pathological manifests and for client-supplied completion data.
155
157
  Attributes longer than the cap are inserted without extra alignment padding.
156
158
 
159
+ ### Emacs Configuration
160
+
161
+ ```elisp
162
+ (use-package puppet-mode
163
+ :mode "\\.pp\\'"
164
+ :hook (puppet-mode . eglot-ensure)
165
+ :config
166
+ (add-to-list 'eglot-server-programs
167
+ '(puppet-mode . ("openvox-languageserver" "--stdio"))))
168
+ ```
169
+
170
+ ### neovim Configuration
171
+
172
+ ```lua
173
+ vim.lsp.config['openvox_ls'] = {
174
+ cmd = { 'openvox-languageserver', '--stdio' },
175
+ filetypes = { 'puppet' },
176
+ root_markers = { { 'Puppetfile', 'metadata.json' }, '.git' },
177
+ }
178
+ vim.lsp.enable('openvox_ls')
179
+ ```
180
+
157
181
  ## Language Server Sidecar
158
182
 
159
183
  ### How to run the Language Server Sidecar for Development
@@ -1,32 +1,25 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'puppet-languageserver/parser_validation_helpers'
4
+
3
5
  module PuppetLanguageServer
4
6
  module Epp
5
7
  module ValidationProvider
6
- def self.validate(content, _max_problems = 100)
8
+ def self.validate(content, max_problems = 100)
7
9
  result = []
8
- # TODO: Need to implement max_problems
9
- _problems = 0
10
+ captured = []
10
11
 
11
12
  begin
12
13
  parser = Puppet::Pops::Parser::EvaluatingParser::EvaluatingEppParser.new
13
- parser.parse_string(content, nil)
14
- rescue StandardError => e
15
- # Sometimes the error is in the cause not the root object itself
16
- e = e.cause if !e.respond_to?(:line) && e.respond_to?(:cause)
17
- ex_line = e.respond_to?(:line) && !e.line.nil? ? e.line - 1 : nil # Line numbers from puppet exceptions are base 1
18
- ex_pos = e.respond_to?(:pos) && !e.pos.nil? ? e.pos : nil # Pos numbers from puppet are base 1
19
-
20
- message = e.respond_to?(:message) ? e.message : nil
21
- message = e.basic_message if message.nil? && e.respond_to?(:basic_message)
22
-
23
- unless ex_line.nil? || ex_pos.nil? || message.nil?
24
- result << LSP::Diagnostic.new('severity' => LSP::DiagnosticSeverity::ERROR,
25
- 'range' => LSP.create_range(ex_line, ex_pos, ex_line, ex_pos + 1),
26
- 'source' => 'Puppet',
27
- 'message' => message)
14
+ # The mutex also protects the global log level that is temporarily
15
+ # lowered while capturing parser messages.
16
+ $PuppetParserMutex.synchronize do # rubocop:disable Style/GlobalVars
17
+ ParserValidationHelpers.capture_parser_messages(captured) { parser.parse_string(content, nil) }
28
18
  end
19
+ rescue StandardError => e
20
+ result.concat(ParserValidationHelpers.parser_diagnostics(content, e, captured, max_problems))
29
21
  end
22
+
30
23
  result
31
24
  end
32
25
  end
@@ -1,5 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'puppet-languageserver/parser_validation_helpers'
3
4
  require 'puppet-languageserver/puppet_lint'
4
5
  require 'puppet-languageserver/uri_helper'
5
6
  module PuppetLanguageServer
@@ -18,18 +19,28 @@ module PuppetLanguageServer
18
19
  init_puppet_lint(session_state.documents.store_root_path, ['--fix', '--relative'])
19
20
 
20
21
  linter = PuppetLint::Checks.new
21
- lint_aborted = false
22
22
  problems = begin
23
23
  linter.run(lint_filename(document_uri), content)
24
24
  rescue SystemExit
25
25
  PuppetLanguageServer.log_message(:error, '(fix_validate_errors) puppet-lint aborted')
26
- lint_aborted = true
27
26
  nil
28
27
  end
29
- problems_fixed = problems.nil? ? 0 : problems.count { |item| item[:kind] == :fixed }
30
28
 
31
- [problems_fixed, lint_aborted ? content : linter.manifest]
29
+ # When puppet-lint cannot parse the manifest (for example a syntax error)
30
+ # it discards all of the tokens and `manifest` returns an empty string.
31
+ # Returning that to the client would replace the document with nothing,
32
+ # so leave the original content untouched instead.
33
+ return [0, content] if problems.nil? || syntax_errors?(problems)
34
+
35
+ problems_fixed = problems.count { |item| item[:kind] == :fixed }
36
+
37
+ [problems_fixed, linter.manifest]
38
+ end
39
+
40
+ def self.syntax_errors?(problems)
41
+ problems.any? { |problem| problem[:kind] == :error && problem[:check] == :syntax }
32
42
  end
43
+ private_class_method :syntax_errors?
33
44
 
34
45
  def self.validate(session_state, content, options = {})
35
46
  options = {
@@ -85,35 +96,25 @@ module PuppetLanguageServer
85
96
  rescue StandardError
86
97
  # If anything catastrophic happens we resort to puppet parsing anyway
87
98
  end
88
- # TODO: Should I wrap this thing in a big rescue block?
89
- Puppet[:code] = content
99
+ captured = []
100
+
90
101
  env = Puppet.lookup(:current_environment)
91
102
  loaders = Puppet::Pops::Loaders.new(env)
92
103
  Puppet.override({ loaders: }, 'For puppet parser validate') do
93
104
  validation_environment = env
94
105
  $PuppetParserMutex.synchronize do # rubocop:disable Style/GlobalVars
95
106
  original_taskmode = Puppet[:tasks] if Puppet.tasks_supported?
96
- Puppet[:tasks] = options[:tasks_mode] if Puppet.tasks_supported?
97
- validation_environment.check_for_reparse
98
- validation_environment.known_resource_types.clear
107
+ ParserValidationHelpers.capture_parser_messages(captured) do
108
+ Puppet[:code] = content
109
+ Puppet[:tasks] = options[:tasks_mode] if Puppet.tasks_supported?
110
+ validation_environment.check_for_reparse
111
+ validation_environment.known_resource_types.clear
112
+ end
99
113
  ensure
100
114
  Puppet[:tasks] = original_taskmode if Puppet.tasks_supported?
101
115
  end
102
116
  rescue StandardError => e
103
- # Sometimes the error is in the cause not the root object itself
104
- e = e.cause if !e.respond_to?(:line) && e.respond_to?(:cause)
105
- ex_line = e.respond_to?(:line) && !e.line.nil? ? e.line - 1 : nil # Line numbers from puppet exceptions are base 1
106
- ex_pos = e.respond_to?(:pos) && !e.pos.nil? ? e.pos : nil # Pos numbers from puppet are base 1
107
-
108
- message = e.respond_to?(:message) ? e.message : nil
109
- message = e.basic_message if message.nil? && e.respond_to?(:basic_message)
110
-
111
- unless ex_line.nil? || ex_pos.nil? || message.nil?
112
- result << LSP::Diagnostic.new('severity' => LSP::DiagnosticSeverity::ERROR,
113
- 'range' => LSP.create_range(ex_line, ex_pos, ex_line, ex_pos + 1),
114
- 'source' => 'Puppet',
115
- 'message' => message)
116
- end
117
+ result.concat(ParserValidationHelpers.parser_diagnostics(content, e, captured, options[:max_problems]))
117
118
  end
118
119
 
119
120
  result
@@ -0,0 +1,97 @@
1
+ # frozen_string_literal: true
2
+
3
+ module PuppetLanguageServer
4
+ # Shared helpers for turning Puppet parser validation failures into LSP
5
+ # diagnostics.
6
+ #
7
+ # The parser reports a single issue by raising an exception that carries its
8
+ # position, but when there are multiple issues it logs each one and raises a
9
+ # positionless "Language validation logged N errors" exception. These helpers
10
+ # capture the logged issues so they can all become diagnostics.
11
+ module ParserValidationHelpers
12
+ COLLECTOR_DESTINATION = 'lsp_validation_collector'
13
+ THREAD_BUFFER_KEY = :puppet_lsp_validation_messages
14
+
15
+ module_function
16
+
17
+ # Collect the Puppet log messages that are emitted while the block runs.
18
+ #
19
+ # The collector destination is registered on demand because
20
+ # Puppet.initialize_settings can clear the destination list. The log level
21
+ # is temporarily lowered to :err so that a stricter configured level cannot
22
+ # filter out the parser issues that are being captured.
23
+ def capture_parser_messages(captured)
24
+ Puppet::Util::Log.newdestination(COLLECTOR_DESTINATION) unless Puppet::Util::Log.destinations.key?(COLLECTOR_DESTINATION)
25
+
26
+ original_log_level = Puppet::Util::Log.level
27
+ Puppet::Util::Log.level = :err
28
+ Thread.current[THREAD_BUFFER_KEY] = captured
29
+ begin
30
+ yield
31
+ ensure
32
+ Thread.current[THREAD_BUFFER_KEY] = nil
33
+ Puppet::Util::Log.level = original_log_level
34
+ end
35
+ captured
36
+ end
37
+
38
+ # Build the diagnostics for a parser failure, preferring the individual
39
+ # issues that the parser logged and falling back to the raised exception.
40
+ def parser_diagnostics(content, error, captured, max_problems = 100)
41
+ messages = captured.select { |message| message.level == :err }
42
+ messages = messages.uniq { |message| [message.line, message.pos, message.message] }
43
+ messages = messages.first(max_problems) unless max_problems.nil?
44
+
45
+ return messages.map { |message| diagnostic_from_log_message(content, message) } unless messages.empty?
46
+
47
+ diagnostic = diagnostic_from_exception(content, error)
48
+ diagnostic.nil? ? [] : [diagnostic]
49
+ end
50
+
51
+ def diagnostic_from_log_message(content, message)
52
+ line, char = message_position(content, message.line, message.pos)
53
+ LSP::Diagnostic.new('severity' => LSP::DiagnosticSeverity::ERROR,
54
+ 'code' => message.issue_code&.to_s,
55
+ 'range' => LSP.create_range(line, char, line, char + 1),
56
+ 'source' => 'Puppet',
57
+ 'message' => message.message)
58
+ end
59
+
60
+ def diagnostic_from_exception(content, error)
61
+ # Sometimes the error is in the cause not the root object itself
62
+ error = error.cause if !error.respond_to?(:line) && error.respond_to?(:cause)
63
+
64
+ message = if error.respond_to?(:basic_message) && !error.basic_message.nil?
65
+ error.basic_message
66
+ elsif error.respond_to?(:message)
67
+ error.message
68
+ end
69
+ return nil if message.nil?
70
+
71
+ error_line = error.respond_to?(:line) ? error.line : nil
72
+ error_pos = error.respond_to?(:pos) ? error.pos : nil
73
+ line, char = message_position(content, error_line, error_pos)
74
+ code = error.respond_to?(:issue_code) && !error.issue_code.nil? ? error.issue_code.to_s : nil
75
+
76
+ LSP::Diagnostic.new('severity' => LSP::DiagnosticSeverity::ERROR,
77
+ 'code' => code,
78
+ 'range' => LSP.create_range(line, char, line, char + 1),
79
+ 'source' => 'Puppet',
80
+ 'message' => message)
81
+ end
82
+
83
+ # Puppet line and position numbers are 1-based. A positionless error, such
84
+ # as "Syntax error at end of input", is reported at the end of the document.
85
+ def message_position(content, line, pos)
86
+ return end_of_document_position(content) if line.nil? || pos.nil?
87
+
88
+ [[line - 1, 0].max, [pos - 1, 0].max]
89
+ end
90
+
91
+ def end_of_document_position(content)
92
+ lines = content.split("\n", -1)
93
+ line = [lines.length - 1, 0].max
94
+ [line, lines[line].to_s.chomp("\r").length]
95
+ end
96
+ end
97
+ end
@@ -30,6 +30,16 @@ module Puppet
30
30
  end
31
31
  end
32
32
 
33
+ # Capture the individual parser validation issues that OpenVox logs before it
34
+ # raises an aggregate error. The language server stores a buffer on the current
35
+ # thread while validating a manifest so each issue can become a diagnostic.
36
+ Puppet::Util::Log.newdesttype :lsp_validation_collector do
37
+ def handle(msg)
38
+ buffer = Thread.current[:puppet_lsp_validation_messages]
39
+ buffer << msg if buffer
40
+ end
41
+ end
42
+
33
43
  # MUST BE LAST!!!!!!
34
44
  # Suppress any warning messages to STDOUT. It can pollute stdout when running in STDIO mode
35
45
  Puppet::Util::Log.newdesttype :null_logger do
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PuppetEditorServices
4
- PUPPETEDITORSERVICESVERSION = '4.0.1' unless defined? PUPPETEDITORSERVICESVERSION
4
+ PUPPETEDITORSERVICESVERSION = '4.0.3' unless defined? PUPPETEDITORSERVICESVERSION
5
5
 
6
6
  # @api public
7
7
  #
@@ -0,0 +1,12 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ $LOAD_PATH.unshift(File.join(__dir__, 'lib'))
5
+
6
+ require 'openvox_agent_rubygems'
7
+ OpenVoxAgentRubygems.activate!
8
+ require 'puppet_debugserver'
9
+
10
+ options = PuppetDebugServer::CommandLineParser.parse(ARGV)
11
+ PuppetDebugServer.init_puppet(options)
12
+ PuppetDebugServer.execute(PuppetDebugServer.rpc_server_async(options))
@@ -0,0 +1,28 @@
1
+ # frozen_string_literal: true
2
+ require_relative 'lib/puppet_editor_services/version'
3
+ require 'rake'
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = 'openvox-editor-services'
7
+ s.version = PuppetEditorServices.version
8
+ s.authors = ['OpenVox Project contributors']
9
+ s.email = ['openvox@voxpupuli.org']
10
+ s.summary = 'OpenVox Puppet DSL Server for editors'
11
+ s.description = <<~EOF
12
+ A ruby based implementation of a Language Server and Debug Server for the
13
+ OpenVox Puppet DSL. Integrate this into your editor to benefit from full OpenVox
14
+ Puppet DSL support, such as syntax hightlighting, linting, hover support and more.
15
+ EOF
16
+ s.homepage = 'https://github.com/voxpupuli/openvox-editor-services'
17
+ s.required_ruby_version = '>= 3.4'
18
+ s.executables = %w[ openvox-debugserver openvox-languageserver openvox-languageserver-sidecar ]
19
+ s.files = FileList['lib/**/*.rb', 'bin/*', '[A-Za-z]*'].to_a.reject { |file| file.end_with?('.gem') }
20
+ s.license = 'Apache-2.0'
21
+ s.add_runtime_dependency 'hiera-eyaml', '~> 5.0'
22
+ s.add_runtime_dependency 'molinillo', '~> 0.6'
23
+ s.add_runtime_dependency 'openfact', '>= 5.1', '< 7'
24
+ s.add_runtime_dependency 'openvox-strings', '~> 7.1'
25
+ s.add_runtime_dependency 'puppetfile-resolver', '~> 0.6'
26
+ s.add_runtime_dependency 'voxpupuli-puppet-lint-plugins', '= 7.0.0'
27
+ s.add_runtime_dependency 'yard', '~> 0.9'
28
+ end
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ $LOAD_PATH.unshift(File.join(__dir__, 'lib'))
5
+ $LOAD_PATH.unshift(File.join(__dir__, 'vendor', 'puppet-lint', 'lib'))
6
+ Dir[File.join(__dir__, 'vendor', 'puppet-lint-*', 'lib')].sort.each { |path| $LOAD_PATH.unshift(path) }
7
+ $LOAD_PATH.unshift(File.join(__dir__, 'vendor', 'molinillo', 'lib'))
8
+ $LOAD_PATH.unshift(File.join(__dir__, 'vendor', 'puppetfile-resolver', 'lib'))
9
+
10
+ require 'openvox_agent_rubygems'
11
+ OpenVoxAgentRubygems.activate!
12
+ require 'puppet_languageserver'
13
+
14
+ options = PuppetLanguageServer::CommandLineParser.parse(ARGV)
15
+ PuppetLanguageServer.init_puppet(options)
16
+ PuppetLanguageServer.rpc_server(options)
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ $LOAD_PATH.unshift(File.join(__dir__, 'lib'))
5
+ $LOAD_PATH.unshift(File.join(__dir__, 'vendor', 'hiera-eyaml', 'lib'))
6
+ $LOAD_PATH.unshift(File.join(__dir__, 'vendor', 'openvox-strings', 'lib'))
7
+ $LOAD_PATH.unshift(File.join(__dir__, 'vendor', 'rgen', 'lib'))
8
+ $LOAD_PATH.unshift(File.join(__dir__, 'vendor', 'yard', 'lib'))
9
+
10
+ require 'openvox_agent_rubygems'
11
+ OpenVoxAgentRubygems.activate!
12
+ require 'puppet_languageserver_sidecar'
13
+
14
+ options = PuppetLanguageServerSidecar::CommandLineParser.parse(ARGV)
15
+ PuppetLanguageServerSidecar.init_puppet_sidecar(options)
16
+ PuppetLanguageServerSidecar.execute_and_output(options)
@@ -0,0 +1,11 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ # Add the debug server into the load path
5
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), 'lib'))
6
+
7
+ require 'puppet_debugserver'
8
+
9
+ PuppetDebugServer.init_puppet(PuppetDebugServer::CommandLineParser.parse(ARGV))
10
+ rpc_thread = PuppetDebugServer.rpc_server_async(PuppetDebugServer::CommandLineParser.parse(ARGV))
11
+ PuppetDebugServer.execute(rpc_thread)
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ # Add the language server into the load path
5
+ $LOAD_PATH.unshift(File.join(__dir__, 'lib'))
6
+
7
+ # Add the vendored gems into the load path
8
+ $LOAD_PATH.unshift(File.join(__dir__, 'vendor', 'puppet-lint', 'lib'))
9
+ Dir[File.join(__dir__, 'vendor', 'puppet-lint-*', 'lib')].sort.each { |path| $LOAD_PATH.unshift(path) }
10
+ $LOAD_PATH.unshift(File.join(__dir__, 'vendor', 'molinillo', 'lib'))
11
+ $LOAD_PATH.unshift(File.join(__dir__, 'vendor', 'puppetfile-resolver', 'lib'))
12
+
13
+ require 'puppet_languageserver'
14
+
15
+ PuppetLanguageServer.init_puppet(PuppetLanguageServer::CommandLineParser.parse(ARGV))
16
+ PuppetLanguageServer.rpc_server(PuppetLanguageServer::CommandLineParser.parse(ARGV))
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ # Add the language server into the load path
5
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), 'lib'))
6
+ # Add the vendored gems into the load path
7
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), 'vendor', 'hiera-eyaml', 'lib'))
8
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), 'vendor', 'yard', 'lib'))
9
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), 'vendor', 'openvox-strings', 'lib'))
10
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), 'vendor', 'rgen', 'lib'))
11
+
12
+ require 'puppet_languageserver_sidecar'
13
+
14
+ PuppetLanguageServerSidecar.init_puppet_sidecar(PuppetLanguageServerSidecar::CommandLineParser.parse(ARGV))
15
+ PuppetLanguageServerSidecar.execute_and_output(PuppetLanguageServerSidecar::CommandLineParser.parse(ARGV))
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openvox-editor-services
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.1
4
+ version: 4.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenVox Project contributors
@@ -15,14 +15,14 @@ dependencies:
15
15
  requirements:
16
16
  - - "~>"
17
17
  - !ruby/object:Gem::Version
18
- version: '2.1'
18
+ version: '5.0'
19
19
  type: :runtime
20
20
  prerelease: false
21
21
  version_requirements: !ruby/object:Gem::Requirement
22
22
  requirements:
23
23
  - - "~>"
24
24
  - !ruby/object:Gem::Version
25
- version: '2.1'
25
+ version: '5.0'
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: molinillo
28
28
  requirement: !ruby/object:Gem::Requirement
@@ -202,6 +202,7 @@ files:
202
202
  - lib/puppet-languageserver/manifest/signature_provider.rb
203
203
  - lib/puppet-languageserver/manifest/validation_provider.rb
204
204
  - lib/puppet-languageserver/message_handler.rb
205
+ - lib/puppet-languageserver/parser_validation_helpers.rb
205
206
  - lib/puppet-languageserver/providers.rb
206
207
  - lib/puppet-languageserver/puppet_helper.rb
207
208
  - lib/puppet-languageserver/puppet_lexer_helper.rb
@@ -236,6 +237,13 @@ files:
236
237
  - lib/puppet_editor_services/version.rb
237
238
  - lib/puppet_languageserver.rb
238
239
  - lib/puppet_languageserver_sidecar.rb
240
+ - openvox-debugserver
241
+ - openvox-editor-services.gemspec
242
+ - openvox-languageserver
243
+ - openvox-languageserver-sidecar
244
+ - puppet-debugserver
245
+ - puppet-languageserver
246
+ - puppet-languageserver-sidecar
239
247
  homepage: https://github.com/voxpupuli/openvox-editor-services
240
248
  licenses:
241
249
  - Apache-2.0