elm-lang / elm-make

A build tool for Elm projects
BSD 3-Clause "New" or "Revised" License
175 stars 45 forks source link

Javascript error for elm-package.json "repository" strings where the github username starts with a capital when built with '--debug' #128

Open NickAger opened 7 years ago

NickAger commented 7 years ago

Tested in 0.18

to:

"repository": "https://github.com/User/project.git",

that is user has changed to User.

TypeError: undefined is not an object (evaluating '_elm_lang$core$Native_Scheduler.nativeBinding')

Thanks to @lorenzo on slack for locating the issue for me.

process-bot commented 7 years ago

Thanks for the issue! Make sure it satisfies this checklist. My human colleagues will appreciate it!

Here is what to expect next, and if anyone wants to comment, keep these things in mind.

evancz commented 7 years ago

What are other strings you tried? What is the length where it starts messing up?

NickAger commented 7 years ago

@evancz it turns out not to be related to the length of the repository string, rather to capitalising the initial letter of the github username in the repository string. So the default works:

"repository": "https://github.com/user/project.git",

whereas changing user to User causes the javascript exception:

"repository": "https://github.com/User/project.git",

I've edited the title and description to match.