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

preamble pch files soon exhaust small /tmp partition #984

Closed
6 tasks
ramestica opened this issue Jun 8, 2017 · 5 comments
Closed
6 tasks

preamble pch files soon exhaust small /tmp partition #984

ramestica opened this issue Jun 8, 2017 · 5 comments

Comments

@ramestica
Copy link

Please mark appropriate

  • [ x] rtags (rdm/rc/rp)
  • Emacs Lisp
    • ac-rtags.el
    • company-rtags.el
    • helm-rtags.el
    • flycheck-rtags.el
    • ivy-rtags.el
    • rtags.el

Problem description

Preamble pch files (e.g. /tmp/preamble-beb28d.pch) soon exhaust a small /tmp file system directory.

Expected behavior

I would expect a configuration option to set the path name to pch files destination.

Environment

  • Your operating system: Red Hat 6.7

  • LLVM/Clang version: 3.9.1/3.9.1

Feature request

Add option to specify path to pch files. I do not really use clang, therefore, I do not know its options and features much. It could very well be that my request is something to be set on that side instead. But given that it is rdm which triggers those files then I'm trying here.

@Andersbakken
Copy link
Owner

These are produced by clang but I figured out that you can control where clang puts them by setting TMPDIR

E.g.

TMPDIR=/biggertmp rdm ...

regards

Anders

@ramestica
Copy link
Author

that works; many thanks for your help, Anders.

Andersbakken added a commit that referenced this issue Aug 1, 2018
clean it out on startup of rdm as well as make subdirs for each rp.
@Andersbakken
Copy link
Owner

I actually went back and fixed this properly now :-)

@GNSubrahmanyam
Copy link

@Andersbakken How to disable preamble file

@Andersbakken
Copy link
Owner

I think it might not happen if you run like this:

--rp-daemon=0

Note that this likely will make indexing slower.

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

No branches or pull requests

3 participants