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 last few days i have been doing aoc and i noticed that the type inference on windows is "shitty" in respect to WSL
for example this code snippet
fnto_2d_array(input:&str) -> Vec<Vec<char>>{
input
.lines()// Split the string by '\n' into an iterator of &str.map(|line| line.chars().collect())// Convert each line into a Vec<char>.collect()// Collect into a Vec<Vec<char>>}fnstage1(input:&str) -> i32{let arr = to_2d_array(input);letmut count = 0;for(i, line)in arr.iter().enumerate(){for(j, c)in line.iter().enumerate(){// ...}}}
when viewing on VS Code running on windows, rust analyzer does not recognize the types for line and for c
but when i opened the same workspace on WSL suddenly it does know those same types. thats just one example i encountered.
---------------------------------------- ON WINDOWS ----------------------------------------
---------------------------------------- ON WSL ----------------------------------------
is there a fix for this, or is this just a bug?
The text was updated successfully, but these errors were encountered:
The last few days i have been doing aoc and i noticed that the type inference on windows is "shitty" in respect to WSL
for example this code snippet
when viewing on VS Code running on windows, rust analyzer does not recognize the types for line and for c
but when i opened the same workspace on WSL suddenly it does know those same types. thats just one example i encountered.
---------------------------------------- ON WINDOWS ----------------------------------------
---------------------------------------- ON WSL ----------------------------------------
is there a fix for this, or is this just a bug?
The text was updated successfully, but these errors were encountered: