Hello,
> So it seems that the problem is in the connection between both because
> this repo is only a few MB, so far it is unlikely to be correct
> generating hundreds of GB of tags.

Both Universal Ctags and Gtags use temporary files, so it's hard to
say anything from these facts alone.

By the way, that's a pretty big file, you might want to look into that.

[ClickHouse-master/]
-rw-r--r--@ 1 owner  staff  14740550  5  5 06:00
./tests/queries/0_stateless/data_json/ghdata_sample.json
-rw-r--r--@ 1 owner  staff   4914595  5  5 06:00
./tests/queries/0_stateless/data_json/nbagames_sample.json

To exclude json files from processing:
[gtags.conf]
+---------------------------------------------------------------
|...
|universal-ctags|setting to use Universal Ctags plug-in parser:\
|       ...
|#       :langmap=JSON\:.json:\
|       ...

Regards,
Shigio

On Mon, May 5, 2025 at 12:29 AM Ergus <[email protected]> wrote:
>
> Hi:
>
> I am trying to use gtags with the new-tags plugin for this repo:
>
> https://github.com/ClickHouse/ClickHouse
>
> I use this command line command which is the same I use for all my
> projects:
>
> ```
> gtags --gtagsconf=/usr/share/gtags/gtags.conf --gtagslabel=universal-ctags 
> --explain
> ```
>
> But the command fails because it says that there is not space in the
> device.
>
> I checked locally and the issue seems to be that the intermediate
> /tmp/ctags.[something] file grows too much.
>
> I set the TMPDIR env to a place in my sdd and it filled my available
> 500GB.
>
> When I try `ctags -R` directly it works with no issues.
> The same with gtags alone removing `--gtagslabel=universal-ctags`
>
> So it seems that the problem is in the connection between both because
> this repo is only a few MB, so far it is unlikely to be correct
> generating hundreds of GB of tags.
>
> I am doing something wrong or it this actually an issue?
>
> Best,
> Ergus
>
>
>


-- 
Shigio YAMAGUCHI <[email protected]>
PGP fingerprint:
26F6 31B4 3D62 4A92 7E6F  1C33 969C 3BE3 89DD A6EB

Reply via email to