-
Notifications
You must be signed in to change notification settings - Fork 4
Fixed wrong number of arguments issue #4
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
Fixed wrong number of arguments issue #4
Conversation
|
Tried to patch my local version with this fix - resulted in the following error. |
Did you use the newest emacs-dashboard version? I only started getting it once I updated dashboard very recently |
I'm using the current melpa version: 20220409.620 which seems to be the newest one |
|
Then it is indeed weird 😨 This is the code relating to this change in the latest melpa version, and as we can see it is obvious that the change in this PR needs to be done when the start parameter is removed. Maybe there are some more that should be changed? I use the same version on both my machines, and have been running my change for weeks now. I'm not getting any issues, but that may also be due to my combination or packages. (many things like the different other dependencies can interfere here). Could you confirm where the error is coming from with a stacktrace or similar? (i.e, starting Emacs with -debug-init and/or use M-x toggle-debug-on-error if the error happens later). |
The only information I could get is the following:
When using "M-x dashboard-refresh-buffer" my dashboard reloads and instead of my usual sections, I get two Hackernews section displayed, one section as configured (10 entries), then another one filling the display. Starting with --debug-init didn't display any different information. |
|
First of all, the error you are describing with two Hackernews sections are NOT coming from this PR. It is weird if you have not experienced it before with the config above before.... I will explain it below 🙂 First, the reason I have not experienced it. I control the order that use-package loads the packages in, using You are setting the The error you got was indeed confusing. Should we maybe remove this add-to-list statement? Then it won't be added automatically, but I guess most people will add it manually with the amount of items they want anyway? |
I changed my config to the following:
Tbh, because elisp looks like some black magic fckery to me and since I don't really have time to dig into this at the moment, it's probably best to just let this sit for a while. |
That is indeed weird! I don't get the error message on any of my machines (both Macs atm) 🙁 I get the issue you talked about with two hackernews sections like I mentioned earlier, but no error message. Let's see if someone else is reporting any issues, or if the maintainer have any comments 🙂 elisp and the order of loading is indeed confusing at times! Have been using Emacs for over ten years now, and sometimes I still get confused on weird errors happening because of load-order 😱 |
|
Solved the problem. |
|
Hmm. I don't need to do anything to refresh it. You could try to add a Super happy that you got something useful from my blog! 😄 |
|
So the chance of anything happening with this seems PR seems pretty low considering there's another PR from 2019 just waiting to be reviewed or merged. I ran into some minor bug that needed tweaking and ended up just forking the project, with the intent of pulling in stuff like this. Mainly so I could simplify my config and not have to deal with https://github.com/carwin/dashboard-hackernews.el @hyakt is still active on GH so maybe he'll come back to the project eventually, but until then I'm happy to be the baby-sitter / interim maintainer. |
Yeah. Seems like he is not very active here anymore... Nice 🙂 Will star your repo to remember it for the future. Seems like the issue which this PR fixes is already fixed in your fork. Will remember your repo for future issues if any 🙂 |
Hah! I'm realizing now I was looking at emacs-dashboard/emacs-dashboard#344 and thinking it was this PR's commit. Typical Monday brain. At any rate, I'll still plan to be the placeholder maintainer. I want to go through #1 this weekend and port it over since I very much would like #2 sorted out, so if you or @jkdufair get the urge to do it sooner, go for it and I'll get it merged :) |
|
Not currently using dashboard but glad to help here if need be. |
|
@carwin , I see that both my new PR here and the old one from 2019 will both fix the current issue. I have not tested the older code yet, and I'm a little bit unsure if it will cause new issues (it is quite old after all). Should we maybe merge my PR and look into adapting the older code later? |
Currently, emacs-dashboard-hackernews crashes the entire dashboard when starting due to a wrong number of arguments issue. This is because of a fix in dashboard: emacs-dashboard/emacs-dashboard#344
As per my understanding, it works the same with just the start-argument removed (defaulting to 0).