question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ttag-cli version 1.5.0 and up not working

See original GitHub issue

I am just approaching ttag for the first time (thank you for the nice library, by the way) and setting up some experiments. I just noticed some strange behavior with ttag-cli: it seems like all versions from 1.5.0 to 1.8.0 fail to extract translations, while 1.3.0-1 and 1.4.0 work correctly.

For this experiment I am using the quickstart example, which I clone directly from github, but I tried with other simple JavaScript files, with same results:

# Clone the repo to test the example
cd /tmp
git clone https://github.com/ttag-org/ttag.git
cd ttag/examples/quickstart

# Test version 1.4.0: this works correctly
npm i ttag-cli@1.4.0 \
    && ./node_modules/.bin/ttag extract counter.js \
    && cat translations.pot

# command output:
# [ ... ]
# + ttag-cli@1.4.0
# added 218 packages from 119 contributors in 17.49s
# [ ... ]
# ✔ [ttag] translations extracted to translations.pot
# ... output of cat follows (file looks correct)
# msgid ""
# msgstr ""
# "Content-Type: text/plain; charset=utf-8\n"
# [ ... ]

# Test version 1.5.0: this does not work, the file is empty
npm i ttag-cli@1.5.0 \
    && ./node_modules/.bin/ttag extract counter.js \
    && cat translations.pot

# command output:
# [ ... ]
# + ttag-cli@1.5.0
# added 315 packages from 135 contributors and audited 2604 packages in 10.746s
# [ ... ]
# ✔ [ttag] translations extracted to translations.pot
# ... no more output from cat, file is empty

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
matpencommented, Apr 5, 2020

I just tested 1.8.2 and it seems to work correctly! Thank you for working on that!

0reactions
AlexMostcommented, Apr 5, 2020

fixed in ttag-cli@1.8.1. Have checked that locally, seems like it works. Thanks for the report and, please, let me know if you will encounter some more issues!

Read more comments on GitHub >

github_iconTop Results From Across the Web

My app stopped working when upgraded to version 1.5.0 #1025
I upgraded the Shopify CLI from 1.4.1 to 1.5.0 for my Windows following the instructions from here. When I executed shopify serve to...
Read more >
Your global Angular CLI version is greater than your local
The installed local Angular CLI version is older than the latest stable version. Installed a temporary version to perform the update.
Read more >
Changelog - ttag
1.5.0. This update touches only ttag-cli . extractLocation option is added to extract and update commands. https://github.com/ttag-org/ttag/issues/135 ...
Read more >
CLI version history - IBM Cloud Docs
Version Release date Changes 1.40.3 07 December 2022 Fixed various bugs. 1.39.5 06 October 2022 Fixed various bugs. 1.39.2 31 August 2022 Fixed various bugs. Upgraded...
Read more >
npm-dist-tag
npm-dist-tag. Modify package distribution tags. Select CLI Version: Version 7.24.2 (Legacy Release).
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found