-
Notifications
You must be signed in to change notification settings - Fork 770
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
Add tex identifier regex #480
Conversation
Thanks for the PR!
This would lead to a similar situation we have today with the Unfortunately we have to more strongly motivate people to do the right thing. Review status: 0 of 2 files reviewed at latest revision, 1 unresolved discussion. ycmd/identifier_utils.py, line 98 [r1] (raw file): While you're at it, could you fix the haskell one above too? It has the same issue. Comments from Reviewable |
I was just concerned that in some languages it might be a matter of convention what should be allowed as identifier. But I guess YCM can always cover the bigger set. I changed the
BTW shouldn't |
They're in third_party folder. I recommend using our vagrant environment for ycmd development. See DEV_SETUP. |
Well I tried vagrant. On one machine I couldn't use it because in the Ubuntu 14.04 packages there is only an old version that doesn't find your machine and I have no root access there. On the other machine I think it failed due to a lack of RAM and/or disk space. Something a bit more lightweight like docker would be nice. Anyhow, if I understand this reviewable correctly now this PR only needs two thumbs up? |
I'm sorry, what do you mean? An old version of what? And which machine of ours don't you find? |
Sorry for not being clear. The version of vagrant (1.4.3) in the Ubuntu 14.04 packages does not work with your Vagrantfile which demands "ubuntu/trusty64" which is to be expected if I understand Varying-Vagrant-Vagrants/VVV#354 correctly. So there is no trusty inception possible ;). And I didn't want to go through the hassle of building vagrant myself just to be able to build ycmd. |
That is the image that will be downloaded from the vagrantcloud, not the version of ubuntu required. |
Yes I am aware of that. Vagrant 1.4.3 does not find trusty64 in the vagrantcloud as a lot of people are confirming in the issue I mentioned. |
Sorry 😜 |
If you're not able to get our vagrant setup working, then there are some manual instructions. Alternatively, if you're totally stuck, you can just enable Travis for your fork and Travis will run everything when you push a commit. Painful and slow TBH. I successfully run the tests on multiple OSes outside of our vagrant setup. |
Thanks 😃. I will try manual installation next time harder. Would still be happy to see 2 LGTMs as all tests pass. |
Thanks! @homu r=Valloric
|
📌 Commit 71884f4 has been approved by |
Add tex identifier regex Commonly used latex identifiers are not covered by the default regex. The new regex is covered by test cases similar to the ones for perl and haskell. With this regex it is easy to reference with YCM from all figures, sections, etc. in the document. Using `fig:` and so on is best practice in latex but I haven't found a spec that could serve as reference. I wasn't able to run the full test suite (see message on ycmd-users) but I ran ``` nosetests ycmd/tests/identifier_utils_test.py ``` successfully. Ultimatively, I think the user should be able to give a custom identifier regex for different filetypes in their .vimrc (and its analogue in other editors). <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/valloric/ycmd/480) <!-- Reviewable:end -->
☀️ Test successful - status |
Commonly used latex identifiers are not covered by the default regex.
The new regex is covered by test cases similar to the ones for perl and haskell.
With this regex it is easy to reference with YCM from all figures, sections, etc. in the document. Using
fig:
and so on is best practice in latex but I haven't found a spec that could serve as reference.I wasn't able to run the full test suite (see message on ycmd-users) but I ran
successfully.
Ultimatively, I think the user should be able to give a custom identifier regex for different filetypes in their .vimrc (and its analogue in other editors).
This change is![Reviewable](https://camo.githubusercontent.com/1541c4039185914e83657d3683ec25920c672c6c5c7ab4240ee7bff601adec0b/68747470733a2f2f72657669657761626c652e696f2f7265766965775f627574746f6e2e737667)