Skip to content

vim version#80

Merged
amirbilu merged 3 commits intomasterfrom
vim-version
Jun 18, 2023
Merged

vim version#80
amirbilu merged 3 commits intomasterfrom
vim-version

Conversation

@amirbilu
Copy link
Copy Markdown
Contributor

  • switch to vim version
  • switch to vim version

@amirbilu
Copy link
Copy Markdown
Contributor Author

@aarondill can you please approve? this is following #79

Comment thread lua/tabnine/binary.lua
return semver.parse(path)
end, paths)

table.sort(paths)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does table.sort() work on these objects? have we checked this?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nevermind, having tested myself, it seems that it does, in fact, work. I wonder if internally it's using the __lt/__gt methods...

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh yes.. it does :)

Copy link
Copy Markdown
Contributor

@aarondill aarondill left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only thing I see is that you seem to have forgotten to remove the actual third_party/semver (and the whole third_party folder can be removed) from the repo

@amirbilu amirbilu merged commit ab88220 into master Jun 18, 2023
@amirbilu amirbilu deleted the vim-version branch June 18, 2023 07:09
aarondill added a commit to aarondill/tabnine-nvim that referenced this pull request Jun 19, 2023
This reverts commit ab88220.
vim.version is not supported in `nvim <9.0.0`
aarondill added a commit to aarondill/tabnine-nvim that referenced this pull request Jun 19, 2023
This reverts commit ab88220.
vim.version is not supported in `nvim <0.9.0`
@aarondill aarondill mentioned this pull request Jun 19, 2023
amirbilu pushed a commit that referenced this pull request Jun 19, 2023
* Revert "vim version (#80)"

This reverts commit ab88220.
vim.version is not supported in `nvim <0.9.0`

* fix use of vim.version for support with nvim <0.9.0

* use semver with vim.version without additional string processing

better uses the semver() function to process vim.version, as we already have it split into major, minor, patch
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

Successfully merging this pull request may close these issues.

2 participants