ruby_language_server 0.4.2 → 0.9.10

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: c147d20c737d5ee363a4d645a57a909d72387982e7f7f62eb7b440f5bc12f4be
4
- data.tar.gz: f61b4d860cf155d8eab9b3e72c9446f3c3c57d5fe17f2304f6c75cab89ef01f1
3
+ metadata.gz: 07d1400ade2c96eadb3a296739d277651d8de772f05e99e603c96cd61648994c
4
+ data.tar.gz: 507cb4a0251f28c61a82ac0c75c8adbd30fabf26e3b61fb23b10fbf1e27f31bc
5
5
  SHA512:
6
- metadata.gz: 87e60a0f25d911eb4a60b7cb37b3c50784d82bf3c4479bd91a15d2758382434334e43508fc8dd72a69649f31fa32a26d8c8940a18f8864ab4e442c03b16991dd
7
- data.tar.gz: 5e7efae883dc54a1627738a0ea41a477b603d9f387b28af09d90247170a7f4ff62f10f10a63618e09cc6ce7bb0f4401727f25bb8d24d2110bfa851a075345836
6
+ metadata.gz: dc085581df4ad5c5820b3aef69e3e8f44e3f2f3852e6ea6e0a5e9296e235f61618fb46b2a63aef781dff0df2490660f3bba1805d26528baff234391347df07cb
7
+ data.tar.gz: 4b76e646f09ac0858b4b33712f3ce3aaabd662d09c1b5d1d9c5b5522f1af8fd2e057c8b5dc4ea20f8792d76e6bc456f3ef9ba43c27e885edd6d28e28ba4a5715
data/CHANGELOG.txt CHANGED
@@ -1,5 +1,86 @@
1
1
  # Changelog
2
2
 
3
+ #### 0.9.10 Tue Nov 24 23:52:32 PST 2026
4
+
5
+ * Completion and hover know Ruby's core classes and modules (String, Array, Hash, Kernel, ...), with signatures and documentation from the RBS core signatures. The project's own definitions come first. Go-to-definition doesn't offer core methods yet, because their files are inside the container. Set RUBY_LANGUAGE_SERVER_CORE_INDEX=false to skip them
6
+
7
+ #### 0.9.9 Tue Nov 17 08:09:13 PST 2026
8
+
9
+ * Hover: show what a name refers to, from the existing index
10
+ * Find definitions and completions inherited from superclasses
11
+ * Resolve a receiver constant through the enclosing namespaces, so Bar.baz inside module Foo finds Foo::Bar. A leading :: looks only at the top level
12
+ * Methods defined inside class << self are class methods
13
+ * Top-level variables now complete. A completion with no candidates returns null
14
+ * Positions are counted in UTF-16 code units, as LSP requires, so ranges are right on lines with non-ASCII text such as é or emoji
15
+ * Definition results point at the column where the name is defined, not column 0
16
+ * Positions now use the right line when finding the scope for completions and definitions. LSP lines are 0-based
17
+ * Document symbols: return [] when there are none, and leave out symbols with blank names, which made VS Code reject the whole list
18
+ * Read LSP headers properly: any order or case, and more than one header. Exit when the client closes the stream
19
+ * Keep the index in step with files created, changed or deleted outside the editor, when the client supports watched files
20
+ * The project scan uses rootUri (or the first workspace folder), not the deprecated rootPath
21
+ * The project scan skips only spec and test files and vendor/. It used to also skip files such as inspect.rb and latest.rb
22
+ * The project scan logs and skips a file it can't index, instead of retrying it forever
23
+ * Looking up a file the server hasn't seen no longer stores an empty record for it
24
+ * Child scopes are matched by path and only within the same file
25
+ * A quote in the word being completed no longer causes an SQL error
26
+ * Module completions are logged at debug level, not error
27
+ * Faster: indexing makes far fewer queries (about 25% quicker), a definition lookup makes about half as many, and a file is re-parsed at most once a second while you type within a line (set RUBY_LANGUAGE_SERVER_REPARSE_INTERVAL; 0 turns this off)
28
+ * Reply to requests the server doesn't handle with a MethodNotFound error, instead of never replying
29
+ * Advertise only the capabilities the server implements: definitions, document symbols, hover and completion. Nothing a client could use was removed
30
+ * The initialize result now includes serverInfo (name and version)
31
+ * Handle the exit notification: exit 0 after shutdown, 1 otherwise. Requests after shutdown get an InvalidRequest error
32
+ * A request whose handler raises gets an InternalError (-32603) reply right away, instead of null after 15 seconds. Only a locked database is retried, briefly
33
+ * The SQLite lock timeout is now 5 seconds. It was 30 ms, because the value was read as milliseconds
34
+ * The Docker image runs as non-root UID 1000
35
+ * The database and debug log moved to /data (set by RUBY_LANGUAGE_SERVER_DATA_DIR), so the container works with --read-only --tmpfs /data:uid=1000,gid=1000
36
+
37
+ #### 0.9.8 Sun Nov 15 17:10:46 PST 2026
38
+
39
+ * Fix Content-Length to count bytes, not characters, so replies with non-ASCII text no longer corrupt the LSP stream
40
+ * In stdio mode, send stray $stdout output to stderr so it can't corrupt the LSP stream
41
+ * Docker images are now published only by CI on v* release tags, and signed with cosign
42
+
43
+ #### 0.9.7 Tue Jul 28 20:49:35 PDT 2026
44
+
45
+ * Fix a parsing error
46
+
47
+ #### 0.9.6 Sat Apr 11 12:40:46 PDT 2026
48
+
49
+ * Better lookup - including climbing the current scopes and fallback to global search
50
+
51
+ #### 0.9.5 Tue Feb 10 22:04:44 PST 2026
52
+
53
+ * Fix some scope lookups
54
+ * Update the Gemfile
55
+
56
+ #### 0.9.4 Fri Jan 30 21:09:57 PST 2026
57
+
58
+ * Enhance constant lookup to support namespaced constants in ProjectManager
59
+ * Fix constant location calculation in CodeFile
60
+
61
+ #### 0.9.3 Mon Jan 12 18:12:05 PST 2026
62
+
63
+ * Fix sibling module/class nesting in scope parser
64
+
65
+ #### 0.9.2 Sun Jan 11 10:50:34 PST 2026
66
+
67
+ * Fix namespace class definition lookup (Foo::Bar)
68
+
69
+ #### 0.9.1 Tue Jan 6 19:32:44 PST 2026
70
+
71
+ * Method parameters
72
+ * Better class method handling
73
+
74
+ #### 0.9.0 Wed Dec 31 08:35:27 PST 2025
75
+
76
+ * Add socket support for IPC communication (alpha)
77
+ * Add parameters for methods (alpha)
78
+ * Add RSpec 'let' and 'let!' variable capture to scope parser
79
+ * Improve test coverage with SimpleCov/rcov support
80
+ * Update Ruby to 3.3 (4.0 has some gem build issues). Ruby 4.0 has been required since 0.9.4
81
+ * Update ActiveRecord gem to 8.1
82
+ * Migrated from Ripper to Prism gem
83
+
3
84
  #### 0.4.2 Sat Aug 2 09:20:41 PDT 2025
