debois / elm-mdl

Elm-port of the Material Design Lite CSS/JS library
Apache License 2.0
965 stars 133 forks source link

Select module missing #348

Open SylvieC opened 7 years ago

SylvieC commented 7 years ago

It looks like the Select Module is missing https://debois.github.io/elm-mdl/#select is exactly what I need, but the corresponding module is missing. https://screencast.com/t/3GrjgkcddE (if you want to contact me I am on Elm slack sylviecottrell)

alvivi commented 7 years ago

Select module is only available is v9 branch. You can use elm-github-install if you want to try that version.

SylvieC commented 7 years ago

Hi, thanks for the reply. Would you mind giving me more information on how I could use that version? Do you think that just copy pasting the module Select in my directory will suffice, since I have all the other modules via the package?

alvivi commented 7 years ago

The select module has other dependencies. I think that your best option here is just using elm-github-install. Add this to your elm-package.json file, and then run elm-github-install:

    "dependency-sources": {
      "debois/elm-mdl": {
        "url": "https://github.com/debois/elm-mdl.git",
        "ref": "v9"
      }
    }
SylvieC commented 7 years ago

Hi! Thanks for the explanation. I was able to install the version. However, when I compile, I get the following error: elm-make: elm-stuff/packages/debois/elm-mdl/8.1.0/src/Material/Menu/Geometry.elm: getFileStatus: does not exist (No such file or directory) Do you have an idea why? Is there a file missing?

aforemny commented 7 years ago

@SylvieC Hi! alvivi is correct, you can get Select only through Github. Apologies for that!

To do that, clone the v9 branch to ./elm-mdl and add elm-mdl/src to elm-package. You will have to remove the dependency debois/elm-mdl and delete elm-stuff before rebuilding.

stephenjbarr commented 6 years ago

Is there a plan to merge this into master?

stephenjbarr commented 6 years ago

@SylvieC I am getting the same issue that you are, and looking at the v9 source there does not seem to be a file as described by that error. Have you solved the issue?

halcwb commented 6 years ago

I solved this using the local clone of the elm-mdl repository. But you have to switch to the v9 branch first! Then you have to add some missing package dependencies to your own package json:

My package json looks like this:

{
    "version": "1.0.0",
    "summary": "Calculate APLS formulas according patient age and/or weight",
    "repository": "https://github.com/halcwb/genapls.git",
    "license": "BSD3",
    "source-directories": [
        "src",
        "src/Util",
        "src/Model",
        "vendor",
        "vendor/elm-mdl",
        "vendor/elm-mdl/src"
    ],
    "exposed-modules": [],
    "dependencies": {
        "cuducos/elm-format-number": "4.0.2 <= v < 5.0.0",
        "elm-community/elm-time": "1.0.7 <= v < 2.0.0",
        "elm-community/string-extra": "1.4.0 <= v < 2.0.0",
        "elm-lang/core": "5.1.1 <= v < 6.0.0",
        "elm-lang/html": "2.0.0 <= v < 3.0.0",
        "elm-lang/http": "1.0.0 <= v < 2.0.0",
        "elm-lang/navigation": "2.1.0 <= v < 3.0.0",
        "elm-lang/virtual-dom": "2.0.4 <= v < 3.0.0",
        "evancz/url-parser": "2.0.1 <= v < 3.0.0",
        "debois/elm-dom": "1.2.3 <= v < 2.0.0",
        "elm-lang/mouse": "1.0.1 <= v < 2.0.0",
        "elm-lang/window": "1.0.1 <= v < 2.0.0"
    },
    "elm-version": "0.18.0 <= v < 0.19.0"
}

It would be nice thought if this was released as an official package.