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

Make Debug.log print in Elm format rather than Elixir format #238

Closed
wende opened this issue Dec 10, 2017 · 2 comments
Closed

Make Debug.log print in Elm format rather than Elixir format #238

wende opened this issue Dec 10, 2017 · 2 comments

Comments

@wende
Copy link
Owner

wende commented Dec 10, 2017

No description provided.

@wende wende changed the title Make Debug.log print in Elm format rather then Elixir format Make Debug.log print in Elm format rather than Elixir format Dec 20, 2017
@dstpierre
Copy link

dstpierre commented Apr 10, 2018

Hey @wende I just discover Elchemy and I'm completely stocked at the idea of using Elm to build app on top of Erlang.

I'd like to start getting familiar with the project and contribute. I've took a look at this issue and I'm not certain what needs to be done.

I found the log function in elchemy-core/elm/Elchemy/XDebug.elm - compared the Elm's Debug.log seems to output the same.

If you can clarify what I'm missing, that would be great.

Thanks

@wende
Copy link
Owner Author

wende commented Apr 11, 2018

@dstpierre Glad to hear that!

The difference is right now, that when you call Debug.log, the printout you see is the underlying Elixir format rather than the Elchemy (Elm) format. So if you were to do

MyType 1 2 "String" |> Debug.log "MyLog"

instead of getting:

MyLog: MyType 1 2 "String"

what you'd get would be:

MyLog: {:my_type, 1, 2, "String"}

Which is the real underlying structure, which - although helpful for debugging in some situations - might be tricky and painful to adjust to when expecting to be able to reason in the structures as you write them

@wende wende closed this as completed in #325 May 7, 2018
wende pushed a commit that referenced this issue May 7, 2018
wende added a commit that referenced this issue May 16, 2018
================

  * Closes #276 macro plugins (#331)
  * Update elm-package.json
  * Bug: Closes #327 (#328)
  * Closes #329 - Warn when elchemy not installed during project compilation (#330)
  * Closes #238 - Debug.log print in Elchemy format instead of Elixir format (#325)
  * Closes #322 Warn when elchemy line put incorrectly (#323)
  * Update README.md (#320)
  * correct typos (#318)
  * type savety and Elixir (#310)
  * Closes #313 Fixes interop in gitbook and new gitbbok (#317)
  * Corrected typo, set Compiler to 90% (#314)
  * Corrected typo (#306)
  * Corrected typos (#307)
  * correct typo (#308)
  * Delete FEATURES.MD
  * Create CODE_OF_CONDUCT.md (#304)
  * Typo in gitbook (#305)
  * 0.6.6 / 2018-03-05 ================
  * 0.6.6
  * format properly
  * 0.6.5 / 2018-03-05 ================
  * 0.6.5
  * format when > 1.6.0 (#300)
  * Update README.md
  * Better references in maturity of the project summary
  * Update SIDE_EFFECTS.md
  * Update SUMMARY.md
  * Update SUMMARY.md
  * Add SYNTAX OVERVIEW
  * Create SYNTAX.md
  * Fix to 292 (#293)
  * Closes #290 - incremental compiler bug  (#291)
  * 0.6.4 / 2018-02-07 ================
  * 0.6.4
  * Updated core
wende added a commit that referenced this issue May 23, 2018
================

  * Clean makes init not able to work (#341)
  * No project name (#339)
  * Correct typos in roadmap/STRUCTURES.md (#319)
  * Added formating and test (#337)
  * 0.7.2 / 2018-05-16 ================
  * 0.7.2
  * Closes #276 macro plugins (#331)
  * Update elm-package.json
  * Bug: Closes #327 (#328)
  * Closes #329 - Warn when elchemy not installed during project compilation (#330)
  * Closes #238 - Debug.log print in Elchemy format instead of Elixir format (#325)
  * Closes #322 Warn when elchemy line put incorrectly (#323)
  * Update README.md (#320)
  * correct typos (#318)
  * type savety and Elixir (#310)
  * Closes #313 Fixes interop in gitbook and new gitbbok (#317)
  * Corrected typo, set Compiler to 90% (#314)
  * Corrected typo (#306)
  * Corrected typos (#307)
  * correct typo (#308)
  * Delete FEATURES.MD
  * Create CODE_OF_CONDUCT.md (#304)
  * Typo in gitbook (#305)
  * 0.6.6 / 2018-03-05 ================
  * 0.6.6
  * format properly
  * 0.6.5 / 2018-03-05 ================
  * 0.6.5
  * format when > 1.6.0 (#300)
  * Update README.md
  * Better references in maturity of the project summary
  * Update SIDE_EFFECTS.md
  * Update SUMMARY.md
  * Update SUMMARY.md
  * Add SYNTAX OVERVIEW
  * Create SYNTAX.md
  * Fix to 292 (#293)
  * Closes #290 - incremental compiler bug  (#291)
  * 0.6.4 / 2018-02-07 ================
  * 0.6.4
  * Updated core
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants