"An error occurred while compiling Enum: Debug info not available"

Open
#2 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
elixir, javascript
Domain
build-system

Research direction

Inspect assets/js/app.js and the generated build path it imports, then compare the ElixirScript compiler output with the reported Erlang/OTP 20 and IEx OTP 19 versions. Done means the example compiles without the diagnostic and assets/js/app.js can resolve Elixir.Todo.Main.js.

Written by the indexing model from the issue text.

Description

When trying to get the example running I get a warning, namely:

[warning] Mix compiler :elixir_script was supposed to return :ok | :noop | {:ok | :noop | :error, [diagnostic]} but it returned [%Mix.Task.Compiler.Diagnostic{compiler_name: "elixir_script", details: nil, file: nil, message: "An error occurred while compiling Enum: Debug info not available", position: nil, severity: :error}]

Followed by an error:

ERROR in ./js/app.js
Module not found: Error: Can't resolve './build/Elixir.Todo.Main.js' in '/home/smoes/git/todo-elixirscript/assets/js'
 @ ./js/app.js 22:0-47

What am I doing wrong?

> iex -v
Erlang/OTP 20 [erts-9.3] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:10] [hipe] [kernel-poll:false]

IEx 1.6.4 (compiled with OTP 19)```  
Dominant language
Elixir
Stars
48
Forks
8
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from elixirscript/todo-elixirscript

All issues in elixirscript/todo-elixirscript

Similar issues

More Elixir issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.