Questions tagged [elm-make]

`elm make` is a tool for building Elm projects.

elm make is a tool for building Elm projects

It takes .elm files and compiles them to JavaScript

elm make guide

elm make tutorial

9 questions
3
votes
3 answers

elm-make: elm-package.json: openBinaryFile: does not exist

I do a fresh installation: npm i elm@0.18 -g I try to build using: elm-make ./src/scripts/MainModule.elm I get: elm-make: elm-package.json: openBinaryFile: does not exist (No such file or directory) But the elm-package.json file is right there…
Daniel Birowsky Popeski
  • 8,752
  • 12
  • 60
  • 125
3
votes
1 answer

Can VSCode (Visual Studio Code) be used to run elm-make?

I am new to VSCode. I am new to ELM. I am perfectly capable of using VIM and command line tools to create an ELM Project, but I want to utilize an IDE. I have chosen VSCode on advice from the internet since it seems to pick up some nice pieces of…
Owen Ivory
  • 244
  • 1
  • 9
3
votes
1 answer

elm-make can't find files after moving files into subdirectory

I refactored my Elm code to be located in the src directory. And I updated elm-package.json to have "source-directories": [ "src" ], However, now when I run elm-make Main.elm I get this error message: elm-make: Main.elm: openFile: does…
Eric Johnson
  • 1,084
  • 13
  • 24
3
votes
1 answer

How to stop annoying red Atom notifications when compiling Elm code

I've seen this issue for other languages too - for example here: https://github.com/atom/atom/issues/8152 - and the solution was to just stop all notifications. I actually want to stop only the notifications from elm-linter or whatever linter…
AIon
  • 12,521
  • 10
  • 47
  • 73
3
votes
1 answer

Specifying a specific module system when compiling Elm (vs. runtime checks)

Is there an option to let Elm know which module system you're targeting during compile time? E.g. something like a --target flag. I must admit that I haven't dug into elm-make that much. Currently it seems that it only occurs during…
Jay
  • 18,959
  • 11
  • 53
  • 72
2
votes
0 answers

Is there a VSCode problemMatcher for elm-make?

I would like to run elm-make as a task in VSCode and have the results show up in the PROBLEMS window. I've been able to set up a task that is working for me as follows. { "version": "0.1.0", "command": "elm", "isShellCommand": true, …
jpierson
  • 16,435
  • 14
  • 105
  • 149
1
vote
0 answers

Why does elm-make takes 20+ seconds in dev env, even when just adding whitespace to a file

Steps to reproduce this issue Instructions to Build and start local webpack devser: https://github.com/jigargosar/elm-simple-gtd#build-instructions touch src/elm/Mat.elm compilation time 20+sec (find output and hardware spec below) note: when…
Jigar
  • 8,762
  • 6
  • 25
  • 26
1
vote
0 answers

Not always receiving json messages from elm-make with --report-json flag

I am trying to use the --report=json feature of elm-make to receive parseable error messages about the source files. Though it seems that elm-make doesn't always report errors in json, even with the proper flag. I experimented with using elm-make…
lookyhooky
  • 222
  • 1
  • 6
0
votes
1 answer

elm make fails in alpine docker container

I am trying to dockerise my elm application (code is open source), here is my Dockerfile: # set base image as alpine FROM alpine:3.11.2 AS builder # download the elm compiler and extract it to /user/local/bin/elm RUN wget -O -…
J86
  • 14,345
  • 47
  • 130
  • 228