willcrichton / flowistry

Flowistry is an IDE plugin for Rust that helps you focus on relevant code.
https://marketplace.visualstudio.com/items?itemName=wcrichton.flowistry
MIT License
1.91k stars 45 forks source link

Flowistry could not run because your project failed to build with error #59

Open danielesk opened 2 years ago

danielesk commented 2 years ago

image

How to solve?

willcrichton commented 2 years ago

Is the currently-open project in VSCode the directory containing main.rs?

danielesk commented 2 years ago

@willcrichton Yes. The same environment as well as the test code when I run in Linux environment is no problem, is it because the windows OS is not supported? My system is Windows 11

willcrichton commented 2 years ago

Ah, then it's probably a Windows problem. I have done limited testing on Windows and Flowistry seemed to work, but I don't have a Windows machine so I haven't tested it extensively. If you can share a copy of the workspace you're testing, I can try to reproduce the issue in a VM.

LeandroMarceddu commented 1 year ago

This is still an issue it seems. image

If you want a snapshot of the workspace you can find it here: https://github.com/LeandroMarceddu/rusty-kiln

willcrichton commented 1 year ago

Thanks for the reproducible case @LeandroMarceddu. I confirmed that I am able to use Flowistry on your codebase on my Mac:

Screen Shot 2023-02-20 at 6 31 03 PM

Note: you will have to manually add the custom compile target to the specific nightly toolchain used by Flowistry, ie

rustup target add thumbv6m-none-eabi --toolchain nightly-2022-12-07

But that doesn't solve the issue of not working on Windows. I will try to find a Windows VM I can use to reproduce / fix the error.

noamtashma commented 1 year ago

I also seem to run into this (also on windows)

wlinna commented 11 months ago

I'm running into this on Pop!_OS 22.04 LTS with rustc 1.74.1 (I'm not using any of the latest language features). The exact error message is

Flowistry could not run because your project failed to build with error:
undefined

However, my project builds without errors (there are warnings regarding unused functions / imports though)

I'm also getting Flowistry error: Error: unexpected end of file if I try to activate the focus mode

So far I haven't been able to get flowistry to work on my project