Commit 3d0dfb5
authored
refactor: improve initialization error messages (#276)
* refactor: improve initialization error messages
See for example:
- #273 (comment).
> [ERROR][2025-12-20 12:11:21] ...lsp/handlers.lua:562 '[Project file:///path/to/project] Failed to initialize: {:shutdown, {:failed_to_start_child, {XPExpert.Project.Node, "project"}, {:error, :normal, ~c"could not compile dependency :elixir_sense, \\"mix compile\\" failed. Errors may have been logged above. You can recompile this dependency with \\"mix deps.compile elixir_sense --force\\", update it with \\"mix deps.update elixir_sense\\" or clean it with \\"mix deps.clean elixir_sense\\"\\n"}}}'
- #266
> [Project file:///d%3A/proj/hello] Failed to initialize: {:shutdown, {:failed_to_start_child, {XPExpert.Project.Node, "hello"}, {:error, :normal, ~c"done\r\n"}}}
* small cleanup
* line too long1 parent 8a9fd3d commit 3d0dfb5
1 file changed
+9
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
303 | 303 | | |
304 | 304 | | |
305 | 305 | | |
306 | | - | |
| 306 | + | |
307 | 307 | | |
308 | 308 | | |
309 | 309 | | |
| |||
319 | 319 | | |
320 | 320 | | |
321 | 321 | | |
322 | | - | |
323 | | - | |
324 | | - | |
325 | | - | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
326 | 325 | | |
327 | | - | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
328 | 331 | | |
329 | 332 | | |
330 | 333 | | |
| |||
0 commit comments