4
85
 
5
86
  * Update thor (security advisory)
data/FAQ_ROADMAP.md CHANGED
@@ -3,11 +3,13 @@
3
3
  * Getting a definition just looks at the tags - but tags do not include parameters passed in a method - which seems like it should. We are functional, right?
4
4
  * Be smarter about context and completions
5
5
  * Symbol pairs. If I have typed 'foo.bar' a thousand times in my project, the next time I type 'foo.' the IDE had damn well ought to show me 'bar' as a completion option.
6
- * It makes me very sad that I could not get this working using sockets. Tried and tried and failed.
6
+ * Sockets now work: set `LSP_PORT` and the server takes one LSP connection over TCP. It's used for debugging (see "Debugging the server" in the [README](README.md)); the editor clients still use stdio.
7
7
 
8
8
  # Then?
9
9
 
10
10
  * Pay special attention to the project's Gemfile. Install all the gems (we can). Integrate with gem server?
11
11
  * Full scan of installed gems?
12
- * Maybe use a database (sqlite?) to store data and do lookups?
12
+ * ActiveSupport's core extensions (blank?, present?, 3.days) alongside the Ruby core classes. They're plain Ruby, so the existing parser can read them.
13
+ * Go-to-definition for Ruby core methods, through a virtual document for the .rbs file.
14
+ * Know what type a local variable holds, so `name.up` completes String methods.
13
15
  * Integrate class based scope logic. If I'm in Foo < Bar then I should see Bar's methods at just slightly lower priority than Foo's.
data/Gemfile.lock CHANGED
@@ -1,93 +1,112 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ruby_language_server (0.4.2)
5
- activerecord (~> 8.0)
4
+ ruby_language_server (0.9.10)
5
+ activerecord (~> 8.1)
6
6
  amatch
7
7
  bundler
8
8
  etc
9
9
  fuzzy_match
10
10
  json
11
11
  ostruct
12
+ prism (>= 1.8.0)
13
+ rbs (>= 4.0)
12
14
  sqlite3
13
15
 
14
16
  GEM
15
17
  remote: https://rubygems.org/
16
18
  specs:
17
- activemodel (8.0.2)
18
- activesupport (= 8.0.2)
19
- activerecord (8.0.2)
20
- activemodel (= 8.0.2)
21
- activesupport (= 8.0.2)
19
+ activemodel (8.1.4.1)
20
+ activesupport (= 8.1.4.1)
21
+ activerecord (8.1.4.1)
22
+ activemodel (= 8.1.4.1)
23
+ activesupport (= 8.1.4.1)
22
24
  timeout (>= 0.4.0)
23
- activesupport (8.0.2)
25
+ activesupport (8.1.4.1)
24
26
  base64
25
- benchmark (>= 0.3)
26
27
  bigdecimal
27
28
  concurrent-ruby (~> 1.0, >= 1.3.1)
28
29
  connection_pool (>= 2.2.5)
29
30
  drb
30
31
  i18n (>= 1.6, < 2)
32
+ json
31
33
  logger (>= 1.4.2)
32
34
  minitest (>= 5.1)
33
35
  securerandom (>= 0.3)
34
36
  tzinfo (~> 2.0, >= 2.0.5)
35
37
  uri (>= 0.13.1)
36
- amatch (0.4.2)
38
+ amatch (0.6.0)
37
39
  mize
38
- tins (~> 1.0)
40
+ tins (~> 1)
39
41
  ansi (1.5.0)
40
42
  ast (2.4.3)
41
- base64 (0.2.0)
42
- benchmark (0.4.0)
43
- bigdecimal (3.1.9)
43
+ base64 (0.3.0)
44
+ bigdecimal (4.1.3)
44
45
  builder (3.3.0)
46
+ bundler-audit (0.9.3)
47
+ bundler (>= 1.2.0)
48
+ thor (~> 1.0)
45
49
  coderay (1.1.3)
46
- concurrent-ruby (1.3.5)
47
- connection_pool (2.5.3)
48
- debug (1.10.0)
50
+ concurrent-ruby (1.3.8)
51
+ connection_pool (3.0.2)
52
+ debug (1.11.1)
49
53
  irb (~> 1.10)
50
54
  reline (>= 0.3.8)
51
- drb (2.2.1)
52
- etc (1.4.5)
53
- ffi (1.17.2-aarch64-linux-musl)
54
- ffi (1.17.2-x86_64-linux-gnu)
55
- formatador (1.1.0)
55
+ docile (1.4.1)
56
+ drb (2.2.3)
57
+ erb (6.0.6)
58
+ etc (1.4.6)
59
+ ffi (1.17.4-aarch64-linux-gnu)
60
+ ffi (1.17.4-aarch64-linux-musl)
61
+ ffi (1.17.4-arm-linux-gnu)
62
+ ffi (1.17.4-arm-linux-musl)
63
+ ffi (1.17.4-arm64-darwin)
64
+ ffi (1.17.4-x86-linux-gnu)
65
+ ffi (1.17.4-x86-linux-musl)
66
+ ffi (1.17.4-x86_64-darwin)
67
+ ffi (1.17.4-x86_64-linux-gnu)
68
+ ffi (1.17.4-x86_64-linux-musl)
69
+ formatador (1.2.3)
70
+ reline
56
71
  fuzzy_match (2.1.0)
57
- guard (2.19.1)
72
+ guard (2.20.2)
58
73
  formatador (>= 0.2.4)
59
74
  listen (>= 2.7, < 4.0)
60
75
  logger (~> 1.6)
61
76
  lumberjack (>= 1.0.12, < 2.0)
62
77
  nenv (~> 0.1)
63
78
  notiffany (~> 0.0)
64
- ostruct (~> 0.6)
65
79
  pry (>= 0.13.0)
66
80
  shellany (~> 0.0)
67
81
  thor (>= 0.18.1)
68
82
  guard-compat (1.2.1)
69
- guard-minitest (2.4.6)
83
+ guard-minitest (3.0.0)
70
84
  guard-compat (~> 1.2)
71
- minitest (>= 3.0)
85
+ minitest (>= 5.0.4, < 7.0)
72
86
  guard-rubocop (1.5.0)
73
87
  guard (~> 2.0)
74
88
  rubocop (< 2.0)
75
- i18n (1.14.7)
89
+ i18n (1.15.2)
76
90
  concurrent-ruby (~> 1.0)
77
- io-console (0.7.1)
78
- irb (1.13.1)
91
+ io-console (0.8.2)
92
+ irb (1.17.0)
93
+ pp (>= 0.6.0)
94
+ prism (>= 1.3.0)
79
95
  rdoc (>= 4.0.0)
80
96
  reline (>= 0.4.2)
81
- json (2.11.3)
82
- language_server-protocol (3.17.0.4)
97
+ json (3.1.0)
98
+ language_server-protocol (3.17.0.6)
83
99
  lint_roller (1.1.0)
84
- listen (3.9.0)
100
+ listen (3.10.0)
101
+ logger
85
102
  rb-fsevent (~> 0.10, >= 0.10.3)
86
103
  rb-inotify (~> 0.9, >= 0.9.10)
87
104
  logger (1.7.0)
88
- lumberjack (1.2.10)
105
+ lumberjack (1.4.2)
89
106
  method_source (1.1.0)
90
- minitest (5.25.5)
107
+ minitest (6.0.6)
108
+ drb (~> 2.0)
109
+ prism (~> 1.5)
91
110
  minitest-reporters (1.7.1)
92
111
  ansi
93
112
  builder
@@ -98,80 +117,119 @@ GEM
98
117
  notiffany (0.1.3)
99
118
  nenv (~> 0.1)
100
119
  shellany (~> 0.0)
101
- ostruct (0.6.1)
102
- parallel (1.27.0)
103
- parser (3.3.8.0)
120
+ ostruct (0.6.3)
121
+ parallel (2.3.0)
122
+ parser (3.3.13.0)
104
123
  ast (~> 2.4.1)
105
124
  racc
106
- prism (1.4.0)
107
- pry (0.15.2)
125
+ pp (0.6.4)
126
+ prettyprint
127
+ prettyprint (0.2.0)
128
+ prism (1.9.0)
129
+ pry (0.16.0)
108
130
  coderay (~> 1.1)
109
131
  method_source (~> 1.0)
110
- psych (5.1.2)
111
- stringio
132
+ reline (>= 0.6.0)
112
133
  racc (1.8.1)
113
134
  rainbow (3.1.1)
114
- rake (13.2.1)
135
+ rake (13.3.1)
115
136
  rb-fsevent (0.11.2)
116
137
  rb-inotify (0.11.1)
117
138
  ffi (~> 1.0)
118
- rdoc (6.6.3.1)
119
- psych (>= 4.0.0)
120
- regexp_parser (2.10.0)
121
- reline (0.5.10)
139
+ rb-readline (0.5.5)
140
+ rbs (4.1.0)
141
+ logger
142
+ prism (>= 1.6.0)
143
+ tsort
144
+ rdoc (8.0.0)
145
+ erb
146
+ prism (>= 1.6.0)
147
+ rbs (>= 4.0.0)
148
+ tsort
149
+ readline (0.0.4)
150
+ reline
151
+ regexp_parser (2.13.1)
152
+ reline (0.6.3)
122
153
  io-console (~> 0.5)
123
- rubocop (1.75.5)
124
- json (~> 2.3)
154
+ rubocop (1.92.2)
155
+ json (>= 2.3)
125
156
  language_server-protocol (~> 3.17.0.2)
126
157
  lint_roller (~> 1.1.0)
127
- parallel (~> 1.10)
158
+ parallel (>= 1.10)
128
159
  parser (>= 3.3.0.2)
129
160
  rainbow (>= 2.2.2, < 4.0)
130
- regexp_parser (>= 2.9.3, < 3.0)
131
- rubocop-ast (>= 1.44.0, < 2.0)
161
+ regexp_parser (>= 2.11.3, < 3.0)
162
+ rubocop-ast (>= 1.49.0, < 2.0)
132
163
  ruby-progressbar (~> 1.7)
133
164
  unicode-display_width (>= 2.4.0, < 4.0)
134
- rubocop-ast (1.44.1)
165
+ rubocop-ast (1.49.0)
135
166
  parser (>= 3.3.7.2)
136
- prism (~> 1.4)
137
- rubocop-minitest (0.38.0)
167
+ prism (~> 1.7)
168
+ rubocop-minitest (0.38.2)
138
169
  lint_roller (~> 1.1)
139
170
  rubocop (>= 1.75.0, < 2.0)
140
171
  rubocop-ast (>= 1.38.0, < 2.0)
141
- rubocop-performance (1.25.0)
172
+ rubocop-performance (1.26.1)
142
173
  lint_roller (~> 1.1)
143
174
  rubocop (>= 1.75.0, < 2.0)
144
- rubocop-ast (>= 1.38.0, < 2.0)
175
+ rubocop-ast (>= 1.47.1, < 2.0)
145
176
  rubocop-rake (0.7.1)
146
177
  lint_roller (~> 1.1)
147
178
  rubocop (>= 1.72.1)
148
- rubocop-rspec (3.6.0)
179
+ rubocop-rspec (3.10.2)
149
180
  lint_roller (~> 1.1)
150
- rubocop (~> 1.72, >= 1.72.1)
181
+ regexp_parser (>= 2.0)
182
+ rubocop (~> 1.86, >= 1.86.2)
151
183
  ruby-progressbar (1.13.0)
152
184
  securerandom (0.4.1)
153
185
  shellany (0.0.1)
154
- sqlite3 (2.6.0-aarch64-linux-musl)
155
- sqlite3 (2.6.0-x86_64-linux-gnu)
156
- stringio (3.1.1)
186
+ simplecov (0.22.0)
187
+ docile (~> 1.1)
188
+ simplecov-html (~> 0.11)
189
+ simplecov_json_formatter (~> 0.1)
190
+ simplecov-html (0.13.2)
191
+ simplecov_json_formatter (0.1.4)
192
+ sqlite3 (2.10.2-aarch64-linux-gnu)
193
+ sqlite3 (2.10.2-aarch64-linux-musl)
194
+ sqlite3 (2.10.2-arm-linux-gnu)
195
+ sqlite3 (2.10.2-arm-linux-musl)
196
+ sqlite3 (2.10.2-arm64-darwin)
197
+ sqlite3 (2.10.2-x86-linux-gnu)
198
+ sqlite3 (2.10.2-x86-linux-musl)
199
+ sqlite3 (2.10.2-x86_64-darwin)
200
+ sqlite3 (2.10.2-x86_64-linux-gnu)
201
+ sqlite3 (2.10.2-x86_64-linux-musl)
157
202
  sync (0.5.0)
158
- thor (1.4.0)
159
- timeout (0.4.3)
160
- tins (1.38.0)
203
+ thor (1.5.0)
204
+ timeout (0.6.1)
205
+ tins (1.56.0)
161
206
  bigdecimal
207
+ irb
208
+ mize (~> 0.6)
209
+ readline
162
210
  sync
211
+ tsort (0.2.0)
163
212
  tzinfo (2.0.6)
164
213
  concurrent-ruby (~> 1.0)
165
- unicode-display_width (3.1.4)
166
- unicode-emoji (~> 4.0, >= 4.0.4)
167
- unicode-emoji (4.0.4)
168
- uri (1.0.3)
214
+ unicode-display_width (3.3.0)
215
+ unicode-emoji (~> 4.3)
216
+ unicode-emoji (4.3.0)
217
+ uri (1.1.2)
169
218
 
170
219
  PLATFORMS
220
+ aarch64-linux-gnu
171
221
  aarch64-linux-musl
172
- x86_64-linux
222
+ arm-linux-gnu
223
+ arm-linux-musl
224
+ arm64-darwin
225
+ x86-linux-gnu
226
+ x86-linux-musl
227
+ x86_64-darwin
228
+ x86_64-linux-gnu
229
+ x86_64-linux-musl
173
230
 
174
231
  DEPENDENCIES
232
+ bundler-audit
175
233
  debug
176
234
  guard
177
235
  guard-minitest
@@ -179,6 +237,7 @@ DEPENDENCIES
179
237
  minitest
180
238
  minitest-reporters
181
239
  rake
240
+ rb-readline
182
241
  rubocop (> 1.38.0)
183
242
  rubocop-ast (> 1.32.0)
184
243
  rubocop-minitest
@@ -186,6 +245,109 @@ DEPENDENCIES
186
245
  rubocop-rake
187
246
  rubocop-rspec
