Skip to content

bug report: iex and vscode plugin not working #1

@lei0zhou

Description

@lei0zhou

Thanks for making this a reality!

after install vscode plugin, and mix archive.install github thmsmlr/livescript

I got two issues,

(1)
in VScode, there is start livescript server but I cannot click it, and in command pallet there is no start livescript server command

(2) I created a testing.exs with "a=1" in it.
run iex -S mix livescript testing.exs, I got the following error

Erlang/OTP 27 [erts-15.1] [source] [64-bit] [smp:12:12] [ds:12:12:10] [async-threads:1] [jit]

Listening for commands on port 13137
Interactive Elixir (1.17.3) - press Ctrl+C to exit (type h() ENTER for help)

22:25:04.942 [error] GenServer Livescript terminating
** (CaseClauseError) no case clause matching: 1
lib/mix/tasks/livescript.ex:300: anonymous fn/2 in Livescript.execute_code/1
(elixir 1.17.3) lib/enum.ex:4782: Enum.take_while_list/2
(elixir 1.17.3) lib/enum.ex:4783: Enum.take_while_list/2
lib/mix/tasks/livescript.ex:293: Livescript.execute_code/1
lib/mix/tasks/livescript.ex:151: Livescript.handle_info/2
(stdlib 6.1) gen_server.erl:2345: :gen_server.try_handle_info/3
(stdlib 6.1) gen_server.erl:2433: :gen_server.handle_msg/6
(stdlib 6.1) proc_lib.erl:329: :proc_lib.init_p_do_apply/3
Last message: :poll
State: %{last_modified: nil, file_path: "/.../testing.exs", executed_exprs: []}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions