Open MarkFarmiloe opened 6 years ago
I tried this on my machine, but I get a compiler error after changing ChangedModule.elm
. It did compile successfully the first time, before I changed the ChangedModule.elm
, I am on a mac running 0.19.0.
elm make src/Main.elm
Detected errors in 1 module.
-- TYPE MISMATCH ---------------------------------------------- src/MyModule.elm
The 1st argument to `view` is not what I expect:
8| ChangedModule.view "Mark"
^^^^^^
This argument is a string of type:
String
But `view` needs the 1st argument to be:
Bool
Hint: Elm does not have “truthiness” such that ints and strings and lists are
automatically converted to booleans. Do that conversion explicitly!
Are you compiling with elm make
, or something else?
I am using elm make from the terminal window in VS Code. Must be something to do with Windows 10 or VS Code or both. If I find out what it is, I'll report back.
I can give it a shot on a Windows machine tonight and report back as well.
I was able to repro this using the files from @MarkFarmiloe's original post. This is the command I'm using for compiling:
elm make src/Main.elm --output="Main.js"
I am using elm 0.19.0 and macOS 10.12.6.
I've successfully reproduced this using my own code.
Code, issue details and everything else you need can be found here: https://github.com/icidasset/elm-0.19-issue
Let me know if I missed anything. (Sidenote: I've noticed this issue in multiple projects)
@icidasset I couldn't reproduce using your project, but I think I experienced something similar after upgrading a dependency to a new major version.
What environment do you recreate this in?
I'll try to recreate my experience in an SSCCE too.
@absynce Hey. I can still reproduce the same issue using that project of mine. Did you follow the steps/procedure in the readme?
Environment: macOS 10.14 (when I project, this was 10.13) Elm 0.19.0 using asdf version manager
Let me know if you need more info.
Did some more testing on this (using my https://github.com/icidasset/elm-0.19-issue code)
I only have the issue when the elmjutsu
plugin is active.
Tested this again with the new 0.19.1
alpha and didn't have the issue.
This is most likely related to the "filelock problem" which is addressed in 0.19.1
.
I believe this is the same root problem as https://github.com/elm/compiler/issues/1956 which was fixed across these three commits:
Can someone confirm that the particular manifestation here is fixed by 0.19.1?
Using Elm 0.19 on Windows 10 Pro editing in VS Code, browser is Edge.
If you successfully compile a project, then make a change to a module which would cause another module not to compile, but do not change that affected module, recompiling the project reports success and running it causing uncertain results.
The example below results in nothing showing in the browser, but in my larger project I am getting
undefined
, which Elm promises I will not get!To reproduce, create the
index.html
,Main.elm
,MyModule.elm
, and initialChangedModule.elm
from below, compile and run. Not too exciting.Then change
ChangedModule.elm
as shown below. Recompiling reports success, but running now shows nothing.index.html:
Main.elm:
MyModule.elm:
initial ChangedModule.elm:
final ChangedModule.elm: