transifex / cli

The Transifex command-line client
Apache License 2.0
67 stars 25 forks source link

Doesn't work with `Git Bash for Windows` #184

Closed sledgehammer999 closed 1 year ago

sledgehammer999 commented 1 year ago

The cli tool doesn't work with Git Bash for Windows. Tested versions: 1.6.5, 1.6.7

Issuing a command like

./tx status project.resource

results in:

# Gathering data for resources
could not find resource 'project.resource' in local configuration

while it works if I run it from a Windows Command Prompt.

codegaze commented 1 year ago

Hello @sledgehammer999,

we testing on a windows machine with Git Bash for Windows and we had the expected behaviour.

Could you please share a bit more about your config file, maybe the real (or similar without sensitive data) project.resource in case there is a character that creates the unusual behaviour?

sledgehammer999 commented 1 year ago

The config file is this: https://github.com/qbittorrent/qBittorrent/blob/master/.tx/config

I just tried (from the root of the git repo):

./tx.exe status qbittorrent.qbittorrent_webui

and I get the error I mentioned in my first post.

sledgehammer999 commented 1 year ago

Hmm, if I try the qbittorrent.qbittorrentdesktop_master ID it works. The ID qbittorrent.qbittorrent_master doesn't work either.

pankav commented 1 year ago

Hello @sledgehammer999 ,

Thank you for your message.

I tried to reproduce your case with a config file similar to yours and couldn't bear the issue. I have for you below some of my attempts.

image

Below is the config file I used for this

[o:orgslug:p:qbitorrent-1:r:qbittorrent_master_ents] file_filter = translations/src/lang/qbittorrent_master_<lang>.ts source_file = Source/src/lang/qbittorrent_master_en.ts source_lang = en type = QT minimum_perc = 23 lang_map = pt: pt_PT, zh: zh_CN

Please let me know if you could share more details with me.

Kind regards, Panagiotis Kavrakis

sledgehammer999 commented 1 year ago

I tried it again today and it worked. I used v1.6.7. I don't know if the new version fixed it or if something was previously borked with my environment.