next-ls icon indicating copy to clipboard operation
next-ls copied to clipboard

Code action putting the underscore wrongly

Open andrepaes opened this issue 1 year ago • 4 comments

When i have a unused var then i trigger the code action to put the underscore to stop compiler warning then the underscore is placed on the beginning of the line instead of in front of the var. image image this is my elixir and erlang version: erlang 24.3.4.1 elixir 1.13.4-otp-24 I'm running on a Linux manjaro kernel version 6.5.3-1-MANJARO and cpu intel 14700K

andrepaes avatar Apr 24 '24 13:04 andrepaes

The code action uses the line:column from the elixir extension's diagnostic. I assume that the older version of elixir just reports the column as 0. @mhanberg maybe this will be fixed with the vendored version of elixir once this is released?

NJichev avatar Apr 24 '24 13:04 NJichev

@NJichev this sounds likely

mhanberg avatar Apr 24 '24 14:04 mhanberg

Hey 👋 The latest release bundles together an Elixir version, can you try updating and seeing whether the issue persists. Thanks in advance

NJichev avatar May 09 '24 19:05 NJichev

Hey, the project i'm working on is using otp 24 so i'm not able to get the new release working here

andrepaes avatar May 09 '24 21:05 andrepaes