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

All "Project Dependencies" showing "Unknown" status #230

Open
euphbriggs opened this issue Mar 10, 2020 · 1 comment
Open

All "Project Dependencies" showing "Unknown" status #230

euphbriggs opened this issue Mar 10, 2020 · 1 comment

Comments

@euphbriggs
Copy link

Hello and thank you for the solid project that you've created. I used it on all my Elm projects.

I'm having trouble with a new project where all of the packages on the "Project Dependencies" are showing with an "Unknown" status (shown below). I'm not sure what info is useful for debugging the issue. Everything seems to be functioning properly (no error messages). Do you know why the page would show "Unknown" for all of the dependencies?

image

Version Info

$ elm --version
0.19.1

$ elm-analyse --version
0.16.5

Elm Analyse Output

$ elm-analyse -s
Elm Analyser server starting with config:
{
  port: 3000,
  elmFormatPath: 'elm-format',
  format: 'human',
  open: false
}
Listening on http://localhost:3000
INFO: Started...
INFO: No configuration provided. Using default configuration.
INFO: Load dependency the-sett/elm-string-case 1.0.2
INFO: Load dependency ryannhg/date-format 2.3.0
INFO: Load dependency rtfeldman/elm-iso8601-date-strings 1.1.3
INFO: Load dependency elm-community/list-extra 8.2.3
INFO: Load dependency elm/time 1.0.0
INFO: Load dependency elm/json 1.1.3
INFO: Load dependency elm/http 2.0.0
INFO: Load dependency elm/html 1.0.0
INFO: Load dependency elm/core 1.0.4
INFO: Load dependency elm/browser 1.0.2
INFO: Load dependency cuducos/elm-format-number 7.0.0
INFO: Load dependency NoRedInk/elm-json-decode-pipeline 1.0.0
INFO: Loaded the-sett/elm-string-case from cache
INFO: Loaded elm/json from cache
INFO: Loaded elm/http from cache
INFO: Loaded elm/browser from cache
INFO: Loaded cuducos/elm-format-number from cache
INFO: Loaded elm/core from cache
INFO: Loaded NoRedInk/elm-json-decode-pipeline from cache
INFO: Loaded elm-community/list-extra from cache
INFO: Loaded rtfeldman/elm-iso8601-date-strings from cache
INFO: Loaded elm/html from cache
INFO: Loaded elm/time from cache
INFO: Loaded ryannhg/date-format from cache
INFO: Load file src/Api.elm...
INFO: Load file src/BoolInput.elm...
INFO: Load file src/Export.elm...
INFO: Load file src/LocationAccounts.elm...
INFO: Load file src/Model.elm...
INFO: Load file src/TextInput.elm...
INFO: Load file src/View.elm...
Found 0 message(s)

elm.json

{
    "type": "application",
    "source-directories": [
        "src"
    ],
    "elm-version": "0.19.1",
    "dependencies": {
        "direct": {
            "NoRedInk/elm-json-decode-pipeline": "1.0.0",
            "cuducos/elm-format-number": "7.0.0",
            "elm/browser": "1.0.2",
            "elm/core": "1.0.4",
            "elm/html": "1.0.0",
            "elm/http": "2.0.0",
            "elm/json": "1.1.3",
            "elm/time": "1.0.0",
            "elm-community/list-extra": "8.2.3",
            "rtfeldman/elm-iso8601-date-strings": "1.1.3",
            "ryannhg/date-format": "2.3.0",
            "the-sett/elm-string-case": "1.0.2"
        },
        "indirect": {
            "elm/bytes": "1.0.8",
            "elm/file": "1.0.5",
            "elm/parser": "1.1.0",
            "elm/url": "1.0.0",
            "elm/virtual-dom": "1.0.2",
            "myrho/elm-round": "1.0.4"
        }
    },
    "test-dependencies": {
        "direct": {},
        "indirect": {}
    }
}
@euphbriggs
Copy link
Author

I did a little digging on my lunch break and I was curious if this could be part of the problem. If you hit the URL shown in the fetchDependencies function you'll get the output below (only including a snippet).

[
  {
    "name": "elm/browser",
    "summary": "Run Elm in browsers, with access to browser history for single-page apps (SPAs)",
    "license": "BSD-3-Clause",
    "version": "1.0.2"
  },
  {
    "name": "elm/bytes",
    "summary": "Work with sequences of bytes (a.k.a. ArrayBuffer, typed arrays, DataView)",
    "license": "BSD-3-Clause",
    "version": "1.0.8"
  },
  {
    "name": "elm/core",
    "summary": "Elm's standard libraries",
    "license": "BSD-3-Clause",
    "version": "1.0.5"
  }
]

In the JSON above, the version field is a single string value, but the RegistryItem interface is expecting an array of strings called versions.

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

1 participant