dimitarvp

dimitarvp

VS Code: how to cross-reference multiple projects not in umbrella?

Hey community,

I am working on several related projects. They are path dependencies and not in an umbrella.

The code is compiling and running fine when I work on the command line only. My problem is how to make VS Code (with vscode-elixir and ElixirLS plugins installed) not complain about not being able to find modules in the other projects.

I already added all projects to the workspace. Problem is, all projects except the one that was the first in the workspace don’t have .elixir_ls directories which means Code is not compiling them at all.

I didn’t have problems with monorepo projects so far but this is a multi-repo project.

Is there a cure?

Marked As Solved

dimitarvp

dimitarvp

Called it – a restart of Code somehow fixed it. Even though it took it 1 hour of 100% loaded 4 CPU cores.

Sorry for the noise.

Also Liked

dimitarvp

dimitarvp

Truthfully I figured I will just save the workspace file and restart Code. Now it has been crunching something for at least 45 minutes – on a high-end PC nonetheless! But the red highlights (errors) disappeared and it only started showing the few warnings I was already aware of.

I’ll wait for it to finish and post if things have improved. I’d hate to accept my own answer saying “welp I only had to restart it” but if that’s the solution then why not. :smiley:

LostKobrakai

LostKobrakai

In the output panel you can switch to the ElixirLS output to see if it logged the errors is had.

NobbZ

NobbZ

Please remind that vscode might not see the asdf executables, but rather the ones of the system wide installations, depending on the way you start vscode.

Especially if you start vscode from the GUI rather than a treminal, the ELS will use the systems runtime.

Where Next?

Popular in Questions Top

_russellb
I want to try my hand at web scraping. What tools/libraries do I need to use. I’m hoping to turn this into something professional so don’...
New
Werner
Hi, I’m using Ubuntu 18.04 and after updating to OTP-24.0 yesterday i have this warning when I run “mix local.hex”: 14:57:30.512 [warn] ...
New
polypush135
As many of you may have realized by now (sorry for all the posts here) I’ve been working on a db problem where I’m trying to aggregate a ...
New
myronmarston
The Elixir Typespec docs show the following syntax for keyword lists in typespecs: # ... | [key: type] # keyword lis...
New
chrisalley
ExUnit now has describe blocks which is a welcome addition coming from RSpec. In the docs, it states that nested hierarchies of describe ...
New
Qqwy
Original source of discussion: This topic on the Pragmatic Programmers' Functional Web Development with Elixir, OTP, and Phoenix forum. ...
New
lucidguppy
I have a super simple question about elixir - how would I take a file like this foo bar baz and output a new file that enumerates th...
New
siddhant3030
Hi, I have to write a raw query for one of my project. But till now I have used ecto queries and don’t have much experience writing raw ...
New
vrod
I am using the Starship cross-shell prompt – it seems pretty nice, but I get some errors: [WARN] - (starship::utils): Executing command ...
New
jay1
Why is it that the mnesia database isn’t the most preferred database for use in Elixir/Phoenix?
New

Other popular topics Top

chrismccord
Phoenix 1.4.0 released Phoenix 1.4 is out! This release ships with exciting new features, most notably with HTTP2 support, improved deve...
688 30048 115
New
shahryarjb
Hello, I get Persian date from my client and convert it to normal calendar like this: def jalali_string_to_miladi_english_number(persi...
New
Harrisonl
We have an ECS cluster with 4 services, where each task joins a single cluster, via discovery ECS discovery service. Currently when I de...
New
Jim
As a follow up to my earlier question: I have the code compiling and running but not getting a successful login from the rest server. ...
New
fireproofsocks
I’m working on defining a simple Ecto schema for a table (in PostGres), but I don’t see where I can define a column as NOT NULL. Conside...
New
minhajuddin
I have seen a lot of code which picks the first element from a list using Enum.at(0) instead of List.first. Is there a reason why people ...
New
electic
Hi, I am new to Elixir. I am trying to use the DateTime component to insert a date into MySQL however the there seems to be no way to fo...
New
chrisalley
ExUnit now has describe blocks which is a welcome addition coming from RSpec. In the docs, it states that nested hierarchies of describe ...
New
josevalim
Hi everyone, One of the features added to Elixir early on to help integration with Erlang code was the idea of overridable function defi...
New
jay1
Why is it that the mnesia database isn’t the most preferred database for use in Elixir/Phoenix?
New

We're in Beta

About us Mission Statement