sfm icon indicating copy to clipboard operation
sfm copied to clipboard

help compiling to windows

Open soyDESKTOP68A2MRFT opened this issue 3 years ago • 4 comments

error[E0599]: no method named is_dirfound for type parameterTPath` in the current scope

  | --> src\app\file_system\functions.rs:31:18   | |   | 31 |     if item_path.is_dir() {   | |                  ^^^^^^ method not found in TPath   |     | For more information about this error, try rustc --explain E0599.   | error: could not compile sfm due to previous err`

soyDESKTOP68A2MRFT avatar Mar 20 '22 15:03 soyDESKTOP68A2MRFT

what is happening with it?? and how could i fix it

soyDESKTOP68A2MRFT avatar Mar 20 '22 15:03 soyDESKTOP68A2MRFT

actually the file functions.rs as far as i know (i don't know so much i just understand a little bit) is well #[cfg(windows)] pub fn create_link<TPath: AsRef<Path>>(symlink_path: TPath, item_path: TPath) -> io::Result<()> { let symlink_path = expand_if_contains_tilde(symlink_path).unwrap(); if item_path.is_dir() { fs::symlink_dir(item_path, symlink_path) } else { fs::symlink_file(item_path, symlink_path) } }

soyDESKTOP68A2MRFT avatar Mar 20 '22 15:03 soyDESKTOP68A2MRFT

it is a problem with my rust install or with the project iitself??? i want to know what to do

soyDESKTOP68A2MRFT avatar Mar 20 '22 15:03 soyDESKTOP68A2MRFT

I try to compile it on Linux and it works. It can be some problem on windows. Currently, I don't have access to my windows box. I will try to check it on weekend

Harunx9 avatar Mar 23 '22 17:03 Harunx9