#Trait is not implemented

31 messages · Page 1 of 1 (latest)

tawny bay
#

I am trying to test cli commands in my code but I get the error "trait pointeesized is not implemented for OsStr".

I understand this has something to do with what I'm passing in not having this trait implemented but I'm confused as this the example code in the std::process::Command documentation.

sleek robin
tawny bay
#

Ok. so now that you mention that I realized you can build it. So it might have something to do with my IDE.

#

It built correctly.

sleek robin
#

well that's odd. are you using rustrover? if so make sure that it's set to the right rust toolchain in the rust settings and that you've got the right target platform selected in the bottom right corner of the main window

tawny bay
#

and yes I'm using rover

#

I'm using version 1.8.9 and the x86 architecture for windows, so that looks correct.

sleek robin
#

try reindexing...?

tawny bay
#

can you explain what you mean?

sleek robin
#

file > invalidate caches, although maybe try the "repair ide" option in the file menu first

tawny bay
#

still the same issue

#

The only thing I see on pointeesized is that it's a nightly API. but apart from that I'm not sure

sleek robin
#

yeah no i don't see any reason that you should be getting these errors

#

does it build within rustrover as well, if you click the run button?

tawny bay
#

yup

#

the only things I get are my unused variables popping up

sleek robin
#

if you press ctrl+b/cmd+b to go to the definition of Command::new, where do you end up?

tawny bay
sleek robin
#

yup that's correct

#

is your crate attached correctly in the cargo tab?

tawny bay
sleek robin
#

there should be a "cargo" tab, by default i think it's one of the tabs on the sidebar on the right side

tawny bay
sleek robin
#

yeah that one, is that your only crate?

tawny bay
#

yup

sleek robin
#

in settings > languages & frameworks > rust, what's the "standard library" field set to?

tawny bay
sleek robin
#

welp

#

i am officially out of ideas ferrisMelt

tawny bay
#

No worries. It's definitely something with the IDE incorrectly flagging. I'll keep looking