You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The RUN: lines in the long-object-path.cpp file are encountering unhashable type errors for GlobItem instances. This issue occurs due to improper handling of GlobItem instances within the test execution logic, specifically in the _executeShCmd function in lit's TestRunner.py.
The error is encountered in the TestRunner.py file, specifically within the _executeShCmd function at line 770: inproc_builtin = inproc_builtins.get(args[0], None)
…101590)
When using the lit internal shell with the command:
```
LIT_USE_INTERNAL_SHELL=1 ninja check-compiler-rt
```
The follow error is encountered:
```
File "TestRunner.py", line 770, in _executeShCmd
inproc_builtin = inproc_builtins.get(args[0], None)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: unhashable type: 'GlobItem'
```
This error is in a compiler-rt file:
```
TestCases/Linux/long-object-path.cpp
```
This error occurs because `args[0]` is of type `GlobItem`, which is not
hashable, leading to a `TypeError` when it is passed in
`inproc_builtins.get()`. To resolve this issue, I have updated the
implementation to ensure that `args[0]` is hashable before it is used in
`inproc_builtins`.
fixes: #102389
[link to
RFC](https://discourse.llvm.org/t/rfc-enabling-the-lit-internal-shell-by-default/80179)
Harini0924
changed the title
[llvm-lit] Unhashable TypeError 'GlobItem' in lit’s internal shell
[llvm-lit] Unhashable TypeError 'GlobItem' with lit’s internal shell
Aug 30, 2024
The RUN: lines in the
long-object-path.cpp
file are encountering unhashable type errors forGlobItem
instances. This issue occurs due to improper handling ofGlobItem
instances within the test execution logic, specifically in the_executeShCmd
function in lit'sTestRunner.py
.The error is encountered in the
TestRunner.py
file, specifically within the_executeShCmd
function at line 770:inproc_builtin = inproc_builtins.get(args[0], None)
Error Displayed:
The text was updated successfully, but these errors were encountered: