-
Notifications
You must be signed in to change notification settings - Fork 62
error: file not found for module #155
Comments
I am looking at this issue. |
I gave this another shot today, rebuilt rls from git master and updated rustup. The issue appears to have disappeared! @KalitaAlexey Could you reproduce it? Also I think I forgot to mention i used the vscode-rust version as published in vscode extensions, did not compile this project manually. I see there's been some activity since the last release, possible to tag a new point release? |
Hm, actually I see it again. Will try to build this extension from source to rule out if recent commits have resolved it. I think the |
Struggling to compile...
Not exactly sure how to use all these gulps and npms and typescripts in this particular project. How would one trigger the creation of a vsix archive to feed into vscode? |
@martinlindhe,
|
@martinlindhe, |
I abandoned use of vscode-rust for the time being because of this issue. Am currently trying out https://github.com/jonathandturner/rls_vscode which is working better, but lacks some other features such as rustfmt. Thanks for your time |
@martinlindhe, |
@KalitaAlexey I have similar issue with RLS mode also.. Version of VSCode: 1.11.2 rls.toml
Description:
|
I, too, am seeing this issue. The modules that I'm getting an error for are present and I can build my code successfully. This issue appears to happen anywhere there is a VS Code 1.11.2 # rls.toml
unstable_features = true // db/mod.rs
use std::env;
use diesel::pg::PgConnection;
use r2d2;
use r2d2_diesel::ConnectionManager;
pub type Pool = r2d2::Pool<ConnectionManager<PgConnection>>;
pub fn init_pool() -> Pool {
let database_url = env::var("DATABASE_URL").expect("environment variable DATABASE_URL must be set");
let config = r2d2::Config::default();
let manager = ConnectionManager::<PgConnection>::new(database_url);
r2d2::Pool::new(config, manager).expect("unable to create database pool")
}
pub mod schema;
pub mod model;
|
@sethlopezme, What OS? |
@KalitaAlexey macOS 10.12.4 |
I am downloading Ubuntu ISO. |
@KalitaAlexey I ran rls_vscode and I didn't see any errors in the output/debug console. I haven't run rls_vscode before but I assume that's where I would look for errors. Let me know if I need to look elsewhere for them. |
@sethlopezme, |
I actually had difficulty with rls_vscode. I have RLS installed through rustup, but the only way I could get it to work with rls_vscode was to pull the RLS source down and set the |
Why couldn't you start RLS from rustup? |
Well, for a very good reason. The reason being that I'm an idiot and for some strange reason I didn't realize it worked that way. It all makes sense now, ha. |
@sethlopezme, |
The branch is spawn-rls-how-rls-vscode-does |
Is there anything specific that I need to do? I pulled the repo down, checked out the |
@sethlopezme, |
I guess what I'm asking is if there is anything specific that I need to do to get RLS working on the |
It strange. |
Ah, here we go. My apologies - the first time I tried running the extension, I had forgotten to run As a reminder, here are my versions:
In the Debug Console tab of the main VS Code window, I saw this:
In the Output tab of the main VS Code window, I saw this:
|
@sethlopezme, |
@KalitaAlexey Ah, that allowed the plugin to function for me. I still experienced an issue, though. It saw that I have rustup installed, but it says that I don't have RLS installed (I do, through rustup). |
@sethlopezme, |
I have no idea then. |
I think this is an RLS issue. I was just able to reproduce it in rls_vscode. |
You should open an issue in RLS's repository. |
Version of VSCode: 1.10.2
Version of the extension: 0.3.10
OS: macOS / Linux
Description: adding a whitespace & save src/main.rs to trigger rustfmt gives error, while "cargo check" sees no error. I dont see this behaviour with other files in the project than src/main.rs
Output of the "Rust logging" channel:
However, more is shown in the "Rust Language Server" channel:
I originally reported this issue in the rls project here, but they tell me their reference plugin doesn't exhibit this behaviour, so I'm re-submitting the issue here.
--
Hello, I am seeing an issue from rls, using the vscode-rust plugin.
I reproduced it on Linux and OSX like this:
gives the following error:
there is a file src/app.rs in the project.
the code compiles correctly using "cargo build".
Intellisense and code navigation appears to work in the other files, this just seems to happen while in src/main.rs
Using rls from git of today (91a4b57), set up like this:
and added the following vscode-rust configuration:
The text was updated successfully, but these errors were encountered: