[llvm] [mlir] [mlir][lsp] Use rootUri and rootPath for source files (PR #185479)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 9 11:53:22 PDT 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results
* 131983 tests passed
* 2984 tests skipped
* 1 test failed
## Failed Tests
(click on a test name to see its output)
### MLIR
<details>
<summary>MLIR.mlir-lsp-server/diagnostics.test</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
c:\_work\llvm-project\llvm-project\build\bin\mlir-lsp-server.exe -lit-test < C:\_work\llvm-project\llvm-project\mlir\test\mlir-lsp-server\diagnostics.test | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe -strict-whitespace C:\_work\llvm-project\llvm-project\mlir\test\mlir-lsp-server\diagnostics.test
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\mlir-lsp-server.exe' -lit-test
# .---command stderr------------
# | I[18:17:41.786] --> initialize(0)
# | I[18:17:41.788] --> reply:initialize(0)
# | D[18:17:41.788] >>> {
# | "id": 0,
# | "jsonrpc": "2.0",
# | "result": {
# | "capabilities": {
# | "codeActionProvider": true,
# | "completionProvider": {
# | "allCommitCharacters": [
# | "\t",
# | ";",
# | ",",
# | ".",
# | "="
# | ],
# | "resolveProvider": false,
# | "triggerCharacters": [
# | ".",
# | "%",
# | "^",
# | "!",
# | "#",
# | "(",
# | ",",
# | "<",
# | ":",
# | "[",
# | " ",
# | "\"",
# | "/"
# | ]
# | },
# | "definitionProvider": true,
# | "documentSymbolProvider": false,
# | "hoverProvider": true,
# | "referencesProvider": true,
# | "textDocumentSync": {
# | "change": 1,
# | "openClose": true,
# | "save": true
# | }
# | },
# | "serverInfo": {
# | "name": "mlir-lsp-server",
# | "version": "0.0.0"
# | }
# | }
# | }
# |
# |
# | I[18:17:41.789] --> textDocument/didOpen
# | E[18:17:41.791] Failed to create URI for file `mlir\foo.mlir`: File scheme: expect body to be an absolute path starting with '/': mlir/foo.mlir
# | I[18:17:41.791] --> textDocument/publishDiagnostics
# | D[18:17:41.791] >>> {
# | "jsonrpc": "2.0",
# | "method": "textDocument/publishDiagnostics",
# | "params": {
# | "diagnostics": [
# | {
# | "category": "Parse Error",
# | "message": "custom op 'func.func' expected valid '@'-identifier for symbol name",
# | "range": {
# | "end": {
# | "character": 0,
# | "line": 0
# | },
# | "start": {
# | "character": 0,
# | "line": 0
# | }
# | },
# | "severity": 1,
# | "source": "mlir"
# | }
# | ],
# | "uri": "test:///foo.mlir",
# | "version": 1
# | }
# | }
# |
# |
# | I[18:17:41.791] --> textDocument/didOpen
# | E[18:17:41.791] Failed to create URI for file `mlir\foo.mlir`: File scheme: expect body to be an absolute path starting with '/': mlir/foo.mlir
# | I[18:17:41.791] --> textDocument/publishDiagnostics
# | D[18:17:41.792] >>> {
# | "jsonrpc": "2.0",
# | "method": "textDocument/publishDiagnostics",
# | "params": {
# | "diagnostics": [
# | {
# | "category": "Parse Error",
# | "message": "empty operation name is invalid",
# | "range": {
# | "end": {
# | "character": 0,
# | "line": 0
# | },
# | "start": {
# | "character": 0,
# | "line": 0
# | }
# | },
# | "severity": 1,
# | "source": "mlir"
# | }
# | ],
# | "uri": "test:///foo.mlir",
# | "version": 1
# | }
# | }
# |
# |
# | I[18:17:41.792] --> shutdown(3)
# | I[18:17:41.792] --> reply:shutdown(3)
# | D[18:17:41.792] >>> {
# | "id": 3,
# | "jsonrpc": "2.0",
# | "result": null
# | }
# |
# |
# | I[18:17:41.792] --> exit
# `-----------------------------
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' -strict-whitespace 'C:\_work\llvm-project\llvm-project\mlir\test\mlir-lsp-server\diagnostics.test'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\mlir\test\mlir-lsp-server\diagnostics.test:18:28: error: CHECK-NEXT: expected string not found in input
# | // CHECK-NEXT: "character": 12,
# | ^
# | <stdin>:61:19: note: scanning from here
# | "end": {
# | ^
# | <stdin>:62:13: note: possible intended match here
# | "character": 0,
# | ^
# |
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\mlir\test\mlir-lsp-server\diagnostics.test
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 56: "diagnostics": [
# | 57: {
# | 58: "category": "Parse Error",
# | 59: "message": "custom op 'func.func' expected valid '@'-identifier for symbol name",
# | 60: "range": {
# | 61: "end": {
# | next:18'0 X error: no match found
# | 62: "character": 0,
# | next:18'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:18'1 ? possible intended match
# | 63: "line": 0
# | next:18'0 ~~~~~~~~~~~~~~~~~~~~~~
# | 64: },
# | next:18'0 ~~~~~~~~~~~~~
# | 65: "start": {
# | next:18'0 ~~~~~~~~~~~~~~~~~~~~~
# | 66: "character": 0,
# | next:18'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 67: "line": 0
# | next:18'0 ~~~~~~~~~~~~~~~~~~~~~~
# | .
# | .
# | .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.
https://github.com/llvm/llvm-project/pull/185479
More information about the llvm-commits
mailing list