Skip to content
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

Support multiple MiKTeX installations in MiktexSDK, bstinputs, texcount and command redefinitions #1766

Merged
merged 7 commits into from
Feb 3, 2021

Conversation

PHPirates
Copy link
Collaborator

@PHPirates PHPirates commented Jan 29, 2021

Fix TEX-93
Fix #1757
Fix #1723
Fix #1753
Fix #1765 (well, workaround)

Summary of additions and changes

  • Apparently the 'where' command on Windows can return multiple paths
    I think the bug is already in 0.7.3, but I assume it can only happen if you have multiple MiKTeX installs.
  • Add BSTINPUTS by default to bibtex run config, similar to BIBINPUTS
  • Use texcount for word count if available. Not perfect, but good enough for now.
  • Fix false positive for missing import inspection: when command is being defined
  • Make 'command already defined' a warning, because the original command may not be imported (maybe we should check for this)

@PHPirates PHPirates added this to the b0.7.4 milestone Jan 29, 2021
@PHPirates PHPirates self-assigned this Jan 29, 2021
results.add(path.substring(0, index))
val paths = "where pdflatex".runCommand()
if (paths != null) {
paths.split("\r\n").forEach { path ->
Copy link
Member

Choose a reason for hiding this comment

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

would System.lineSeparator() be better?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

In theory, yes, but for MikTeX on Linux/Mac the pdflatex executable will not be present in that directory anyway - which is a separate problem I need to look into. When I do so, I might rename this one to WindowsMiktexSdk.

@PHPirates PHPirates changed the title Support multiple MiKTeX installations in MiktexSDK Support multiple MiKTeX installations in MiktexSDK, bstinputs and texcount Jan 29, 2021
@PHPirates PHPirates changed the title Support multiple MiKTeX installations in MiktexSDK, bstinputs and texcount Support multiple MiKTeX installations in MiktexSDK, bstinputs, texcount and command redefinitions Jan 29, 2021
@PHPirates PHPirates merged commit 18c7212 into master Feb 3, 2021
@PHPirates PHPirates deleted the illegal-char branch February 3, 2021 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants