ruby_language_server 0.4.2 → 0.9.9
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 +4 -4
- data/CHANGELOG.txt +77 -0
- data/FAQ_ROADMAP.md +1 -2
- data/Gemfile.lock +226 -70
- data/Guardfile +1 -1
- data/Makefile +38 -13
- data/README.md +77 -7
- data/bin/rdbg +8 -0
- data/bin/run_in_shell +5 -0
- data/exe/ruby_language_server +1 -1
- data/lib/config/initializers/active_record.rb +16 -16
- data/lib/db/schema.rb +5 -1
- data/lib/ruby_language_server/application.rb +3 -4
- data/lib/ruby_language_server/code_file.rb +41 -16
- data/lib/ruby_language_server/completion.rb +92 -13
- data/lib/ruby_language_server/hover.rb +59 -0
- data/lib/ruby_language_server/io.rb +184 -100
- data/lib/ruby_language_server/line_context.rb +14 -0
- data/lib/ruby_language_server/project_manager.rb +330 -131
- data/lib/ruby_language_server/scope_data/base.rb +12 -4
- data/lib/ruby_language_server/scope_data/scope.rb +65 -14
- data/lib/ruby_language_server/scope_parser.rb +399 -203
- data/lib/ruby_language_server/scope_parser_commands/rails_commands.rb +7 -8
- data/lib/ruby_language_server/scope_parser_commands/rake_commands.rb +16 -20
- data/lib/ruby_language_server/scope_parser_commands/rspec_commands.rb +24 -13
- data/lib/ruby_language_server/scope_parser_commands/ruby_commands.rb +16 -42
- data/lib/ruby_language_server/server.rb +52 -29
- data/lib/ruby_language_server/version.rb +1 -1
- data/ruby_language_server.gemspec +7 -3
- metadata +64 -6
- data/lib/ruby_language_server/gem_installer.rb +0 -38
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9a7d97c691bd4521a2e8c1530a9f393f1cd9a8f95c82e43f4c2d19f250b96107
|
|
4
|
+
data.tar.gz: ceb2e4e69bfb70eedc92228dbeb70e6ce1525ed2cdf1eef5dceb11546fafb795
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 32ea5d3d4518515baf5d2c0801021670b4cfec18031995f13c5ec2a129b640906a3942469dcf26577cd397bdaec5002f3079f0faef2add125f0e9e50871eb496
|
|
7
|
+
data.tar.gz: 6c7abcae6d89c7268c7793bd29a216ed8667ab3c1b0280ffe6f530356c89082b05b6a7335b93081fea792cf2f9134572665c4ecdae14736c3ee381dac2bbf72b
|
data/CHANGELOG.txt
CHANGED
|
@@ -1,5 +1,82 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
#### 0.9.9 Tue Nov 17 08:09:13 PST 2026
|
|
4
|
+
|
|
5
|
+
* Hover: show what a name refers to, from the existing index
|
|
6
|
+
* Find definitions and completions inherited from superclasses
|
|
7
|
+
* 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
|
|
8
|
+
* Methods defined inside class << self are class methods
|
|
9
|
+
* Top-level variables now complete. A completion with no candidates returns null
|
|
10
|
+
* 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
|
|
11
|
+
* Definition results point at the column where the name is defined, not column 0
|
|
12
|
+
* Positions now use the right line when finding the scope for completions and definitions. LSP lines are 0-based
|
|
13
|
+
* Document symbols: return [] when there are none, and leave out symbols with blank names, which made VS Code reject the whole list
|
|
14
|
+
* Read LSP headers properly: any order or case, and more than one header. Exit when the client closes the stream
|
|
15
|
+
* Keep the index in step with files created, changed or deleted outside the editor, when the client supports watched files
|
|
16
|
+
* The project scan uses rootUri (or the first workspace folder), not the deprecated rootPath
|
|
17
|
+
* The project scan skips only spec and test files and vendor/. It used to also skip files such as inspect.rb and latest.rb
|
|
18
|
+
* The project scan logs and skips a file it can't index, instead of retrying it forever
|
|
19
|
+
* Looking up a file the server hasn't seen no longer stores an empty record for it
|
|
20
|
+
* Child scopes are matched by path and only within the same file
|
|
21
|
+
* A quote in the word being completed no longer causes an SQL error
|
|
22
|
+
* Module completions are logged at debug level, not error
|
|
23
|
+
* 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)
|
|
24
|
+
* Reply to requests the server doesn't handle with a MethodNotFound error, instead of never replying
|
|
25
|
+
* Advertise only the capabilities the server implements: definitions, document symbols, hover and completion. Nothing a client could use was removed
|
|
26
|
+
* The initialize result now includes serverInfo (name and version)
|
|
27
|
+
* Handle the exit notification: exit 0 after shutdown, 1 otherwise. Requests after shutdown get an InvalidRequest error
|
|
28
|
+
* 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
|
|
29
|
+
* The SQLite lock timeout is now 5 seconds. It was 30 ms, because the value was read as milliseconds
|
|
30
|
+
* The Docker image runs as non-root UID 1000
|
|
31
|
+
* 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
|
|
32
|
+
|
|
33
|
+
#### 0.9.8 Sun Nov 15 17:10:46 PST 2026
|
|
34
|
+
|
|
35
|
+
* Fix Content-Length to count bytes, not characters, so replies with non-ASCII text no longer corrupt the LSP stream
|
|
36
|
+
* In stdio mode, send stray $stdout output to stderr so it can't corrupt the LSP stream
|
|
37
|
+
* Docker images are now published only by CI on v* release tags, and signed with cosign
|
|
38
|
+
|
|
39
|
+
#### 0.9.7 Tue Jul 28 20:49:35 PDT 2026
|
|
40
|
+
|
|
41
|
+
* Fix a parsing error
|
|
42
|
+
|
|
43
|
+
#### 0.9.6 Sat Apr 11 12:40:46 PDT 2026
|
|
44
|
+
|
|
45
|
+
* Better lookup - including climbing the current scopes and fallback to global search
|
|
46
|
+
|
|
47
|
+
#### 0.9.5 Tue Feb 10 22:04:44 PST 2026
|
|
48
|
+
|
|
49
|
+
* Fix some scope lookups
|
|
50
|
+
* Update the Gemfile
|
|
51
|
+
|
|
52
|
+
#### 0.9.4 Fri Jan 30 21:09:57 PST 2026
|
|
53
|
+
|
|
54
|
+
* Enhance constant lookup to support namespaced constants in ProjectManager
|
|
55
|
+
* Fix constant location calculation in CodeFile
|
|
56
|
+
|
|
57
|
+
#### 0.9.3 Mon Jan 12 18:12:05 PST 2026
|
|
58
|
+
|
|
59
|
+
* Fix sibling module/class nesting in scope parser
|
|
60
|
+
|
|
61
|
+
#### 0.9.2 Sun Jan 11 10:50:34 PST 2026
|
|
62
|
+
|
|
63
|
+
* Fix namespace class definition lookup (Foo::Bar)
|
|
64
|
+
|
|
65
|
+
#### 0.9.1 Tue Jan 6 19:32:44 PST 2026
|
|
66
|
+
|
|
67
|
+
* Method parameters
|
|
68
|
+
* Better class method handling
|
|
69
|
+
|
|
70
|
+
#### 0.9.0 Wed Dec 31 08:35:27 PST 2025
|
|
71
|
+
|
|
72
|
+
* Add socket support for IPC communication (alpha)
|
|
73
|
+
* Add parameters for methods (alpha)
|
|
74
|
+
* Add RSpec 'let' and 'let!' variable capture to scope parser
|
|
75
|
+
* Improve test coverage with SimpleCov/rcov support
|
|
76
|
+
* Update Ruby to 3.3 (4.0 has some gem build issues). Ruby 4.0 has been required since 0.9.4
|
|
77
|
+
* Update ActiveRecord gem to 8.1
|
|
78
|
+
* Migrated from Ripper to Prism gem
|
|
79
|
+
|
|
3
80
|
#### 0.4.2 Sat Aug 2 09:20:41 PDT 2025
|
|
4
81
|
|
|
5
82
|
* Update thor (security advisory)
|
data/FAQ_ROADMAP.md
CHANGED
|
@@ -3,11 +3,10 @@
|
|
|
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
|
-
*
|
|
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?
|
|
13
12
|
* 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,108 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
ruby_language_server (0.
|
|
5
|
-
activerecord (~> 8.
|
|
4
|
+
ruby_language_server (0.9.9)
|
|
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)
|
|
12
13
|
sqlite3
|
|
13
14
|
|
|
14
15
|
GEM
|
|
15
16
|
remote: https://rubygems.org/
|
|
16
17
|
specs:
|
|
17
|
-
activemodel (8.
|
|
18
|
-
activesupport (= 8.
|
|
19
|
-
activerecord (8.
|
|
20
|
-
activemodel (= 8.
|
|
21
|
-
activesupport (= 8.
|
|
18
|
+
activemodel (8.1.4.1)
|
|
19
|
+
activesupport (= 8.1.4.1)
|
|
20
|
+
activerecord (8.1.4.1)
|
|
21
|
+
activemodel (= 8.1.4.1)
|
|
22
|
+
activesupport (= 8.1.4.1)
|
|
22
23
|
timeout (>= 0.4.0)
|
|
23
|
-
activesupport (8.
|
|
24
|
+
activesupport (8.1.4.1)
|
|
24
25
|
base64
|
|
25
|
-
benchmark (>= 0.3)
|
|
26
26
|
bigdecimal
|
|
27
27
|
concurrent-ruby (~> 1.0, >= 1.3.1)
|
|
28
28
|
connection_pool (>= 2.2.5)
|
|
29
29
|
drb
|
|
30
30
|
i18n (>= 1.6, < 2)
|
|
31
|
+
json
|
|
31
32
|
logger (>= 1.4.2)
|
|
32
33
|
minitest (>= 5.1)
|
|
33
34
|
securerandom (>= 0.3)
|
|
34
35
|
tzinfo (~> 2.0, >= 2.0.5)
|
|
35
36
|
uri (>= 0.13.1)
|
|
36
|
-
amatch (0.
|
|
37
|
+
amatch (0.6.0)
|
|
37
38
|
mize
|
|
38
|
-
tins (~> 1
|
|
39
|
+
tins (~> 1)
|
|
39
40
|
ansi (1.5.0)
|
|
40
41
|
ast (2.4.3)
|
|
41
|
-
base64 (0.
|
|
42
|
-
|
|
43
|
-
bigdecimal (3.1.9)
|
|
42
|
+
base64 (0.3.0)
|
|
43
|
+
bigdecimal (4.1.3)
|
|
44
44
|
builder (3.3.0)
|
|
45
45
|
coderay (1.1.3)
|
|
46
|
-
concurrent-ruby (1.3.
|
|
47
|
-
connection_pool (
|
|
48
|
-
debug (1.
|
|
46
|
+
concurrent-ruby (1.3.8)
|
|
47
|
+
connection_pool (3.0.2)
|
|
48
|
+
debug (1.11.1)
|
|
49
49
|
irb (~> 1.10)
|
|
50
50
|
reline (>= 0.3.8)
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
51
|
+
docile (1.4.1)
|
|
52
|
+
drb (2.2.3)
|
|
53
|
+
erb (6.0.6)
|
|
54
|
+
etc (1.4.6)
|
|
55
|
+
ffi (1.17.4-aarch64-linux-gnu)
|
|
56
|
+
ffi (1.17.4-aarch64-linux-musl)
|
|
57
|
+
ffi (1.17.4-arm-linux-gnu)
|
|
58
|
+
ffi (1.17.4-arm-linux-musl)
|
|
59
|
+
ffi (1.17.4-arm64-darwin)
|
|
60
|
+
ffi (1.17.4-x86-linux-gnu)
|
|
61
|
+
ffi (1.17.4-x86-linux-musl)
|
|
62
|
+
ffi (1.17.4-x86_64-darwin)
|
|
63
|
+
ffi (1.17.4-x86_64-linux-gnu)
|
|
64
|
+
ffi (1.17.4-x86_64-linux-musl)
|
|
65
|
+
formatador (1.2.3)
|
|
66
|
+
reline
|
|
56
67
|
fuzzy_match (2.1.0)
|
|
57
|
-
guard (2.
|
|
68
|
+
guard (2.20.2)
|
|
58
69
|
formatador (>= 0.2.4)
|
|
59
70
|
listen (>= 2.7, < 4.0)
|
|
60
71
|
logger (~> 1.6)
|
|
61
72
|
lumberjack (>= 1.0.12, < 2.0)
|
|
62
73
|
nenv (~> 0.1)
|
|
63
74
|
notiffany (~> 0.0)
|
|
64
|
-
ostruct (~> 0.6)
|
|
65
75
|
pry (>= 0.13.0)
|
|
66
76
|
shellany (~> 0.0)
|
|
67
77
|
thor (>= 0.18.1)
|
|
68
78
|
guard-compat (1.2.1)
|
|
69
|
-
guard-minitest (
|
|
79
|
+
guard-minitest (3.0.0)
|
|
70
80
|
guard-compat (~> 1.2)
|
|
71
|
-
minitest (>=
|
|
81
|
+
minitest (>= 5.0.4, < 7.0)
|
|
72
82
|
guard-rubocop (1.5.0)
|
|
73
83
|
guard (~> 2.0)
|
|
74
84
|
rubocop (< 2.0)
|
|
75
|
-
i18n (1.
|
|
85
|
+
i18n (1.15.2)
|
|
76
86
|
concurrent-ruby (~> 1.0)
|
|
77
|
-
io-console (0.
|
|
78
|
-
irb (1.
|
|
87
|
+
io-console (0.8.2)
|
|
88
|
+
irb (1.17.0)
|
|
89
|
+
pp (>= 0.6.0)
|
|
90
|
+
prism (>= 1.3.0)
|
|
79
91
|
rdoc (>= 4.0.0)
|
|
80
92
|
reline (>= 0.4.2)
|
|
81
|
-
json (
|
|
82
|
-
language_server-protocol (3.17.0.
|
|
93
|
+
json (3.1.0)
|
|
94
|
+
language_server-protocol (3.17.0.6)
|
|
83
95
|
lint_roller (1.1.0)
|
|
84
|
-
listen (3.
|
|
96
|
+
listen (3.10.0)
|
|
97
|
+
logger
|
|
85
98
|
rb-fsevent (~> 0.10, >= 0.10.3)
|
|
86
99
|
rb-inotify (~> 0.9, >= 0.9.10)
|
|
87
100
|
logger (1.7.0)
|
|
88
|
-
lumberjack (1.2
|
|
101
|
+
lumberjack (1.4.2)
|
|
89
102
|
method_source (1.1.0)
|
|
90
|
-
minitest (
|
|
103
|
+
minitest (6.0.6)
|
|
104
|
+
drb (~> 2.0)
|
|
105
|
+
prism (~> 1.5)
|
|
91
106
|
minitest-reporters (1.7.1)
|
|
92
107
|
ansi
|
|
93
108
|
builder
|
|
@@ -98,78 +113,116 @@ GEM
|
|
|
98
113
|
notiffany (0.1.3)
|
|
99
114
|
nenv (~> 0.1)
|
|
100
115
|
shellany (~> 0.0)
|
|
101
|
-
ostruct (0.6.
|
|
102
|
-
parallel (
|
|
103
|
-
parser (3.3.
|
|
116
|
+
ostruct (0.6.3)
|
|
117
|
+
parallel (2.3.0)
|
|
118
|
+
parser (3.3.13.0)
|
|
104
119
|
ast (~> 2.4.1)
|
|
105
120
|
racc
|
|
106
|
-
|
|
107
|
-
|
|
121
|
+
pp (0.6.4)
|
|
122
|
+
prettyprint
|
|
123
|
+
prettyprint (0.2.0)
|
|
124
|
+
prism (1.9.0)
|
|
125
|
+
pry (0.16.0)
|
|
108
126
|
coderay (~> 1.1)
|
|
109
127
|
method_source (~> 1.0)
|
|
110
|
-
|
|
111
|
-
stringio
|
|
128
|
+
reline (>= 0.6.0)
|
|
112
129
|
racc (1.8.1)
|
|
113
130
|
rainbow (3.1.1)
|
|
114
|
-
rake (13.
|
|
131
|
+
rake (13.3.1)
|
|
115
132
|
rb-fsevent (0.11.2)
|
|
116
133
|
rb-inotify (0.11.1)
|
|
117
134
|
ffi (~> 1.0)
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
135
|
+
rb-readline (0.5.5)
|
|
136
|
+
rbs (4.1.0)
|
|
137
|
+
logger
|
|
138
|
+
prism (>= 1.6.0)
|
|
139
|
+
tsort
|
|
140
|
+
rdoc (8.0.0)
|
|
141
|
+
erb
|
|
142
|
+
prism (>= 1.6.0)
|
|
143
|
+
rbs (>= 4.0.0)
|
|
144
|
+
tsort
|
|
145
|
+
readline (0.0.4)
|
|
146
|
+
reline
|
|
147
|
+
regexp_parser (2.13.1)
|
|
148
|
+
reline (0.6.3)
|
|
122
149
|
io-console (~> 0.5)
|
|
123
|
-
rubocop (1.
|
|
124
|
-
json (
|
|
150
|
+
rubocop (1.92.2)
|
|
151
|
+
json (>= 2.3)
|
|
125
152
|
language_server-protocol (~> 3.17.0.2)
|
|
126
153
|
lint_roller (~> 1.1.0)
|
|
127
|
-
parallel (
|
|
154
|
+
parallel (>= 1.10)
|
|
128
155
|
parser (>= 3.3.0.2)
|
|
129
156
|
rainbow (>= 2.2.2, < 4.0)
|
|
130
|
-
regexp_parser (>= 2.
|
|
131
|
-
rubocop-ast (>= 1.
|
|
157
|
+
regexp_parser (>= 2.11.3, < 3.0)
|
|
158
|
+
rubocop-ast (>= 1.49.0, < 2.0)
|
|
132
159
|
ruby-progressbar (~> 1.7)
|
|
133
160
|
unicode-display_width (>= 2.4.0, < 4.0)
|
|
134
|
-
rubocop-ast (1.
|
|
161
|
+
rubocop-ast (1.49.0)
|
|
135
162
|
parser (>= 3.3.7.2)
|
|
136
|
-
prism (~> 1.
|
|
137
|
-
rubocop-minitest (0.38.
|
|
163
|
+
prism (~> 1.7)
|
|
164
|
+
rubocop-minitest (0.38.2)
|
|
138
165
|
lint_roller (~> 1.1)
|
|
139
166
|
rubocop (>= 1.75.0, < 2.0)
|
|
140
167
|
rubocop-ast (>= 1.38.0, < 2.0)
|
|
141
|
-
rubocop-performance (1.
|
|
168
|
+
rubocop-performance (1.26.1)
|
|
142
169
|
lint_roller (~> 1.1)
|
|
143
170
|
rubocop (>= 1.75.0, < 2.0)
|
|
144
|
-
rubocop-ast (>= 1.
|
|
171
|
+
rubocop-ast (>= 1.47.1, < 2.0)
|
|
145
172
|
rubocop-rake (0.7.1)
|
|
146
173
|
lint_roller (~> 1.1)
|
|
147
174
|
rubocop (>= 1.72.1)
|
|
148
|
-
rubocop-rspec (3.
|
|
175
|
+
rubocop-rspec (3.10.2)
|
|
149
176
|
lint_roller (~> 1.1)
|
|
150
|
-
|
|
177
|
+
regexp_parser (>= 2.0)
|
|
178
|
+
rubocop (~> 1.86, >= 1.86.2)
|
|
151
179
|
ruby-progressbar (1.13.0)
|
|
152
180
|
securerandom (0.4.1)
|
|
153
181
|
shellany (0.0.1)
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
182
|
+
simplecov (0.22.0)
|
|
183
|
+
docile (~> 1.1)
|
|
184
|
+
simplecov-html (~> 0.11)
|
|
185
|
+
simplecov_json_formatter (~> 0.1)
|
|
186
|
+
simplecov-html (0.13.2)
|
|
187
|
+
simplecov_json_formatter (0.1.4)
|
|
188
|
+
sqlite3 (2.10.2-aarch64-linux-gnu)
|
|
189
|
+
sqlite3 (2.10.2-aarch64-linux-musl)
|
|
190
|
+
sqlite3 (2.10.2-arm-linux-gnu)
|
|
191
|
+
sqlite3 (2.10.2-arm-linux-musl)
|
|
192
|
+
sqlite3 (2.10.2-arm64-darwin)
|
|
193
|
+
sqlite3 (2.10.2-x86-linux-gnu)
|
|
194
|
+
sqlite3 (2.10.2-x86-linux-musl)
|
|
195
|
+
sqlite3 (2.10.2-x86_64-darwin)
|
|
196
|
+
sqlite3 (2.10.2-x86_64-linux-gnu)
|
|
197
|
+
sqlite3 (2.10.2-x86_64-linux-musl)
|
|
157
198
|
sync (0.5.0)
|
|
158
|
-
thor (1.
|
|
159
|
-
timeout (0.
|
|
160
|
-
tins (1.
|
|
199
|
+
thor (1.5.0)
|
|
200
|
+
timeout (0.6.1)
|
|
201
|
+
tins (1.56.0)
|
|
161
202
|
bigdecimal
|
|
203
|
+
irb
|
|
204
|
+
mize (~> 0.6)
|
|
205
|
+
readline
|
|
162
206
|
sync
|
|
207
|
+
tsort (0.2.0)
|
|
163
208
|
tzinfo (2.0.6)
|
|
164
209
|
concurrent-ruby (~> 1.0)
|
|
165
|
-
unicode-display_width (3.
|
|
166
|
-
unicode-emoji (~> 4.
|
|
167
|
-
unicode-emoji (4.0
|
|
168
|
-
uri (1.
|
|
210
|
+
unicode-display_width (3.3.0)
|
|
211
|
+
unicode-emoji (~> 4.3)
|
|
212
|
+
unicode-emoji (4.3.0)
|
|
213
|
+
uri (1.1.2)
|
|
169
214
|
|
|
170
215
|
PLATFORMS
|
|
216
|
+
aarch64-linux-gnu
|
|
171
217
|
aarch64-linux-musl
|
|
172
|
-
|
|
218
|
+
arm-linux-gnu
|
|
219
|
+
arm-linux-musl
|
|
220
|
+
arm64-darwin
|
|
221
|
+
x86-linux-gnu
|
|
222
|
+
x86-linux-musl
|
|
223
|
+
x86_64-darwin
|
|
224
|
+
x86_64-linux-gnu
|
|
225
|
+
x86_64-linux-musl
|
|
173
226
|
|
|
174
227
|
DEPENDENCIES
|
|
175
228
|
debug
|
|
@@ -179,6 +232,7 @@ DEPENDENCIES
|
|
|
179
232
|
minitest
|
|
180
233
|
minitest-reporters
|
|
181
234
|
rake
|
|
235
|
+
rb-readline
|
|
182
236
|
rubocop (> 1.38.0)
|
|
183
237
|
rubocop-ast (> 1.32.0)
|
|
184
238
|
rubocop-minitest
|
|
@@ -186,6 +240,108 @@ DEPENDENCIES
|
|
|
186
240
|
rubocop-rake
|
|
187
241
|
rubocop-rspec
|
|
188
242
|
ruby_language_server!
|
|
243
|
+
simplecov
|
|
244
|
+
simplecov_json_formatter
|
|
245
|
+
|
|
246
|
+
CHECKSUMS
|
|
247
|
+
activemodel (8.1.4.1) sha256=063caf105372fbc98b2d789e4be23de63ac5c043f7d9330f04e2caddb7012805
|
|
248
|
+
activerecord (8.1.4.1) sha256=bd65599ca0b5d210937f835d42c7aff69d271741c75aab022730be6cbce67e87
|
|
249
|
+
activesupport (8.1.4.1) sha256=16ac4f341ca65c85a1fcdb8ac73f68891aae9e3c4a6f9c3a27daed8b00017ed7
|
|
250
|
+
amatch (0.6.0) sha256=247996bdce87754a42ed38ce8b22a4b8162e1699a8d353bc36bc96b544bd509d
|
|
251
|
+
ansi (1.5.0) sha256=5408253274e33d9d27d4a98c46d2998266fd51cba58a7eb9d08f50e57ed23592
|
|
252
|
+
ast (2.4.3) sha256=954615157c1d6a382bc27d690d973195e79db7f55e9765ac7c481c60bdb4d383
|
|
253
|
+
base64 (0.3.0) sha256=27337aeabad6ffae05c265c450490628ef3ebd4b67be58257393227588f5a97b
|
|
254
|
+
bigdecimal (4.1.3) sha256=61ebe1e5e559bdc3cc6f2c0ee7f427321fc838f59611c294356eb04d6e21cf66
|
|
255
|
+
builder (3.3.0) sha256=497918d2f9dca528fdca4b88d84e4ef4387256d984b8154e9d5d3fe5a9c8835f
|
|
256
|
+
coderay (1.1.3) sha256=dc530018a4684512f8f38143cd2a096c9f02a1fc2459edcfe534787a7fc77d4b
|
|
257
|
+
concurrent-ruby (1.3.8) sha256=b2f1be836e968ccc78ccfce277ea79c72a88633f22306782c16ff23fb415d1e1
|
|
258
|
+
connection_pool (3.0.2) sha256=33fff5ba71a12d2aa26cb72b1db8bba2a1a01823559fb01d29eb74c286e62e0a
|
|
259
|
+
debug (1.11.1) sha256=2e0b0ac6119f2207a6f8ac7d4a73ca8eb4e440f64da0a3136c30343146e952b6
|
|
260
|
+
docile (1.4.1) sha256=96159be799bfa73cdb721b840e9802126e4e03dfc26863db73647204c727f21e
|
|
261
|
+
drb (2.2.3) sha256=0b00d6fdb50995fe4a45dea13663493c841112e4068656854646f418fda13373
|
|
262
|
+
erb (6.0.6) sha256=a9b24986700f5bf127c4f297c5403c3ca41b83b0a316c0cd09a096b56e644ae5
|
|
263
|
+
etc (1.4.6) sha256=0f7e9e7842ea5e3c3bd9bc81746ebb8c65ea29e4c42a93520a0d638129c7de01
|
|
264
|
+
ffi (1.17.4-aarch64-linux-gnu) sha256=b208f06f91ffd8f5e1193da3cae3d2ccfc27fc36fba577baf698d26d91c080df
|
|
265
|
+
ffi (1.17.4-aarch64-linux-musl) sha256=9286b7a615f2676245283aef0a0a3b475ae3aae2bb5448baace630bb77b91f39
|
|
266
|
+
ffi (1.17.4-arm-linux-gnu) sha256=d6dbddf7cb77bf955411af5f187a65b8cd378cb003c15c05697f5feee1cb1564
|
|
267
|
+
ffi (1.17.4-arm-linux-musl) sha256=9d4838ded0465bef6e2426935f6bcc93134b6616785a84ffd2a3d82bc3cf6f95
|
|
268
|
+
ffi (1.17.4-arm64-darwin) sha256=19071aaf1419251b0a46852abf960e77330a3b334d13a4ab51d58b31a937001b
|
|
269
|
+
ffi (1.17.4-x86-linux-gnu) sha256=38e150df5f4ca555e25beca4090823ae09657bceded154e3c52f8631c1ed72cf
|
|
270
|
+
ffi (1.17.4-x86-linux-musl) sha256=fbeec0fc7c795bcf86f623bb18d31ea1820f7bd580e1703a3d3740d527437809
|
|
271
|
+
ffi (1.17.4-x86_64-darwin) sha256=aa70390523cf3235096cf64962b709b4cfbd5c082a2cb2ae714eb0fe2ccda496
|
|
272
|
+
ffi (1.17.4-x86_64-linux-gnu) sha256=9d3db14c2eae074b382fa9c083fe95aec6e0a1451da249eab096c34002bc752d
|
|
273
|
+
ffi (1.17.4-x86_64-linux-musl) sha256=3fdf9888483de005f8ef8d1cf2d3b20d86626af206cbf780f6a6a12439a9c49e
|
|
274
|
+
formatador (1.2.3) sha256=19fa898133c2c26cdbb5d09f6998c1e137ad9427a046663e55adfe18b950d894
|
|
275
|
+
fuzzy_match (2.1.0) sha256=e97e25d0eaee48a5f77ed970d007c7b6ff3c6a6858303fead2d1986859204dfc
|
|
276
|
+
guard (2.20.2) sha256=2d0574d35619669f2f71739a0313290810b9cf66b2263f5d97e815fcce598d4d
|
|
277
|
+
guard-compat (1.2.1) sha256=3ad21ab0070107f92edfd82610b5cdc2fb8e368851e72362ada9703443d646fe
|
|
278
|
+
guard-minitest (3.0.0) sha256=0c418e62a4081a429e4e66ad094a3b66f113423542b43ad7b2df0c87f19d5728
|
|
279
|
+
guard-rubocop (1.5.0) sha256=3041d796dcb5ee31e352de74732250826f5f235b4ff48df9dbf424a6dc736251
|
|
280
|
+
i18n (1.15.2) sha256=00f9eb62412fe593b2a65a97daa75300d37abb8f7202ec748e94b6d46a9dd1b5
|
|
281
|
+
io-console (0.8.2) sha256=d6e3ae7a7cc7574f4b8893b4fca2162e57a825b223a177b7afa236c5ef9814cc
|
|
282
|
+
irb (1.17.0) sha256=168c4ddb93d8a361a045c41d92b2952c7a118fa73f23fe14e55609eb7a863aae
|
|
283
|
+
json (3.1.0) sha256=3ce7ccf8fde58960177a3a756c31f292a4c1e1dedee884547096a5b0604e3bd8
|
|
284
|
+
language_server-protocol (3.17.0.6) sha256=5ef2c0c138f8267e1bc631d3328347d354f96724b0af22f2c79516120443b7f0
|
|
285
|
+
lint_roller (1.1.0) sha256=2c0c845b632a7d172cb849cc90c1bce937a28c5c8ccccb50dfd46a485003cc87
|
|
286
|
+
listen (3.10.0) sha256=c6e182db62143aeccc2e1960033bebe7445309c7272061979bb098d03760c9d2
|
|
287
|
+
logger (1.7.0) sha256=196edec7cc44b66cfb40f9755ce11b392f21f7967696af15d274dde7edff0203
|
|
288
|
+
lumberjack (1.4.2) sha256=40de5ae46321380c835031bcc1370f13bba304d29f2b5f5bb152061a5a191b95
|
|
289
|
+
method_source (1.1.0) sha256=181301c9c45b731b4769bc81e8860e72f9161ad7d66dd99103c9ab84f560f5c5
|
|
290
|
+
minitest (6.0.6) sha256=153ea36d1d987a62942382b61075745042a2b3123b1cd48f4c3675af9cc7d6f1
|
|
291
|
+
minitest-reporters (1.7.1) sha256=5060413a0c95b8c32fe73e0606f3631c173a884d7900e50013e15094eb50562c
|
|
292
|
+
mize (0.6.1) sha256=4031558979ff5426fda24c75a149b4e4c0faf4cacf2fae8938f83866ab94b780
|
|
293
|
+
nenv (0.3.0) sha256=d9de6d8fb7072228463bf61843159419c969edb34b3cef51832b516ae7972765
|
|
294
|
+
notiffany (0.1.3) sha256=d37669605b7f8dcb04e004e6373e2a780b98c776f8eb503ac9578557d7808738
|
|
295
|
+
ostruct (0.6.3) sha256=95a2ed4a4bd1d190784e666b47b2d3f078e4a9efda2fccf18f84ddc6538ed912
|
|
296
|
+
parallel (2.3.0) sha256=f75a3e904101ce6a1ccb6b8dc800cbafd42166d83330192438dcf29395167a6f
|
|
297
|
+
parser (3.3.13.0) sha256=e02f9b63c2fe05b0c68f692ba4df89b3cb113b663964f75d988fbebfd6c3deca
|
|
298
|
+
pp (0.6.4) sha256=dfcb0fce700c41456265922884f9fe195d7fbb0674a3578e6c0f69588e82b570
|
|
299
|
+
prettyprint (0.2.0) sha256=2bc9e15581a94742064a3cc8b0fb9d45aae3d03a1baa6ef80922627a0766f193
|
|
300
|
+
prism (1.9.0) sha256=7b530c6a9f92c24300014919c9dcbc055bf4cdf51ec30aed099b06cd6674ef85
|
|
301
|
+
pry (0.16.0) sha256=d76c69065698ed1f85e717bd33d7942c38a50868f6b0673c636192b3d1b6054e
|
|
302
|
+
racc (1.8.1) sha256=4a7f6929691dbec8b5209a0b373bc2614882b55fc5d2e447a21aaa691303d62f
|
|
303
|
+
rainbow (3.1.1) sha256=039491aa3a89f42efa1d6dec2fc4e62ede96eb6acd95e52f1ad581182b79bc6a
|
|
304
|
+
rake (13.3.1) sha256=8c9e89d09f66a26a01264e7e3480ec0607f0c497a861ef16063604b1b08eb19c
|
|
305
|
+
rb-fsevent (0.11.2) sha256=43900b972e7301d6570f64b850a5aa67833ee7d87b458ee92805d56b7318aefe
|
|
306
|
+
rb-inotify (0.11.1) sha256=a0a700441239b0ff18eb65e3866236cd78613d6b9f78fea1f9ac47a85e47be6e
|
|
307
|
+
rb-readline (0.5.5) sha256=9e9bd7e198bdef0822c46902f6c592b882c1f9777894a4c3dcf5b320824a8793
|
|
308
|
+
rbs (4.1.0) sha256=8baba59008b0643b4ba2090e9b1d0149655b0bbd42eb2ffe42b1d0eb6923fd72
|
|
309
|
+
rdoc (8.0.0) sha256=03bf8c08a9639658855a0cfd77c0abca8325c227693f7f33f82957811348c469
|
|
310
|
+
readline (0.0.4) sha256=6138eef17be2b98298b672c3ea63bf9cb5158d401324f26e1e84f235879c1d6a
|
|
311
|
+
regexp_parser (2.13.1) sha256=5aedb6b7c35688f51e86eef17a15374dfd287c83f4ca644b2c5f3ec50a33b44b
|
|
312
|
+
reline (0.6.3) sha256=1198b04973565b36ec0f11542ab3f5cfeeec34823f4e54cebde90968092b1835
|
|
313
|
+
rubocop (1.92.2) sha256=14fb31eed143a0dc6f78186c550c1715e81cd38f59d05d1165050e445c1f5382
|
|
314
|
+
rubocop-ast (1.49.0) sha256=49c3676d3123a0923d333e20c6c2dbaaae2d2287b475273fddee0c61da9f71fd
|
|
315
|
+
rubocop-minitest (0.38.2) sha256=5a9dfb5a538973d0601aa51e59637d3998bb8df81233edf1ff421504c6280068
|
|
316
|
+
rubocop-performance (1.26.1) sha256=cd19b936ff196df85829d264b522fd4f98b6c89ad271fa52744a8c11b8f71834
|
|
317
|
+
rubocop-rake (0.7.1) sha256=3797f2b6810c3e9df7376c26d5f44f3475eda59eb1adc38e6f62ecf027cbae4d
|
|
318
|
+
rubocop-rspec (3.10.2) sha256=0b3e2ecc592cd10ecbf0095bb58d1e357905276e069643523cc19eb7495f65e2
|
|
319
|
+
ruby-progressbar (1.13.0) sha256=80fc9c47a9b640d6834e0dc7b3c94c9df37f08cb072b7761e4a71e22cff29b33
|
|
320
|
+
ruby_language_server (0.9.9)
|
|
321
|
+
securerandom (0.4.1) sha256=cc5193d414a4341b6e225f0cb4446aceca8e50d5e1888743fac16987638ea0b1
|
|
322
|
+
shellany (0.0.1) sha256=0e127a9132698766d7e752e82cdac8250b6adbd09e6c0a7fbbb6f61964fedee7
|
|
323
|
+
simplecov (0.22.0) sha256=fe2622c7834ff23b98066bb0a854284b2729a569ac659f82621fc22ef36213a5
|
|
324
|
+
simplecov-html (0.13.2) sha256=bd0b8e54e7c2d7685927e8d6286466359b6f16b18cb0df47b508e8d73c777246
|
|
325
|
+
simplecov_json_formatter (0.1.4) sha256=529418fbe8de1713ac2b2d612aa3daa56d316975d307244399fa4838c601b428
|
|
326
|
+
sqlite3 (2.10.2-aarch64-linux-gnu) sha256=e9aea2c2b3476fc875dd8a89313a9a2862818519c0186bfb5b56d6f57bb08d98
|
|
327
|
+
sqlite3 (2.10.2-aarch64-linux-musl) sha256=4986fc40cdf21342362b72a941df28e95cfe0e644f3ad2532d948b157c39dbee
|
|
328
|
+
sqlite3 (2.10.2-arm-linux-gnu) sha256=762f609ef891463226b472d3df66aea84d5466ff4376d3ccf4a059718c4ce9c9
|
|
329
|
+
sqlite3 (2.10.2-arm-linux-musl) sha256=833623eaf1157b1b85d1c0830e3e8f9beb3bb95a9bec3d252f20557a50e9803a
|
|
330
|
+
sqlite3 (2.10.2-arm64-darwin) sha256=5b0d235ea037e6dcd1b8387a19d73be571917db9f93044d35741cf933a21a37d
|
|
331
|
+
sqlite3 (2.10.2-x86-linux-gnu) sha256=46a02a29e9ae452824082388be5c24fd26f133b14bdd268610c6aa9a8d924c44
|
|
332
|
+
sqlite3 (2.10.2-x86-linux-musl) sha256=38980cf01eb2e4ac1c0755964d60b3d743ccf00686798a626bab852ff4cd3d1e
|
|
333
|
+
sqlite3 (2.10.2-x86_64-darwin) sha256=fd2c67b49d313031af112e172c83ab321681a2b4996bf882eefac50be7bea08f
|
|
334
|
+
sqlite3 (2.10.2-x86_64-linux-gnu) sha256=ca92731ab464df9cae503fa1a439a549e2724f6953c8c05a7769b59366e38f15
|
|
335
|
+
sqlite3 (2.10.2-x86_64-linux-musl) sha256=b9f8fc62f3e0eb8966b41de251b492b4c8e9d1b23559beb6e150ad7f8d590941
|
|
336
|
+
sync (0.5.0) sha256=668356cc07c59ac7ed9ecf34fec3929831f179c07adb1f3e1c3b7a1609a638fd
|
|
337
|
+
thor (1.5.0) sha256=e3a9e55fe857e44859ce104a84675ab6e8cd59c650a49106a05f55f136425e73
|
|
338
|
+
timeout (0.6.1) sha256=78f57368a7e7bbadec56971f78a3f5ecbcfb59b7fcbb0a3ed6ddc08a5094accb
|
|
339
|
+
tins (1.56.0) sha256=5ae6cf81cab8fd4b63abd2ade4eaf75543e6973c664276d949ec7027e029b46e
|
|
340
|
+
tsort (0.2.0) sha256=9650a793f6859a43b6641671278f79cfead60ac714148aabe4e3f0060480089f
|
|
341
|
+
tzinfo (2.0.6) sha256=8daf828cc77bcf7d63b0e3bdb6caa47e2272dcfaf4fbfe46f8c3a9df087a829b
|
|
342
|
+
unicode-display_width (3.3.0) sha256=4b7aa66a4b11db50f6f7e98411215cd0dd10eaecb665d36eec5bcacb3fa0b613
|
|
343
|
+
unicode-emoji (4.3.0) sha256=11c02fa73290378c066bb0562cd4c87d8e1b706fbbe0059ca12746a4244de8ce
|
|
344
|
+
uri (1.1.2) sha256=89292e98eabbef6248b0a0ed5e7e398e152f83f17560023a6d94a7f492b169fb
|
|
189
345
|
|
|
190
346
|
BUNDLED WITH
|
|
191
|
-
|
|
347
|
+
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,
|
|
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 shell run_in_shell server debug_server gem gem_release
|
|
1
2
|
PROJECT_NAME=ruby_language_server
|
|
2
|
-
|
|
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
|
-
|
|
15
|
+
./bin/run_in_shell bundle exec guard
|
|
10
16
|
echo > active_record.log
|
|
11
17
|
|
|
12
18
|
continuous_development: image
|
|
@@ -20,27 +26,46 @@ continuous_development: image
|
|
|
20
26
|
done
|
|
21
27
|
|
|
22
28
|
console: image
|
|
23
|
-
|
|
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
|
|
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"
|
|
27
40
|
|
|
28
41
|
shell: image
|
|
29
|
-
|
|
42
|
+
./bin/run_in_shell sh
|
|
43
|
+
|
|
44
|
+
run_in_shell:
|
|
45
|
+
docker run -it --rm $(LOCAL_LINK) $(PROJECT_NAME) sh -c "${SHELL_COMMAND}"
|
|
30
46
|
|
|
31
47
|
# Just to make sure it works.
|
|
32
48
|
server: image
|
|
33
|
-
|
|
49
|
+
./bin/run_in_shell
|
|
50
|
+
|
|
51
|
+
# Runs this checkout's code (mounted, so no rebuild) under the rdbg debugger, with LSP over TCP.
|
|
52
|
+
# VS Code's "Debug server" configuration runs this and attaches; see README "Debugging the server".
|
|
53
|
+
# PROJECT is the project the client opens; it is mounted read-only at /project.
|
|
54
|
+
DEBUG_LSP_PORT=7658
|
|
55
|
+
DEBUG_RDBG_PORT=12345
|
|
56
|
+
PROJECT?=$(PWD)
|
|
57
|
+
debug_server: image
|
|
58
|
+
-docker rm -f rls-debug >/dev/null 2>&1
|
|
59
|
+
docker run --rm -i --name rls-debug $(LOCAL_LINK) \
|
|
60
|
+
--mount type=bind,source="$(PROJECT)",target=/project,readonly \
|
|
61
|
+
-p 127.0.0.1:$(DEBUG_LSP_PORT):$(DEBUG_LSP_PORT) -p 127.0.0.1:$(DEBUG_RDBG_PORT):$(DEBUG_RDBG_PORT) \
|
|
62
|
+
-e LSP_PORT=$(DEBUG_LSP_PORT) -e LOG_LEVEL=DEBUG -e RUBY_DEBUG_FORK_MODE=parent \
|
|
63
|
+
$(PROJECT_NAME) bundle exec rdbg --open --host 0.0.0.0 --port $(DEBUG_RDBG_PORT) --nonstop -- exe/ruby_language_server
|
|
34
64
|
|
|
35
65
|
gem: image
|
|
36
66
|
rm -f $(PROJECT_NAME)*.gem
|
|
37
|
-
|
|
67
|
+
./bin/run_in_shell gem build $(PROJECT_NAME)
|
|
38
68
|
|
|
39
69
|
# Requires rubygems be installed on host
|
|
40
70
|
gem_release: gem
|
|
41
|
-
|
|
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) .
|
|
71
|
+
./bin/run_in_shell gem push $(PROJECT_NAME)*.gem
|