Open sa- opened 3 months ago
And on a different note the LSP doesn't seem to recognize the arrow/
dir, this feels like it might have been reported but I wasn't able to find an issue for it. Would be happy to file a separate issue "LSP should include root directory in its mojo path" if needed
Contained Reproducer
struct ArrowFixedWidthBuffer[T: AnyTrivialRegType]:
fn __init__(inout self, values: List[T]):
var byte_width = sizeof[T]()
def main():
var int_arrow_buf = ArrowFixedWidthBuffer(List[Int]())
FYI @sa- temporary workaround:
struct ArrowFixedWidthBuffer[T: AnyTrivialRegType]:
alias _type = T
fn __init__(inout self, values: List[Self._type]):
var byte_width = sizeof[T]()
def main():
alias Arr = ArrowFixedWidthBuffer[Int]
var int_arrow_buf = Arr(List[Arr._type]())
Bug description
The error is
invalid initialization: argument #1 cannot be converted from 'List[Int]' to 'List[Int]'
, although I would hope the compiler would be able to handle thisSteps to reproduce
Clone the arrow.mojo repo at this commit: https://github.com/mojo-data/arrow.mojo/commit/271d9207e51d78c978303c1885c2a8a9a57e36e7
And then run
System information