-
Notifications
You must be signed in to change notification settings - Fork 117
simplify error message when repo not found #184
Comments
To do this, we would have to:
If we just passed the location in the file where the dependency was declared, all the errors would be very clear and straightforward. It would be cleaner probably if we had a full JS/CSS parser, but file-deps is nice because it's probably faster than parsing a full syntax tree (seems like you guys chose the non-syntax tree approach b/c of that). Thoughts? |
To add line number to file-deps, all that would need to be done is split the input string, and match the patterns in there to each line rather than the whole file at once. Since we only support single line static statements anyways like |
+1 on making the error nicer, but this approach seems to complicate the implementation quite a bit. I don't think the line number matters as much as I think we could accomplish this by printing out a slice of the half complete Unfortunately, I still think the cleanliness will suffer from this change. So I'd like to have a clean approach before we take this on. |
It would already be an improvement just to report On Thu, Aug 14, 2014 at 5:19 PM, Matthew Mueller [email protected]
|
@ianstormtaylor that would be an improvement but it'd still be confusing, because you wouldn't know which component is requiring it, so you'd have to look through lots of components potentially |
True, but it's a better user experience that's quick to implement without On Thu, Aug 14, 2014 at 8:31 PM, Lance Pollard [email protected]
|
+1 on this, I understand it would make it harder to implement, but if its possible telling me where the error occurred would be huge |
If duo-package doesn't resolve the repo, it gives a hard to debug error like this:
Maybe we could be nice and say something like this instead:
That way it shows exactly where the problem was defined. Otherwise it takes 5-10 minutes sometimes to find where the problem is.
The text was updated successfully, but these errors were encountered: