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

Select module missing #348

Open
SylvieC opened this issue Aug 11, 2017 · 8 comments
Open

Select module missing #348

SylvieC opened this issue Aug 11, 2017 · 8 comments

Comments

@SylvieC
Copy link

SylvieC commented Aug 11, 2017

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
Copy link

alvivi commented Aug 12, 2017

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

@SylvieC
Copy link
Author

SylvieC commented Aug 13, 2017

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
Copy link

alvivi commented Aug 13, 2017

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
Copy link
Author

SylvieC commented Aug 14, 2017

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
Copy link
Collaborator

@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
Copy link

Is there a plan to merge this into master?

@stephenjbarr
Copy link

@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
Copy link

halcwb commented Feb 7, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants