Commit f7919ba
committed
Fix native image build issues
- Register conf/native-image as a nativeCompile input, so editing the
reflection config actually triggers a rebuild instead of reporting
UP-TO-DATE and shipping the previous binary.
- Drop the graalvmNative agent block. It only takes effect with -Pagent,
and generateNativeImageConfig does the tracing instead.
- Make the simulator send workspace/didChangeConfiguration. This is what
initializes the language services, so without it every language feature
returned an empty result and the tracing agent observed almost nothing
but lsp4j plumbing. The resulting binary answered "initialize" but was
dead for real use: it could not deserialize DidChangeConfigurationParams
or ExecuteCommandParams, and reported false errors such as
"Unrecognized process input qualifier val".
- Also send workspace/executeCommand, use a real temp workspace instead of
hardcoded /Users paths, and wait for outstanding async requests before
shutdown -- responses arrive out of order and "exit" was truncating them.
- Strengthen the binary test. Checking only for an "initialize" response
passes on a binary whose language features are all broken; also check for
missing-metadata errors and for a non-empty documentSymbol result.
- Fix the release job: it collected *.tar.gz while the build uploaded a
bare binary, and read the version from refs/tags while the workflow
ignored tags. Package the binary as a tarball and trigger the release on
v* tags.
- Limit push builds to main and tags, so a PR no longer builds four native
images twice. Add timeout-minutes, and use the free macos-latest runner
for Apple Silicon instead of the billed macos-latest-xlarge.
- Remove duplicatesStrategy from the jar task and the redundant copy it was
masking; processResources already puts definitions.json in spec/.
- Rename the binary from nlsp to nextflow-lsp.1 parent 02b4ebd commit f7919ba
4 files changed
Lines changed: 149 additions & 83 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
10 | 9 | | |
11 | 10 | | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
| 11 | + | |
17 | 12 | | |
18 | 13 | | |
19 | | - | |
20 | 14 | | |
21 | 15 | | |
22 | 16 | | |
23 | 17 | | |
24 | 18 | | |
25 | 19 | | |
26 | 20 | | |
27 | | - | |
| 21 | + | |
28 | 22 | | |
29 | 23 | | |
30 | 24 | | |
| |||
33 | 27 | | |
34 | 28 | | |
35 | 29 | | |
| 30 | + | |
36 | 31 | | |
37 | 32 | | |
38 | | - | |
| 33 | + | |
39 | 34 | | |
40 | 35 | | |
41 | 36 | | |
| |||
57 | 52 | | |
58 | 53 | | |
59 | 54 | | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
64 | | - | |
| 63 | + | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | 76 | | |
80 | 77 | | |
81 | 78 | | |
| |||
84 | 81 | | |
85 | 82 | | |
86 | 83 | | |
87 | | - | |
| 84 | + | |
88 | 85 | | |
89 | 86 | | |
90 | 87 | | |
91 | 88 | | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | 89 | | |
97 | 90 | | |
98 | 91 | | |
99 | | - | |
| 92 | + | |
100 | 93 | | |
101 | | - | |
| 94 | + | |
102 | 95 | | |
103 | 96 | | |
104 | 97 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
| 108 | + | |
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
| 122 | + | |
123 | 123 | | |
124 | 124 | | |
125 | | - | |
| 125 | + | |
126 | 126 | | |
127 | | - | |
128 | | - | |
129 | | - | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
130 | 151 | | |
131 | | - | |
| 152 | + | |
132 | 153 | | |
133 | 154 | | |
| 155 | + | |
| 156 | + | |
134 | 157 | | |
135 | 158 | | |
136 | 159 | | |
| |||
179 | 202 | | |
180 | 203 | | |
181 | 204 | | |
182 | | - | |
| 205 | + | |
183 | 206 | | |
184 | 207 | | |
185 | 208 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | 102 | | |
108 | 103 | | |
109 | 104 | | |
| |||
141 | 136 | | |
142 | 137 | | |
143 | 138 | | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
144 | 142 | | |
145 | 143 | | |
146 | 144 | | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | 145 | | |
161 | 146 | | |
162 | | - | |
| 147 | + | |
163 | 148 | | |
164 | 149 | | |
165 | 150 | | |
166 | 151 | | |
167 | 152 | | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
168 | 156 | | |
169 | 157 | | |
170 | 158 | | |
| |||
0 commit comments