willcrichton/flowistry

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

danielesk opened this issue · 7 comments

image

How to solve?

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

@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

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.

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

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.

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

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