opentau icon indicating copy to clipboard operation
opentau copied to clipboard

Windows support

Open FrostMegaByte opened this issue 1 year ago • 1 comments

Hi, I'm running a Windows machine and tried to get this project to work, but unfortunately it failed during the make command with an error. After Googling a bit, it seems like Windows doesn't support Unix domain sockets, thus I'm not able to run it. I'll try with WSL, but I thought it might be interesting to know.

The error:

error[E0432]: unresolved import `tokio::net::UnixStream`
 --> src\socket.rs:8:5
  |
8 |     net::UnixStream,
  |     ^^^^^^^^^^^^^^^ no `UnixStream` in `net`

warning: unused import: `LangServerError`
 --> src\main_strategies.rs:5:46
  |
5 |     langserver::{AnnotateType, CheckProblem, LangServerError},
  |                                              ^^^^^^^^^^^^^^^  
  |
  = note: `#[warn(unused_imports)]` on by default

warning: unused import: `VecDeque`
 --> src\tree.rs:3:37
  |
3 |     collections::{HashMap, HashSet, VecDeque},
  |                                     ^^^^^^^^

warning: unused import: `sync::Mutex`
 --> src\tree.rs:8:13
  |
8 | use tokio::{sync::Mutex, task::JoinHandle};
  |             ^^^^^^^^^^^

warning: unused import: `AsyncWriteExt`
 --> src\socket.rs:7:27
  |
7 |     io::{AsyncBufReadExt, AsyncWriteExt},
  |                           ^^^^^^^^^^^^^

For more information about this error, try `rustc --explain E0432`.
warning: `opentau` (lib) generated 4 warnings
error: could not compile `opentau` (lib) due to previous error; 4 warnings emitted
make: *** [Makefile:10: build-release] Error 101

FrostMegaByte avatar Jun 27 '23 08:06 FrostMegaByte