Coder Social home page Coder Social logo

Can't get to work on Windows about irust HOT 15 CLOSED

sigmasd avatar sigmasd commented on July 24, 2024
Can't get to work on Windows

from irust.

Comments (15)

sigmaSd avatar sigmaSd commented on July 24, 2024

Hi! Can you check if ℅Temp%/irust/target/debug/irust.exe exists? Also which version of windows you're on?

from irust.

sigmaSd avatar sigmaSd commented on July 24, 2024

Btw I'm suspicious its an antivirus interfering. (or another 3rd party program)
Exp: rust-lang/rust#48700

from irust.

fdncred avatar fdncred commented on July 24, 2024

version: Microsoft Windows [Version 10.0.19041.508]
no, that debug/irust.exe does not exist.

Directory: C:\Users\username\AppData\Local\Temp\irust

Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
d----           9/21/2020 11:12 AM                src
-a---           9/21/2020 11:12 AM            136 Cargo.lock
-a---           9/21/2020  1:16 PM             59 Cargo.toml
-a---           9/21/2020 11:26 AM            186 fmt_file

This is with virusscan turned off.
image

from irust.

sigmaSd avatar sigmaSd commented on July 24, 2024

I don't have a win 10 machine currently, If you would like debug you can:
test 1 - add a dbg!(output) here https://github.com/sigmaSd/IRust/blob/master/src/irust/cargo_cmds.rs#L63
and run something(5+4) ( btw you need to redirect stderr to see the msg, for windows i think irust 2 > log)

test 2- run somthing on irust (5+4) then cd to %temp%/irust/ and run cargo run to check if that works

from irust.

sigmaSd avatar sigmaSd commented on July 24, 2024

Its weird that you don't have the target directory, it should be created immediately when irust is run,
I think you should try test2 it might be something with the tool-chain you have.

from irust.

sigmaSd avatar sigmaSd commented on July 24, 2024

I still suspect there is something interfering, irust when run:
1 - create %temp%/irust folder
2 - run cargo build on it, we know that this command succeeded since now you have src, cargo.toml, etc.. , but it should also create target folder and the executable in it, so my suspicion it got removed after since you don't have it.

from irust.

fdncred avatar fdncred commented on July 24, 2024

oh, I think I may have just figured it out. I have the CARGO_TARGET_DIR environment variable set which makes cargo put the target dir wherever that env var is set to.

$env:CARGO_TARGET_DIR
C:\Cargo\Target
ls C:\Cargo\Target\debug\


    Directory: C:\Cargo\Target\debug

Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
d----           9/21/2020 11:12 AM                .fingerprint
d----           9/17/2020  4:14 PM                build
d----           9/21/2020  1:22 PM                deps
d----            9/8/2020  8:24 AM                examples
d----           9/21/2020 11:12 AM                incremental
-a---            9/8/2020  8:24 AM              0 .cargo-lock
-a---           9/21/2020  2:06 PM             90 irust.d
-a---           9/21/2020  2:06 PM         153088 irust.exe
-a---           9/21/2020  2:06 PM        1314816 irust.pdb

from irust.

fdncred avatar fdncred commented on July 24, 2024

yup, i temporarily disabled that env var and can do this now.

image

from irust.

sigmaSd avatar sigmaSd commented on July 24, 2024

Nice find! Ill be sure to handle that case then.

from irust.

sigmaSd avatar sigmaSd commented on July 24, 2024

Should be fixed now c799f7a

from irust.

fdncred avatar fdncred commented on July 24, 2024

Looks like we still need a few more tweaks, although I assume this is unrelated.

cargo b --release
   Compiling winapi v0.3.9
   Compiling proc-macro2 v1.0.18
   Compiling syn v1.0.34
   Compiling serde v1.0.116
   Compiling scopeguard v1.1.0
   Compiling smallvec v1.4.1
   Compiling lock_api v0.3.4
   Compiling quote v1.0.7
   Compiling parking_lot_core v0.7.2
   Compiling dirs-sys-next v0.1.0
   Compiling crossterm_winapi v0.6.1
   Compiling dirs-next v1.0.1
   Compiling serde_derive v1.0.116
   Compiling parking_lot v0.10.2
   Compiling toml v0.5.6
   Compiling crossterm v0.17.8
   Compiling irust v0.8.17 (C:\Users\username\source\repos\forks\IRust)
error[E0603]: module `ansi_support` is private
   --> src\irust\cargo_cmds.rs:116:31
    |
116 |     let color = if crossterm::ansi_support::supports_ansi() {
    |                               ^^^^^^^^^^^^ private module
    |
note: the module `ansi_support` is defined here
   --> C:\Users\username\.cargo\registry\src\github.com-1ecc6299db9ec823\crossterm-0.17.8\src/lib.rs:251:1
    |
251 | pub(crate) mod ansi_support;
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to previous error

For more information about this error, try `rustc --explain E0603`.
error: could not compile `irust`.

To learn more, run the command again with --verbose.
error: External command failed
  ┌─ shell:1:1
  │
1 │ cargo b --release
  │ ^^^^^ command failed

It looks like is_ansi_code_supported() is available on Command but I'm not sure how to call it.

from irust.

sigmaSd avatar sigmaSd commented on July 24, 2024

Yeah im using crossterm git features for the master branch, you can change that in Cargo.toml, The next release of crossterm should be soon thats why I left it like I that.

from irust.

sigmaSd avatar sigmaSd commented on July 24, 2024

But Ill update it for consistency. 00b61ee

from irust.

fdncred avatar fdncred commented on July 24, 2024

Thanks for this change. It compiles now. I may open other issues. I love the UI, love how to control the cursor when re-editing functions, love the syntax highlighting, love how tabbing works right. Don't like a few things as well. :)

from irust.

sigmaSd avatar sigmaSd commented on July 24, 2024

@fdncred thanks as well! Sure that would be great!

from irust.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.