-
Notifications
You must be signed in to change notification settings - Fork 85
on empty line-suffix, don't get completions #333
Conversation
clearly tests are failing |
Same output for latest release and the dev build, the test is expecting
I'm clueless how this and my last commit could have caused this change. Different node version? |
Should I edit the snapshot, or modify the error message? |
Was it the node version the problem? |
Node version might have changed the message, see #334 |
@hlolli I fixed the problems with CI, I was wondering if you can rebase and retry |
completions (reduce (fn [ret item] | ||
(doto ret | ||
(.push (str line-prefix item)))) | ||
completions (if (empty? line-match-suffix) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am surprised that the completion-candidates
fn does not depend on the prefix item. I would expect it is it's responsibility to do the if
. Let me try to push a commit here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh I see completion-candidates
comes up with all the completions all the time
I took a little bit of time to check what is going on here and opened an alternative branch. Hopefully the fixes are good enough. We cannot filter out everything when |
The new tests make sure lumo correctly handles completions for symbols with numbers (see #333), lines starting with (, ending with / or completely empty.
The new tests make sure lumo correctly handles completions for symbols with numbers (see #333), lines starting with (, ending with / or completely empty.
The new tests make sure lumo correctly handles completions for symbols with numbers (see #333), lines starting with (, ending with / or completely empty.
I'm going to close this in favor of #337 |
The new tests make sure lumo correctly handles completions for symbols with numbers (see #333), lines starting with (, ending with / or completely empty.
The new tests make sure lumo correctly handles completions for symbols with numbers (see #333), lines starting with (, ending with / or completely empty.
The new tests make sure lumo correctly handles completions for symbols with numbers (see #333), lines starting with (, ending with / or completely empty.
This is an old pain, but this is not a final solution as symbol names ending with alphanumeric number are legal symbols in Clojure as far as I can tell. Next step should be to modify
(re-find #":?([a-zA-Z-.<>*=&?]*|^\(/)$" line)
to something better (including number, or match all except xy). In any case tough, if this re-find doesn't find anything, (ie. invalid?) then completions should not continue, as empty string causes something like this