Comments (15)
Hi! Can you check if ℅Temp%/irust/target/debug/irust.exe exists? Also which version of windows you're on?
from irust.
Btw I'm suspicious its an antivirus interfering. (or another 3rd party program)
Exp: rust-lang/rust#48700
from irust.
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.
from irust.
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.
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.
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.
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.
yup, i temporarily disabled that env var and can do this now.
from irust.
Nice find! Ill be sure to handle that case then.
from irust.
Should be fixed now c799f7a
from irust.
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.
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.
But Ill update it for consistency. 00b61ee
from irust.
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.
@fdncred thanks as well! Sure that would be great!
from irust.
Related Issues (20)
- Use `rustyline` or `reedline` for input? HOT 1
- Move theme settings from config.toml to themes config
- Improve Jupyter kernel support HOT 7
- typing twice in windows with crossterm-0.26+ HOT 2
- Can irust repl evaluate code with release mode instead of debug mode? HOT 3
- Cannot use two `irust_repl`s at the same time. HOT 27
- Rust analyzer is not working on Windows HOT 6
- Interactive usage HOT 3
- IRust installation fails due to use of unstable library feature 'once_cell' HOT 3
- FileNotFoundError while `python -m irust_kernel.install` HOT 1
- cargo-edit requires --path argument for a local dependency after version 0.9.1 HOT 2
- irust doesn't display Thai text properly. HOT 1
- Unclear documentation on importing local crates HOT 5
- Autocomplete doesn't work HOT 10
- untitled issue HOT 4
- Proposal: Split eval output HOT 3
- Option to specify config.toml path HOT 6
- Support nREPL protocol? HOT 2
- Failed to format error output HOT 2
- Logo missing on Jupyter lab launcher page HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from irust.