Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VSCODE extension ElixirLS not working #162

Open
boriscy opened this issue Feb 17, 2025 · 2 comments
Open

VSCODE extension ElixirLS not working #162

boriscy opened this issue Feb 17, 2025 · 2 comments

Comments

@boriscy
Copy link

boriscy commented Feb 17, 2025

I can switch between 2 branches and when I use the livesvelte branch of my project the ElixirLS extension doesn't work. I have reinstalled, recompiled from clean all the extensions and did not fix it

[Info  - 10:39:32 AM] Starting build with MIX_ENV: test MIX_TARGET: host
[Warn  - 10:39:32 AM] Unchecked dependencies for environment test:
[Warn  - 10:39:32 AM] * live_svelte (Hex package)
[Warn  - 10:39:32 AM]   lock mismatch: the dependency is out of date. To fetch locked version run "mix deps.get"
[Error - 10:39:32 AM] Process #PID<0.688.0> raised an exception
** (Mix.Error) Can't continue due to errors on dependencies
    (mix 1.18.1) lib/mix.ex:613: Mix.raise/2
    (mix 1.18.1) lib/mix/tasks/deps.loadpaths.ex:97: Mix.Tasks.Deps.Loadpaths.deps_check/3
    (mix 1.18.1) lib/mix/tasks/deps.loadpaths.ex:67: Mix.Tasks.Deps.Loadpaths.run/1
    (mix 1.18.1) lib/mix/task.ex:495: anonymous fn/3 in Mix.Task.run_task/5
    (mix 1.18.1) lib/mix/tasks/loadpaths.ex:36: Mix.Tasks.Loadpaths.run/1
    (mix 1.18.1) lib/mix/task.ex:495: anonymous fn/3 in Mix.Task.run_task/5
    (mix 1.18.1) lib/mix/tasks/compile.ex:129: Mix.Tasks.Compile.run/1
    (mix 1.18.1) lib/mix/task.ex:495: anonymous fn/3 in Mix.Task.run_task/5
    (language_server 0.26.4) lib/language_server/build.ex:441: ElixirLS.LanguageServer.Build.run_mix_compile/1
    (language_server 0.26.4) lib/language_server/build.ex:80: anonymous fn/3 in ElixirLS.LanguageServer.Build.build/3
    (stdlib 6.1.2) timer.erl:590: :timer.tc/2
    (language_server 0.26.4) lib/language_server/build.ex:20: anonymous fn/3 in ElixirLS.LanguageServer.Build.build/3
    (kernel 10.1.1) global.erl:699: :global.trans/4
[Info  - 10:39:32 AM] Starting build with MIX_ENV: test MIX_TARGET: host
[Warn  - 10:39:32 AM] Unchecked dependencies for environment test:
[Warn  - 10:39:32 AM] * live_svelte (Hex package)
[Warn  - 10:39:32 AM]   lock mismatch: the dependency is out of date. To fetch locked version run "mix deps.get"
[Error - 10:39:32 AM] Process #PID<0.898.0> raised an exception
** (Mix.Error) Can't continue due to errors on dependencies
    (mix 1.18.1) lib/mix.ex:613: Mix.raise/2
    (mix 1.18.1) lib/mix/tasks/deps.loadpaths.ex:97: Mix.Tasks.Deps.Loadpaths.deps_check/3
    (mix 1.18.1) lib/mix/tasks/deps.loadpaths.ex:67: Mix.Tasks.Deps.Loadpaths.run/1
    (mix 1.18.1) lib/mix/task.ex:495: anonymous fn/3 in Mix.Task.run_task/5
    (mix 1.18.1) lib/mix/tasks/loadpaths.ex:36: Mix.Tasks.Loadpaths.run/1
    (mix 1.18.1) lib/mix/task.ex:495: anonymous fn/3 in Mix.Task.run_task/5
    (mix 1.18.1) lib/mix/tasks/compile.ex:129: Mix.Tasks.Compile.run/1
    (mix 1.18.1) lib/mix/task.ex:495: anonymous fn/3 in Mix.Task.run_task/5
    (language_server 0.26.4) lib/language_server/build.ex:441: ElixirLS.LanguageServer.Build.run_mix_compile/1
    (language_server 0.26.4) lib/language_server/build.ex:80: anonymous fn/3 in ElixirLS.LanguageServer.Build.build/3
    (stdlib 6.1.2) timer.erl:590: :timer.tc/2
    (language_server 0.26.4) lib/language_server/build.ex:20: anonymous fn/3 in ElixirLS.LanguageServer.Build.build/3
    (kernel 10.1.1) global.erl:699: :global.trans/4
@boriscy
Copy link
Author

boriscy commented Feb 17, 2025

I have found the way to fix this error. I had to change the file
.elixir_ls/build/test/lib/live_svelte/ebin/live_svelte.app

{application,live_svelte,
             [{modules,['Elixir.LiveSvelte','Elixir.LiveSvelte.Components',
                        'Elixir.LiveSvelte.LiveJson',
                        'Elixir.LiveSvelte.Logger','Elixir.LiveSvelte.SSR',
                        'Elixir.LiveSvelte.SSR.NodeJS',
                        'Elixir.LiveSvelte.SSR.NotConfigured',
                        'Elixir.LiveSvelte.Slots',
                        'Elixir.Mix.Tasks.LiveSvelte.ConfigureEsbuild',
                        'Elixir.Mix.Tasks.LiveSvelte.ConfigurePhoenix',
                        'Elixir.Mix.Tasks.LiveSvelte.InstallNpmDeps',
                        'Elixir.Mix.Tasks.LiveSvelte.Setup']},
              {optional_applications,[]},
              {applications,[kernel,stdlib,elixir,logger,jason,nodejs,phoenix,
                             phoenix_html,phoenix_live_view]},
              {description,"E2E reactivity for Svelte and LiveView"},
              {registered,[]},
              {vsn,"0.14.1"}]}.

Changing just the tuple {vsn,"0.15.0"}

@gevera
Copy link

gevera commented Mar 5, 2025

So should the issue be closed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants