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

RefactorEx couldn't create connection to the server #9

Open
donaldww opened this issue Dec 5, 2024 · 4 comments
Open

RefactorEx couldn't create connection to the server #9

donaldww opened this issue Dec 5, 2024 · 4 comments

Comments

@donaldww
Copy link

donaldww commented Dec 5, 2024

[Info - 12:29:29 AM] Client is waiting server
[Info - 12:29:29 AM]
[Error - 12:29:30 AM] Server not started: Error: Command failed: export MIX_ENV=prod && cd /Users/donaldwilson/.vscode/extensions/gp-pereira.refatorex-0.1.24/refactorex && elixir --sname undefined -S mix run --no-halt -e "Application.ensure_all_started(:refactorex)" -- --port 64221
could not compile dependency :jason, "mix compile" failed. Errors may have been logged above. You can recompile this dependency with "mix deps.compile jason --force", update it with "mix deps.update jason" or clean it with "mix deps.clean jason"
** (Mix) Could not find a Mix.Project, please ensure you are running Mix in a directory with a mix.exs file

[Info - 12:29:30 AM] Server started on port 64221
[Error - 12:30:01 AM] Refactorex client: couldn't create connection to server.
Error: Client could not connect to the server.
at Socket. (/Users/donaldwilson/.vscode/extensions/gp-pereira.refatorex-0.1.24/src/extension.ts:132:13)
at Socket.emit (node:events:519:28)
at emitErrorNT (node:internal/streams/destroy:169:8)
at emitErrorCloseNT (node:internal/streams/destroy:128:3)
at processTicksAndRejections (node:internal/process/task_queues:82:21)

@donaldww
Copy link
Author

donaldww commented Dec 5, 2024

I am running in a directory with a mix.exs file.
I use mise instead of asdf

elixir 1.17.3-otp-27 ~/.config/mise/config.toml 1.17.3-otp-27
erlang 27.1.2 ~/.config/mise/config.toml 27.1.2

@gp-pereira
Copy link
Owner

Hey man, I've tried my best but couldn't reproduce the issue with the exact setup as yours. A few other people are having startup related problems on Elixir 1.17 as well but I still don't know how to solve it. I'll keep working on possible solutions

@thiagogsr
Copy link

here is what I got right after installing it:

[Info  - 10:10:20 AM] Client is waiting server
[Error - 10:10:43 AM] Compilation error:     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
    │
 51 │     collapse_static(List.flatten(["{", elements] ++ '}'))
    │                                                     ~
    │
    └─ lib/codegen.ex:51:53

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 118 │       if byte > 0x7F or byte < 0x1F or byte in '"\\/' do
     │                                                ~
     │
     └─ lib/codegen.ex:118:48

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 166 │   defp pp_byte(byte, rest, output, depth, empty, opts) when byte in ' \n\r\t' do
     │                                                                     ~
     │
     └─ lib/formatter.ex:166:69

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 170 │   defp pp_byte(byte, rest, output, depth, empty, opts) when byte in '{[' do
     │                                                                     ~
     │
     └─ lib/formatter.ex:170:69

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 183 │   defp pp_byte(byte, rest, output, depth, true = _empty, opts) when byte in '}]' do
     │                                                                             ~
     │
     └─ lib/formatter.ex:183:77

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 189 │   defp pp_byte(byte, rest, output, depth, false = empty, opts) when byte in '}]' do
     │                                                                             ~
     │
     └─ lib/formatter.ex:189:77

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 195 │   defp pp_byte(byte, rest, output, depth, _empty, opts) when byte in ',' do
     │                                                                      ~
     │
     └─ lib/formatter.ex:195:70

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 201 │   defp pp_byte(byte, rest, output, depth, empty, opts) when byte in ':' do
     │                                                                     ~
     │
     └─ lib/formatter.ex:201:69

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 104 │       _ in '\s\n\t\r', rest ->
     │            ~
     │
     └─ lib/decoder.ex:104:12

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 106 │       _ in '0', rest ->
     │            ~
     │
     └─ lib/decoder.ex:106:12

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 108 │       _ in '123456789', rest ->
     │            ~
     │
     └─ lib/decoder.ex:108:12

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 110 │       _ in '-', rest ->
     │            ~
     │
     └─ lib/decoder.ex:110:12

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 112 │       _ in '"', rest ->
     │            ~
     │
     └─ lib/decoder.ex:112:12

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 114 │       _ in '[', rest ->
     │            ~
     │
     └─ lib/decoder.ex:114:12

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 116 │       _ in '{', rest ->
     │            ~
     │
     └─ lib/decoder.ex:116:12

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 118 │       _ in ']', rest ->
     │            ~
     │
     └─ lib/decoder.ex:118:12

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 120 │       _ in 't', rest ->
     │            ~
     │
     └─ lib/decoder.ex:120:12

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 127 │       _ in 'f', rest ->
     │            ~
     │
     └─ lib/decoder.ex:127:12

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 134 │       _ in 'n', rest ->
     │            ~
     │
     └─ lib/decoder.ex:134:12

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 152 │        when byte in '123456789' do
     │                     ~
     │
     └─ lib/decoder.ex:152:21

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 167 │        when byte in '0123456789' do
     │                     ~
     │
     └─ lib/decoder.ex:167:21

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 173 │   defp number(<<e, rest::bits>>, original, skip, stack, decode, len) when e in 'eE' do
     │                                                                                ~
     │
     └─ lib/decoder.ex:173:80

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 187 │        when byte in '0123456789' do
     │                     ~
     │
     └─ lib/decoder.ex:187:21

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 195 │        when byte in '0123456789' do
     │                     ~
     │
     └─ lib/decoder.ex:195:21

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 199 │        when e in 'eE' do
     │                  ~
     │
     └─ lib/decoder.ex:199:18

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 210 │        when byte in '0123456789' do
     │                     ~
     │
     └─ lib/decoder.ex:210:21

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 214 │        when byte in '+-' do
     │                     ~
     │
     └─ lib/decoder.ex:214:21

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 222 │        when byte in '0123456789' do
     │                     ~
     │
     └─ lib/decoder.ex:222:21

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 230 │        when byte in '0123456789' do
     │                     ~
     │
     └─ lib/decoder.ex:230:21

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 241 │        when byte in '0123456789' do
     │                     ~
     │
     └─ lib/decoder.ex:241:21

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 245 │        when byte in '+-' do
     │                     ~
     │
     └─ lib/decoder.ex:245:21

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 253 │        when byte in '0123456789' do
     │                     ~
     │
     └─ lib/decoder.ex:253:21

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 261 │        when byte in '0123456789' do
     │                     ~
     │
     └─ lib/decoder.ex:261:21

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 279 │   defp number_zero(<<e, rest::bits>>, original, skip, stack, decode, len) when e in 'eE' do
     │                                                                                     ~
     │
     └─ lib/decoder.ex:279:85

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 303 │       _ in '\s\n\t\r', rest ->
     │            ~
     │
     └─ lib/decoder.ex:303:12

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 305 │       _ in ']', rest ->
     │            ~
     │
     └─ lib/decoder.ex:305:12

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 309 │       _ in ',', rest ->
     │            ~
     │
     └─ lib/decoder.ex:309:12

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 327 │       _ in '\s\n\t\r', rest ->
     │            ~
     │
     └─ lib/decoder.ex:327:12

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 329 │       _ in '}', rest ->
     │            ~
     │
     └─ lib/decoder.ex:329:12

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 336 │       _ in ',', rest ->
     │            ~
     │
     └─ lib/decoder.ex:336:12

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 351 │       _ in '\s\n\t\r', rest ->
     │            ~
     │
     └─ lib/decoder.ex:351:12

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 353 │       _ in '}', rest ->
     │            ~
     │
     └─ lib/decoder.ex:353:12

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 361 │       _ in '"', rest ->
     │            ~
     │
     └─ lib/decoder.ex:361:12

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 372 │       _ in '\s\n\t\r', rest ->
     │            ~
     │
     └─ lib/decoder.ex:372:12

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 374 │       _ in ':', rest ->
     │            ~
     │
     └─ lib/decoder.ex:374:12

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 388 │       _ in '"', rest ->
     │            ~
     │
     └─ lib/decoder.ex:388:12

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 392 │       _ in '\\', rest ->
     │            ~
     │
     └─ lib/decoder.ex:392:12

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 412 │       _ in '"', rest ->
     │            ~
     │
     └─ lib/decoder.ex:412:12

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 416 │       _ in '\\', rest ->
     │            ~
     │
     └─ lib/decoder.ex:416:12

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 436 │       _ in 'b', rest ->
     │            ~
     │
     └─ lib/decoder.ex:436:12

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 437 │         string(rest, original, skip + 2, stack, decode, [acc | '\b'], 0)
     │                                                                ~
     │
     └─ lib/decoder.ex:437:64

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 438 │       _ in 't', rest ->
     │            ~
     │
     └─ lib/decoder.ex:438:12

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 439 │         string(rest, original, skip + 2, stack, decode, [acc | '\t'], 0)
     │                                                                ~
     │
     └─ lib/decoder.ex:439:64

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 440 │       _ in 'n', rest ->
     │            ~
     │
     └─ lib/decoder.ex:440:12

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 441 │         string(rest, original, skip + 2, stack, decode, [acc | '\n'], 0)
     │                                                                ~
     │
     └─ lib/decoder.ex:441:64

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 442 │       _ in 'f', rest ->
     │            ~
     │
     └─ lib/decoder.ex:442:12

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 443 │         string(rest, original, skip + 2, stack, decode, [acc | '\f'], 0)
     │                                                                ~
     │
     └─ lib/decoder.ex:443:64

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 444 │       _ in 'r', rest ->
     │            ~
     │
     └─ lib/decoder.ex:444:12

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 445 │         string(rest, original, skip + 2, stack, decode, [acc | '\r'], 0)
     │                                                                ~
     │
     └─ lib/decoder.ex:445:64

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 446 │       _ in '"', rest ->
     │            ~
     │
     └─ lib/decoder.ex:446:12

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 447 │         string(rest, original, skip + 2, stack, decode, [acc | '\"'], 0)
     │                                                                ~
     │
     └─ lib/decoder.ex:447:64

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 448 │       _ in '/', rest ->
     │            ~
     │
     └─ lib/decoder.ex:448:12

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 449 │         string(rest, original, skip + 2, stack, decode, [acc | '/'], 0)
     │                                                                ~
     │
     └─ lib/decoder.ex:449:64

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 450 │       _ in '\\', rest ->
     │            ~
     │
     └─ lib/decoder.ex:450:12

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 451 │         string(rest, original, skip + 2, stack, decode, [acc | '\\'], 0)
     │                                                                ~
     │
     └─ lib/decoder.ex:451:64

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 452 │       _ in 'u', rest ->
     │            ~
     │
     └─ lib/decoder.ex:452:12

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 609 │       digits1 = 'Dd'
     │                 ~
     │
     └─ lib/decoder.ex:609:17

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 695 │        when byte in '\s\n\r\t' do
     │                     ~
     │
     └─ lib/decoder.ex:695:21

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 164 │     ']'
     │     ~
     │
     └─ lib/encode.ex:164:5

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 193 │     '}'
     │     ~
     │
     └─ lib/encode.ex:193:5

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 211 │     '}'
     │     ~
     │
     └─ lib/encode.ex:211:5

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 284 │   slash_escapes = Enum.zip('\b\t\n\f\r\"\\', 'btnfr"\\')
     │                            ~
     │
     └─ lib/encode.ex:284:28

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 284 │   slash_escapes = Enum.zip('\b\t\n\f\r\"\\', 'btnfr"\\')
     │                                              ~
     │
     └─ lib/encode.ex:284:46

     warning: Decimal.to_string/1 is undefined (module Decimal is not available or is yet to be defined)
     │
 228 │     [?", decimal.to_string(value), ?"]
     │                  ~
     │
     └─ lib/encoder.ex:228:18: Jason.Encoder.Decimal.encode/2

     warning: Decimal.to_string/2 is undefined (module Decimal is not available or is yet to be defined)
     │
 242 │     [?", decimal.to_string(value, :normal), ?"]
     │                  ~
     │
     └─ lib/encode.ex:242:18: Jason.Encode.struct/4

    warning: Decimal.new/1 is undefined (module Decimal is not available or is yet to be defined)
    │
 94 │         decimal.new(string)
    │                 ~
    │
    └─ lib/decoder.ex:94:17: Jason.Decoder.float_decode_function/1

warning: struct Decimal.Error is undefined (module Decimal.Error is not available or is yet to be defined)
└─ lib/decoder.ex: Jason.Decoder.float_decode_function/1

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 273 │     case :gen_tcp.connect('localhost', port, @connect_opts) do
     │                           ~
     │
     └─ lib/gen_lsp/test.ex:273:27


[Error - 10:10:43 AM] Refactorex client: couldn't create connection to server.
Error: Compilation error:     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
    │
 51 │     collapse_static(List.flatten(["{", elements] ++ '}'))
    │                                                     ~
    │
    └─ lib/codegen.ex:51:53

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 118 │       if byte > 0x7F or byte < 0x1F or byte in '"\\/' do
     │                                                ~
     │
     └─ lib/codegen.ex:118:48

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 166 │   defp pp_byte(byte, rest, output, depth, empty, opts) when byte in ' \n\r\t' do
     │                                                                     ~
     │
     └─ lib/formatter.ex:166:69

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 170 │   defp pp_byte(byte, rest, output, depth, empty, opts) when byte in '{[' do
     │                                                                     ~
     │
     └─ lib/formatter.ex:170:69

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 183 │   defp pp_byte(byte, rest, output, depth, true = _empty, opts) when byte in '}]' do
     │                                                                             ~
     │
     └─ lib/formatter.ex:183:77

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 189 │   defp pp_byte(byte, rest, output, depth, false = empty, opts) when byte in '}]' do
     │                                                                             ~
     │
     └─ lib/formatter.ex:189:77

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 195 │   defp pp_byte(byte, rest, output, depth, _empty, opts) when byte in ',' do
     │                                                                      ~
     │
     └─ lib/formatter.ex:195:70

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 201 │   defp pp_byte(byte, rest, output, depth, empty, opts) when byte in ':' do
     │                                                                     ~
     │
     └─ lib/formatter.ex:201:69

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 104 │       _ in '\s\n\t\r', rest ->
     │            ~
     │
     └─ lib/decoder.ex:104:12

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 106 │       _ in '0', rest ->
     │            ~
     │
     └─ lib/decoder.ex:106:12

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 108 │       _ in '123456789', rest ->
     │            ~
     │
     └─ lib/decoder.ex:108:12

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 110 │       _ in '-', rest ->
     │            ~
     │
     └─ lib/decoder.ex:110:12

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 112 │       _ in '"', rest ->
     │            ~
     │
     └─ lib/decoder.ex:112:12

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 114 │       _ in '[', rest ->
     │            ~
     │
     └─ lib/decoder.ex:114:12

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 116 │       _ in '{', rest ->
     │            ~
     │
     └─ lib/decoder.ex:116:12

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 118 │       _ in ']', rest ->
     │            ~
     │
     └─ lib/decoder.ex:118:12

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 120 │       _ in 't', rest ->
     │            ~
     │
     └─ lib/decoder.ex:120:12

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 127 │       _ in 'f', rest ->
     │            ~
     │
     └─ lib/decoder.ex:127:12

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 134 │       _ in 'n', rest ->
     │            ~
     │
     └─ lib/decoder.ex:134:12

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 152 │        when byte in '123456789' do
     │                     ~
     │
     └─ lib/decoder.ex:152:21

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 167 │        when byte in '0123456789' do
     │                     ~
     │
     └─ lib/decoder.ex:167:21

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 173 │   defp number(<<e, rest::bits>>, original, skip, stack, decode, len) when e in 'eE' do
     │                                                                                ~
     │
     └─ lib/decoder.ex:173:80

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 187 │        when byte in '0123456789' do
     │                     ~
     │
     └─ lib/decoder.ex:187:21

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 195 │        when byte in '0123456789' do
     │                     ~
     │
     └─ lib/decoder.ex:195:21

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 199 │        when e in 'eE' do
     │                  ~
     │
     └─ lib/decoder.ex:199:18

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 210 │        when byte in '0123456789' do
     │                     ~
     │
     └─ lib/decoder.ex:210:21

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 214 │        when byte in '+-' do
     │                     ~
     │
     └─ lib/decoder.ex:214:21

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 222 │        when byte in '0123456789' do
     │                     ~
     │
     └─ lib/decoder.ex:222:21

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 230 │        when byte in '0123456789' do
     │                     ~
     │
     └─ lib/decoder.ex:230:21

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 241 │        when byte in '0123456789' do
     │                     ~
     │
     └─ lib/decoder.ex:241:21

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 245 │        when byte in '+-' do
     │                     ~
     │
     └─ lib/decoder.ex:245:21

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 253 │        when byte in '0123456789' do
     │                     ~
     │
     └─ lib/decoder.ex:253:21

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 261 │        when byte in '0123456789' do
     │                     ~
     │
     └─ lib/decoder.ex:261:21

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 279 │   defp number_zero(<<e, rest::bits>>, original, skip, stack, decode, len) when e in 'eE' do
     │                                                                                     ~
     │
     └─ lib/decoder.ex:279:85

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 303 │       _ in '\s\n\t\r', rest ->
     │            ~
     │
     └─ lib/decoder.ex:303:12

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 305 │       _ in ']', rest ->
     │            ~
     │
     └─ lib/decoder.ex:305:12

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 309 │       _ in ',', rest ->
     │            ~
     │
     └─ lib/decoder.ex:309:12

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 327 │       _ in '\s\n\t\r', rest ->
     │            ~
     │
     └─ lib/decoder.ex:327:12

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 329 │       _ in '}', rest ->
     │            ~
     │
     └─ lib/decoder.ex:329:12

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 336 │       _ in ',', rest ->
     │            ~
     │
     └─ lib/decoder.ex:336:12

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 351 │       _ in '\s\n\t\r', rest ->
     │            ~
     │
     └─ lib/decoder.ex:351:12

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 353 │       _ in '}', rest ->
     │            ~
     │
     └─ lib/decoder.ex:353:12

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 361 │       _ in '"', rest ->
     │            ~
     │
     └─ lib/decoder.ex:361:12

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 372 │       _ in '\s\n\t\r', rest ->
     │            ~
     │
     └─ lib/decoder.ex:372:12

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 374 │       _ in ':', rest ->
     │            ~
     │
     └─ lib/decoder.ex:374:12

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 388 │       _ in '"', rest ->
     │            ~
     │
     └─ lib/decoder.ex:388:12

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 392 │       _ in '\\', rest ->
     │            ~
     │
     └─ lib/decoder.ex:392:12

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 412 │       _ in '"', rest ->
     │            ~
     │
     └─ lib/decoder.ex:412:12

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 416 │       _ in '\\', rest ->
     │            ~
     │
     └─ lib/decoder.ex:416:12

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 436 │       _ in 'b', rest ->
     │            ~
     │
     └─ lib/decoder.ex:436:12

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 437 │         string(rest, original, skip + 2, stack, decode, [acc | '\b'], 0)
     │                                                                ~
     │
     └─ lib/decoder.ex:437:64

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 438 │       _ in 't', rest ->
     │            ~
     │
     └─ lib/decoder.ex:438:12

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 439 │         string(rest, original, skip + 2, stack, decode, [acc | '\t'], 0)
     │                                                                ~
     │
     └─ lib/decoder.ex:439:64

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 440 │       _ in 'n', rest ->
     │            ~
     │
     └─ lib/decoder.ex:440:12

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 441 │         string(rest, original, skip + 2, stack, decode, [acc | '\n'], 0)
     │                                                                ~
     │
     └─ lib/decoder.ex:441:64

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 442 │       _ in 'f', rest ->
     │            ~
     │
     └─ lib/decoder.ex:442:12

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 443 │         string(rest, original, skip + 2, stack, decode, [acc | '\f'], 0)
     │                                                                ~
     │
     └─ lib/decoder.ex:443:64

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 444 │       _ in 'r', rest ->
     │            ~
     │
     └─ lib/decoder.ex:444:12

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 445 │         string(rest, original, skip + 2, stack, decode, [acc | '\r'], 0)
     │                                                                ~
     │
     └─ lib/decoder.ex:445:64

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 446 │       _ in '"', rest ->
     │            ~
     │
     └─ lib/decoder.ex:446:12

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 447 │         string(rest, original, skip + 2, stack, decode, [acc | '\"'], 0)
     │                                                                ~
     │
     └─ lib/decoder.ex:447:64

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 448 │       _ in '/', rest ->
     │            ~
     │
     └─ lib/decoder.ex:448:12

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 449 │         string(rest, original, skip + 2, stack, decode, [acc | '/'], 0)
     │                                                                ~
     │
     └─ lib/decoder.ex:449:64

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 450 │       _ in '\\', rest ->
     │            ~
     │
     └─ lib/decoder.ex:450:12

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 451 │         string(rest, original, skip + 2, stack, decode, [acc | '\\'], 0)
     │                                                                ~
     │
     └─ lib/decoder.ex:451:64

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 452 │       _ in 'u', rest ->
     │            ~
     │
     └─ lib/decoder.ex:452:12

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 609 │       digits1 = 'Dd'
     │                 ~
     │
     └─ lib/decoder.ex:609:17

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 695 │        when byte in '\s\n\r\t' do
     │                     ~
     │
     └─ lib/decoder.ex:695:21

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 164 │     ']'
     │     ~
     │
     └─ lib/encode.ex:164:5

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 193 │     '}'
     │     ~
     │
     └─ lib/encode.ex:193:5

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 211 │     '}'
     │     ~
     │
     └─ lib/encode.ex:211:5

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 284 │   slash_escapes = Enum.zip('\b\t\n\f\r\"\\', 'btnfr"\\')
     │                            ~
     │
     └─ lib/encode.ex:284:28

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 284 │   slash_escapes = Enum.zip('\b\t\n\f\r\"\\', 'btnfr"\\')
     │                                              ~
     │
     └─ lib/encode.ex:284:46

     warning: Decimal.to_string/1 is undefined (module Decimal is not available or is yet to be defined)
     │
 228 │     [?", decimal.to_string(value), ?"]
     │                  ~
     │
     └─ lib/encoder.ex:228:18: Jason.Encoder.Decimal.encode/2

     warning: Decimal.to_string/2 is undefined (module Decimal is not available or is yet to be defined)
     │
 242 │     [?", decimal.to_string(value, :normal), ?"]
     │                  ~
     │
     └─ lib/encode.ex:242:18: Jason.Encode.struct/4

    warning: Decimal.new/1 is undefined (module Decimal is not available or is yet to be defined)
    │
 94 │         decimal.new(string)
    │                 ~
    │
    └─ lib/decoder.ex:94:17: Jason.Decoder.float_decode_function/1

warning: struct Decimal.Error is undefined (module Decimal.Error is not available or is yet to be defined)
└─ lib/decoder.ex: Jason.Decoder.float_decode_function/1

     warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
     │
 273 │     case :gen_tcp.connect('localhost', port, @connect_opts) do
     │                           ~
     │
     └─ lib/gen_lsp/test.ex:273:27


    at /Users/thiago/.vscode/extensions/gp-pereira.refatorex-0.1.27/src/extension.ts:76:11
    at ChildProcess.exithandler (node:child_process:415:7)
    at ChildProcess.emit (node:events:519:28)
    at maybeClose (node:internal/child_process:1105:16)
    at Socket.<anonymous> (node:internal/child_process:457:11)
    at Socket.emit (node:events:519:28)
    at Pipe.<anonymous> (node:net:339:12)

Versions:

elixir 1.17.3-otp-26
erlang 26.2.5.5

@cleaver
Copy link

cleaver commented Jan 2, 2025

I had this error after installing the extension (in Cursor), but the issue went away after I restarted the editor.

Erlang/OTP 27 [erts-15.0.1] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1]

Elixir 1.17.2 (compiled with Erlang/OTP 27)

I'm using ASDF.

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

4 participants