elm-mdl icon indicating copy to clipboard operation
elm-mdl copied to clipboard

Select module missing

Open SylvieC opened this issue 6 years ago • 8 comments

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)

SylvieC avatar Aug 11 '17 19:08 SylvieC

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

alvivi avatar Aug 12 '17 13:08 alvivi

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?

SylvieC avatar Aug 13 '17 18:08 SylvieC

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"
      }
    }

alvivi avatar Aug 13 '17 22:08 alvivi

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?

SylvieC avatar Aug 14 '17 16:08 SylvieC

@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.

aforemny avatar Aug 21 '17 08:08 aforemny

Is there a plan to merge this into master?

stephenjbarr avatar Jan 29 '18 11:01 stephenjbarr

@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?

stephenjbarr avatar Jan 29 '18 11:01 stephenjbarr

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.

halcwb avatar Feb 07 '18 08:02 halcwb