188
247
  ruby_language_server!
248
+ simplecov
249
+ simplecov_json_formatter
250
+
251
+ CHECKSUMS
252
+ activemodel (8.1.4.1) sha256=063caf105372fbc98b2d789e4be23de63ac5c043f7d9330f04e2caddb7012805
253
+ activerecord (8.1.4.1) sha256=bd65599ca0b5d210937f835d42c7aff69d271741c75aab022730be6cbce67e87
254
+ activesupport (8.1.4.1) sha256=16ac4f341ca65c85a1fcdb8ac73f68891aae9e3c4a6f9c3a27daed8b00017ed7
255
+ amatch (0.6.0) sha256=247996bdce87754a42ed38ce8b22a4b8162e1699a8d353bc36bc96b544bd509d
256
+ ansi (1.5.0) sha256=5408253274e33d9d27d4a98c46d2998266fd51cba58a7eb9d08f50e57ed23592
257
+ ast (2.4.3) sha256=954615157c1d6a382bc27d690d973195e79db7f55e9765ac7c481c60bdb4d383
258
+ base64 (0.3.0) sha256=27337aeabad6ffae05c265c450490628ef3ebd4b67be58257393227588f5a97b
259
+ bigdecimal (4.1.3) sha256=61ebe1e5e559bdc3cc6f2c0ee7f427321fc838f59611c294356eb04d6e21cf66
260
+ builder (3.3.0) sha256=497918d2f9dca528fdca4b88d84e4ef4387256d984b8154e9d5d3fe5a9c8835f
261
+ bundler-audit (0.9.3) sha256=81c8766c71e47d0d28a0f98c7eed028539f21a6ea3cd8f685eb6f42333c9b4e9
262
+ coderay (1.1.3) sha256=dc530018a4684512f8f38143cd2a096c9f02a1fc2459edcfe534787a7fc77d4b
263
+ concurrent-ruby (1.3.8) sha256=b2f1be836e968ccc78ccfce277ea79c72a88633f22306782c16ff23fb415d1e1
264
+ connection_pool (3.0.2) sha256=33fff5ba71a12d2aa26cb72b1db8bba2a1a01823559fb01d29eb74c286e62e0a
265
+ debug (1.11.1) sha256=2e0b0ac6119f2207a6f8ac7d4a73ca8eb4e440f64da0a3136c30343146e952b6
266
+ docile (1.4.1) sha256=96159be799bfa73cdb721b840e9802126e4e03dfc26863db73647204c727f21e
267
+ drb (2.2.3) sha256=0b00d6fdb50995fe4a45dea13663493c841112e4068656854646f418fda13373
268
+ erb (6.0.6) sha256=a9b24986700f5bf127c4f297c5403c3ca41b83b0a316c0cd09a096b56e644ae5
269
+ etc (1.4.6) sha256=0f7e9e7842ea5e3c3bd9bc81746ebb8c65ea29e4c42a93520a0d638129c7de01
270
+ ffi (1.17.4-aarch64-linux-gnu) sha256=b208f06f91ffd8f5e1193da3cae3d2ccfc27fc36fba577baf698d26d91c080df
271
+ ffi (1.17.4-aarch64-linux-musl) sha256=9286b7a615f2676245283aef0a0a3b475ae3aae2bb5448baace630bb77b91f39
272
+ ffi (1.17.4-arm-linux-gnu) sha256=d6dbddf7cb77bf955411af5f187a65b8cd378cb003c15c05697f5feee1cb1564
273
+ ffi (1.17.4-arm-linux-musl) sha256=9d4838ded0465bef6e2426935f6bcc93134b6616785a84ffd2a3d82bc3cf6f95
274
+ ffi (1.17.4-arm64-darwin) sha256=19071aaf1419251b0a46852abf960e77330a3b334d13a4ab51d58b31a937001b
275
+ ffi (1.17.4-x86-linux-gnu) sha256=38e150df5f4ca555e25beca4090823ae09657bceded154e3c52f8631c1ed72cf
276
+ ffi (1.17.4-x86-linux-musl) sha256=fbeec0fc7c795bcf86f623bb18d31ea1820f7bd580e1703a3d3740d527437809
277
+ ffi (1.17.4-x86_64-darwin) sha256=aa70390523cf3235096cf64962b709b4cfbd5c082a2cb2ae714eb0fe2ccda496
278
+ ffi (1.17.4-x86_64-linux-gnu) sha256=9d3db14c2eae074b382fa9c083fe95aec6e0a1451da249eab096c34002bc752d
279
+ ffi (1.17.4-x86_64-linux-musl) sha256=3fdf9888483de005f8ef8d1cf2d3b20d86626af206cbf780f6a6a12439a9c49e
280
+ formatador (1.2.3) sha256=19fa898133c2c26cdbb5d09f6998c1e137ad9427a046663e55adfe18b950d894
281
+ fuzzy_match (2.1.0) sha256=e97e25d0eaee48a5f77ed970d007c7b6ff3c6a6858303fead2d1986859204dfc
282
+ guard (2.20.2) sha256=2d0574d35619669f2f71739a0313290810b9cf66b2263f5d97e815fcce598d4d
283
+ guard-compat (1.2.1) sha256=3ad21ab0070107f92edfd82610b5cdc2fb8e368851e72362ada9703443d646fe
284
+ guard-minitest (3.0.0) sha256=0c418e62a4081a429e4e66ad094a3b66f113423542b43ad7b2df0c87f19d5728
285
+ guard-rubocop (1.5.0) sha256=3041d796dcb5ee31e352de74732250826f5f235b4ff48df9dbf424a6dc736251
286
+ i18n (1.15.2) sha256=00f9eb62412fe593b2a65a97daa75300d37abb8f7202ec748e94b6d46a9dd1b5
287
+ io-console (0.8.2) sha256=d6e3ae7a7cc7574f4b8893b4fca2162e57a825b223a177b7afa236c5ef9814cc
288
+ irb (1.17.0) sha256=168c4ddb93d8a361a045c41d92b2952c7a118fa73f23fe14e55609eb7a863aae
289
+ json (3.1.0) sha256=3ce7ccf8fde58960177a3a756c31f292a4c1e1dedee884547096a5b0604e3bd8
290
+ language_server-protocol (3.17.0.6) sha256=5ef2c0c138f8267e1bc631d3328347d354f96724b0af22f2c79516120443b7f0
291
+ lint_roller (1.1.0) sha256=2c0c845b632a7d172cb849cc90c1bce937a28c5c8ccccb50dfd46a485003cc87
292
+ listen (3.10.0) sha256=c6e182db62143aeccc2e1960033bebe7445309c7272061979bb098d03760c9d2
293
+ logger (1.7.0) sha256=196edec7cc44b66cfb40f9755ce11b392f21f7967696af15d274dde7edff0203
294
+ lumberjack (1.4.2) sha256=40de5ae46321380c835031bcc1370f13bba304d29f2b5f5bb152061a5a191b95
295
+ method_source (1.1.0) sha256=181301c9c45b731b4769bc81e8860e72f9161ad7d66dd99103c9ab84f560f5c5
296
+ minitest (6.0.6) sha256=153ea36d1d987a62942382b61075745042a2b3123b1cd48f4c3675af9cc7d6f1
297
+ minitest-reporters (1.7.1) sha256=5060413a0c95b8c32fe73e0606f3631c173a884d7900e50013e15094eb50562c
298
+ mize (0.6.1) sha256=4031558979ff5426fda24c75a149b4e4c0faf4cacf2fae8938f83866ab94b780
299
+ nenv (0.3.0) sha256=d9de6d8fb7072228463bf61843159419c969edb34b3cef51832b516ae7972765
300
+ notiffany (0.1.3) sha256=d37669605b7f8dcb04e004e6373e2a780b98c776f8eb503ac9578557d7808738
301
+ ostruct (0.6.3) sha256=95a2ed4a4bd1d190784e666b47b2d3f078e4a9efda2fccf18f84ddc6538ed912
302
+ parallel (2.3.0) sha256=f75a3e904101ce6a1ccb6b8dc800cbafd42166d83330192438dcf29395167a6f
303
+ parser (3.3.13.0) sha256=e02f9b63c2fe05b0c68f692ba4df89b3cb113b663964f75d988fbebfd6c3deca
304
+ pp (0.6.4) sha256=dfcb0fce700c41456265922884f9fe195d7fbb0674a3578e6c0f69588e82b570
305
+ prettyprint (0.2.0) sha256=2bc9e15581a94742064a3cc8b0fb9d45aae3d03a1baa6ef80922627a0766f193
306
+ prism (1.9.0) sha256=7b530c6a9f92c24300014919c9dcbc055bf4cdf51ec30aed099b06cd6674ef85
307
+ pry (0.16.0) sha256=d76c69065698ed1f85e717bd33d7942c38a50868f6b0673c636192b3d1b6054e
308
+ racc (1.8.1) sha256=4a7f6929691dbec8b5209a0b373bc2614882b55fc5d2e447a21aaa691303d62f
309
+ rainbow (3.1.1) sha256=039491aa3a89f42efa1d6dec2fc4e62ede96eb6acd95e52f1ad581182b79bc6a
310
+ rake (13.3.1) sha256=8c9e89d09f66a26a01264e7e3480ec0607f0c497a861ef16063604b1b08eb19c
311
+ rb-fsevent (0.11.2) sha256=43900b972e7301d6570f64b850a5aa67833ee7d87b458ee92805d56b7318aefe
312
+ rb-inotify (0.11.1) sha256=a0a700441239b0ff18eb65e3866236cd78613d6b9f78fea1f9ac47a85e47be6e
313
+ rb-readline (0.5.5) sha256=9e9bd7e198bdef0822c46902f6c592b882c1f9777894a4c3dcf5b320824a8793
314
+ rbs (4.1.0) sha256=8baba59008b0643b4ba2090e9b1d0149655b0bbd42eb2ffe42b1d0eb6923fd72
315
+ rdoc (8.0.0) sha256=03bf8c08a9639658855a0cfd77c0abca8325c227693f7f33f82957811348c469
316
+ readline (0.0.4) sha256=6138eef17be2b98298b672c3ea63bf9cb5158d401324f26e1e84f235879c1d6a
317
+ regexp_parser (2.13.1) sha256=5aedb6b7c35688f51e86eef17a15374dfd287c83f4ca644b2c5f3ec50a33b44b
318
+ reline (0.6.3) sha256=1198b04973565b36ec0f11542ab3f5cfeeec34823f4e54cebde90968092b1835
319
+ rubocop (1.92.2) sha256=14fb31eed143a0dc6f78186c550c1715e81cd38f59d05d1165050e445c1f5382
320
+ rubocop-ast (1.49.0) sha256=49c3676d3123a0923d333e20c6c2dbaaae2d2287b475273fddee0c61da9f71fd
321
+ rubocop-minitest (0.38.2) sha256=5a9dfb5a538973d0601aa51e59637d3998bb8df81233edf1ff421504c6280068
322
+ rubocop-performance (1.26.1) sha256=cd19b936ff196df85829d264b522fd4f98b6c89ad271fa52744a8c11b8f71834
323
+ rubocop-rake (0.7.1) sha256=3797f2b6810c3e9df7376c26d5f44f3475eda59eb1adc38e6f62ecf027cbae4d
324
+ rubocop-rspec (3.10.2) sha256=0b3e2ecc592cd10ecbf0095bb58d1e357905276e069643523cc19eb7495f65e2
325
+ ruby-progressbar (1.13.0) sha256=80fc9c47a9b640d6834e0dc7b3c94c9df37f08cb072b7761e4a71e22cff29b33
326
+ ruby_language_server (0.9.10)
327
+ securerandom (0.4.1) sha256=cc5193d414a4341b6e225f0cb4446aceca8e50d5e1888743fac16987638ea0b1
328
+ shellany (0.0.1) sha256=0e127a9132698766d7e752e82cdac8250b6adbd09e6c0a7fbbb6f61964fedee7
329
+ simplecov (0.22.0) sha256=fe2622c7834ff23b98066bb0a854284b2729a569ac659f82621fc22ef36213a5
330
+ simplecov-html (0.13.2) sha256=bd0b8e54e7c2d7685927e8d6286466359b6f16b18cb0df47b508e8d73c777246
331
+ simplecov_json_formatter (0.1.4) sha256=529418fbe8de1713ac2b2d612aa3daa56d316975d307244399fa4838c601b428
332
+ sqlite3 (2.10.2-aarch64-linux-gnu) sha256=e9aea2c2b3476fc875dd8a89313a9a2862818519c0186bfb5b56d6f57bb08d98
333
+ sqlite3 (2.10.2-aarch64-linux-musl) sha256=4986fc40cdf21342362b72a941df28e95cfe0e644f3ad2532d948b157c39dbee
334
+ sqlite3 (2.10.2-arm-linux-gnu) sha256=762f609ef891463226b472d3df66aea84d5466ff4376d3ccf4a059718c4ce9c9
335
+ sqlite3 (2.10.2-arm-linux-musl) sha256=833623eaf1157b1b85d1c0830e3e8f9beb3bb95a9bec3d252f20557a50e9803a
336
+ sqlite3 (2.10.2-arm64-darwin) sha256=5b0d235ea037e6dcd1b8387a19d73be571917db9f93044d35741cf933a21a37d
337
+ sqlite3 (2.10.2-x86-linux-gnu) sha256=46a02a29e9ae452824082388be5c24fd26f133b14bdd268610c6aa9a8d924c44
338
+ sqlite3 (2.10.2-x86-linux-musl) sha256=38980cf01eb2e4ac1c0755964d60b3d743ccf00686798a626bab852ff4cd3d1e
339
+ sqlite3 (2.10.2-x86_64-darwin) sha256=fd2c67b49d313031af112e172c83ab321681a2b4996bf882eefac50be7bea08f
340
+ sqlite3 (2.10.2-x86_64-linux-gnu) sha256=ca92731ab464df9cae503fa1a439a549e2724f6953c8c05a7769b59366e38f15
341
+ sqlite3 (2.10.2-x86_64-linux-musl) sha256=b9f8fc62f3e0eb8966b41de251b492b4c8e9d1b23559beb6e150ad7f8d590941
342
+ sync (0.5.0) sha256=668356cc07c59ac7ed9ecf34fec3929831f179c07adb1f3e1c3b7a1609a638fd
343
+ thor (1.5.0) sha256=e3a9e55fe857e44859ce104a84675ab6e8cd59c650a49106a05f55f136425e73
344
+ timeout (0.6.1) sha256=78f57368a7e7bbadec56971f78a3f5ecbcfb59b7fcbb0a3ed6ddc08a5094accb
345
+ tins (1.56.0) sha256=5ae6cf81cab8fd4b63abd2ade4eaf75543e6973c664276d949ec7027e029b46e
346
+ tsort (0.2.0) sha256=9650a793f6859a43b6641671278f79cfead60ac714148aabe4e3f0060480089f
347
+ tzinfo (2.0.6) sha256=8daf828cc77bcf7d63b0e3bdb6caa47e2272dcfaf4fbfe46f8c3a9df087a829b
348
+ unicode-display_width (3.3.0) sha256=4b7aa66a4b11db50f6f7e98411215cd0dd10eaecb665d36eec5bcacb3fa0b613
349
+ unicode-emoji (4.3.0) sha256=11c02fa73290378c066bb0562cd4c87d8e1b706fbbe0059ca12746a4244de8ce
350
+ uri (1.1.2) sha256=89292e98eabbef6248b0a0ed5e7e398e152f83f17560023a6d94a7f492b169fb
189
351
 
190
352
  BUNDLED WITH
191
- 2.6.8
353
+ 4.0.3
data/Guardfile CHANGED
@@ -18,7 +18,7 @@
18
18
  # and, you'll have to watch "config/Guardfile" instead of "Guardfile"
19
19
 
20
20
  group :red_green_refactor, halt_on_fail: true do
21
- guard :minitest, all_after_pass: true, cli: '--guard' do
21
+ guard :minitest, all_after_pass: true, spring: 'rake test' do
22
22
  # with Minitest::Unit
23
23
  # watch(%r{^test/(.*)\/?test_(.*)\.rb$})
24
24
  # watch(%r{^lib/(.*/)?([^/]+)\.rb$}) { |m| "test/#{m[1]}test_#{m[2]}.rb" }
data/Makefile CHANGED
@@ -1,12 +1,18 @@
1
+ .PHONY: image guard continuous_development console test coverage rubocop audit shell run_in_shell server debug_server gem gem_release
1
2
  PROJECT_NAME=ruby_language_server
2
- LOCAL_LINK=-v $(PWD):/tmp/src -w /tmp/src
3
+ # The image runs as UID 1000. Dev and test containers run as root, because they write
4
+ # coverage/ and logs into the mounted checkout, which CI runners own under another UID.
5
+ LOCAL_LINK=--user root -v $(PWD):/tmp/src -w /tmp/src
3
6
 
4
7
  image:
5
8
  docker build -t $(PROJECT_NAME) .
6
9
 
10
+ force_rebuild_image:
11
+ docker build --no-cache -t $(PROJECT_NAME) .
12
+
7
13
  guard: image
8
14
  echo > active_record.log
9
- docker run -it --rm $(LOCAL_LINK) -e LOG_LEVEL=DEBUG $(PROJECT_NAME) bundle exec guard
15
+ ./bin/run_in_shell bundle exec guard
10
16
  echo > active_record.log
11
17
 
12
18
  continuous_development: image
@@ -20,27 +26,50 @@ continuous_development: image
20
26
  done
21
27
 
22
28
  console: image
23
- docker run -it --rm $(LOCAL_LINK) $(PROJECT_NAME) bin/console
29
+ ./bin/run_in_shell bin/console
24
30
 
31
+ # Note that we don't use run_in_shell because those are interactive and CI won't like that.
25
32
  test: image
26
- docker run -it --rm $(LOCAL_LINK) $(PROJECT_NAME) sh -c 'bundle exec rake test && bundle exec rubocop'
33
+ docker run --rm $(LOCAL_LINK) $(PROJECT_NAME) sh -c "bundle exec rake test && bundle exec rubocop"
34
+
35
+ coverage: image
36
+ docker run --rm $(LOCAL_LINK) $(PROJECT_NAME) sh -c "COVERAGE=true bundle exec rake test"
37
+
38
+ rubocop: image
39
+ docker run --rm $(LOCAL_LINK) $(PROJECT_NAME) sh -c "bundle exec rubocop"
40
+
41
+ # Checks Gemfile.lock for gems with known vulnerabilities, using a freshly fetched ruby-advisory-db.
42
+ audit: image
43
+ docker run --rm $(LOCAL_LINK) $(PROJECT_NAME) sh -c "bundle exec bundle-audit check --update"
27
44
 
28
45
  shell: image
29
- docker run -it --rm $(LOCAL_LINK) $(PROJECT_NAME) sh
46
+ ./bin/run_in_shell sh
47
+
48
+ run_in_shell:
49
+ docker run -it --rm $(LOCAL_LINK) $(PROJECT_NAME) sh -c "${SHELL_COMMAND}"
30
50
 
31
51
  # Just to make sure it works.
32
52
  server: image
33
- docker run -it --rm $(LOCAL_LINK) $(PROJECT_NAME)
53
+ ./bin/run_in_shell
54
+
55
+ # Runs this checkout's code (mounted, so no rebuild) under the rdbg debugger, with LSP over TCP.
56
+ # VS Code's "Debug server" configuration runs this and attaches; see README "Debugging the server".
57
+ # PROJECT is the project the client opens; it is mounted read-only at /project.
58
+ DEBUG_LSP_PORT=7658
59
+ DEBUG_RDBG_PORT=12345
60
+ PROJECT?=$(PWD)
61
+ debug_server: image
62
+ -docker rm -f rls-debug >/dev/null 2>&1
63
+ docker run --rm -i --name rls-debug $(LOCAL_LINK) \
64
+ --mount type=bind,source="$(PROJECT)",target=/project,readonly \
65
+ -p 127.0.0.1:$(DEBUG_LSP_PORT):$(DEBUG_LSP_PORT) -p 127.0.0.1:$(DEBUG_RDBG_PORT):$(DEBUG_RDBG_PORT) \
66
+ -e LSP_PORT=$(DEBUG_LSP_PORT) -e LOG_LEVEL=DEBUG -e RUBY_DEBUG_FORK_MODE=parent \
67
+ $(PROJECT_NAME) bundle exec rdbg --open --host 0.0.0.0 --port $(DEBUG_RDBG_PORT) --nonstop -- exe/ruby_language_server
34
68
 
35
69
  gem: image
36
70
  rm -f $(PROJECT_NAME)*.gem
37
- docker run $(LOCAL_LINK) $(PROJECT_NAME) gem build $(PROJECT_NAME)
71
+ ./bin/run_in_shell gem build $(PROJECT_NAME)
38
72
 
39
73
  # Requires rubygems be installed on host
40
74
  gem_release: gem
41
- docker run -it --rm $(LOCAL_LINK) $(PROJECT_NAME) gem push $(PROJECT_NAME)*.gem
42
-
43
- publish_cross_platform_image:
44
- (docker buildx ls | grep mybuilder) || docker buildx create --name mybuilder
45
- docker buildx use mybuilder
46
- docker buildx build --push --platform linux/amd64,linux/arm64/v8 -t kwerle/$(PROJECT_NAME) .
75
+ ./bin/run_in_shell gem push $(PROJECT_NAME)*.gem