-
Notifications
You must be signed in to change notification settings - Fork 148
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 texlab for LaTeX #288
Add texlab for LaTeX #288
Conversation
…to add-texlab-spec
Ha! Thanks for the approval, but still cooking on this one.
I have hit some walls getting chktex to build... I feel like I, personally,
would really benefit from having the linter, so I'm going to keep churning
on that, hopefully have something to show soon
|
I did get |
One issue, though, is that the diagnostics don't show up on save... and apparently should by default. Will add a test that enables them, i guess. |
It works even after closing the notebook and opening it again. It consistently does not work in the |
It seems that it does. Renaming |
"#### Example: Getting a $\\LaTeX$ stack\n", | ||
"\n", | ||
"```bash\n", | ||
"conda install -y conda-forge tectonic texlab chktex\n", |
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.
Is this conda-only or is there a reasonable (maybe not single command I guess) alternative for let's say Ubuntu users?
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.
latex installation, care, and feeding, is one of my personal circles of support hell. for example, because i run a small root partition, i can't even use the "easy" route on my machine, unless i handpick all of the stuff it would need to work, because i would run out of disk space.
with this, like nodejs, or anything else in the stack, providing inaccurate install docs is worse than nothing, so i think the best thing we can do is:
- provide a link to the various official install docs
- show an example of what we know works, because keeping it working is on the critical path to us merging adding/changing feature.
the only way i'd be interested in documenting or supporting n distros, would be if we had additional Dockerfiles we ran the full battery of tests against with the release tarballs... and that seems like an awful lot for this
That being said, it looks like the docs aren't pick up the new spec:
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.
About the docs - R does not show up on the PR builds too, but it is ok on master; would it have to do with your changes, or is it a limitation of the PR builds?
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.
Well, my personal standpoint is that having a Debian/Ubuntu install is usually good enough. Not only because it is a common one, but also because I can always google "how to install X ubuntu package equivalent on Y" and it more often works than it doesn't (unless speaking of exotic distros). This trick also works for Y=Mac (sometimes).
But I think this is not holding this PR from being merged - let's just make sure we show links to official docs of the tools we require to make latex work!
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 guess let's see how the docs build goes... I didn't have to do anything too fancy to the specs.
Debian/Ubuntu install is usually good enough
I suppose... but again, I've never tried to do one... it's definitely one of those things I Docker-and-forget in a build toolchahin. Indeed let's hope that the texlab docs link is sufficient.
come to think of it, this is why |
Excellent catch on the spaces. Of course that would break something in a stack this weird. Everything can go wrong once humans who, you know, use computers to get work done, start getting to make choices! Sigh. I know there are some file path normalization things that changed in 2.2.0, and we likely have some more places where bad stuff happens. I'll do a little more looking later today... |
So in I guess we need to figure The One Way we are going to standardize these... I can start looking on this pr, or we can handle it on a separate issue. The worst way, we'll want a |
Great find, thank you! I think, it's best to address it here so we can have test in. I would be happy with either of the two (an util or the |
I tried out |
the OSX fail looks spurious, checking out the win fails on my vm... |
Actually, one must indeed still add the config to get onChange or onSave
diagnostics.
… |
Back to green, no further changes intended, and might even be out of the loop for a couple days (wifi-depending). |
Hooray! Also shows up fine on the docs. |
References
Code changes
null
instead of{}
forinitializedParams
latexmk
which is hard to ensure under test. a config test of using tectonic would be coolNot Appearing on this issue
hovertransclusions?%%latex
isn't working just yet, %%latex doesn't show diagnostics #296custom commands?User-facing changes
.tex
files 🎉Backwards-incompatible changes
Chores