Erlang Error in Elixir Language Server with Surface
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 25/100
- issue の種類
- バグ
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- elixir, vscode
調査の方向性
Reproduce the issue with a new Phoenix project, Surface 0.11.0, Elixir 1.15.4, Erlang 26.0.2, and the VS Code ElixirLS extension. Start with the ElixirLS log and the Surface.BaseComponent.using expansion around Module.register_attribute/3. Done means writing a Surface slot no longer causes the ErlangError and Surface intellisense is available.
索引モデルが issue の本文から書いたものです。
説明
Describe the bug
I started a new project from zero using the mix phx.new, and then I ran the mix surface.init --demo --catalogue --layouts
to set up Surface.
After I started to follow the Getting Started guide, I realized there is no Surface intellisense when I started to write the slot macro.
I use Visual Studio Code with ElixirLS extension.
Checking the elixir-ls logs I could see the log below:
[Warn - 16:16:39] ** (ErlangError) Erlang error: "ArgumentError during metadata build pre:\ncould not call Module.register_attribute/3 because the module NoahWeb.Components.ExampleComponent is already compiled\nast node: {:use, [end_of_expression: [newlines: 0, line: 2, column: 24], line: 2, column: 3], [{:__aliases__, [last: [line: 2, column: 15], line: 2, column: 7], [:Surface, :Component]}]}"
(elixir 1.15.4) lib/module.ex:2310: Module.assert_not_readonly!/2
(elixir 1.15.4) lib/module.ex:1660: Module.register_attribute/3
(surface 0.11.0) expanding macro: Surface.BaseComponent.__using__/1
nofile: NoahWeb.Components.ExampleComponent (module)
How to reproduce it
Create a new project with the last version of Phoenix.
Add the last version of surface.
Use Visual Studio Code with ElixirLS extension. Both in the last version released.
The behavior you expected
Your Environment
Surface: v0.11.0
LiveView: v0.19.5
Elixir: v1.15.4
Erlang: v26.0.2
- 主要言語
- Elixir
- スター
- 2.1k
- フォーク
- 146
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
surface-ui/surface のほかの issue
-
難易度 1/5 1〜3時間 初心者へのやさしさ 78/100
surface-ui/surface#634 · リアクション 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
surface-ui/surface#770 ·
-
Website is downオープン
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
surface-ui/surface#768 · コメント 4 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
surface-ui/surface#762 · コメント 2 件 · リアクション 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
surface-ui/surface#759 · リアクション 1 件 ·
surface-ui/surface の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 2 日以内に返信
-
ci-cd
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
carverauto/serviceradar#5648 ·
メンテナーはふだん 1 日以内に返信
-
Bug Elixir Waiting for: Product Owner
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
getsentry/sentry-elixir#1242 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
open-telemetry/opentelemetry-erlang-contrib#846 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100