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

Cannot found files for path on linux #23

Open
joseph-navant opened this issue Mar 12, 2021 · 1 comment
Open

Cannot found files for path on linux #23

joseph-navant opened this issue Mar 12, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@joseph-navant
Copy link

Bug report

Describe the bug

Tried adding a new project, yet after pressing the save button nothing happened. Then, opened the developer tools and saw in the console log the following error:

ERROR Error: Cannot found files for path: '\home/joseph/test/i18n/*.json'
    at n.value (main.1f5afe528f0a25a06432.js:1)
    at n.value (main.1f5afe528f0a25a06432.js:1)
    at t.value (main.1f5afe528f0a25a06432.js:1)
    at t.value (main.1f5afe528f0a25a06432.js:1)
    at t.getKeys (main.1f5afe528f0a25a06432.js:1)
    at n._next (main.1f5afe528f0a25a06432.js:1)
    at n.value (main.1f5afe528f0a25a06432.js:1)
    at n.value (main.1f5afe528f0a25a06432.js:1)
    at n.value (main.1f5afe528f0a25a06432.js:1)
    at n.value (main.1f5afe528f0a25a06432.js:1)

To Reproduce

Steps to reproduce the behavior:

  • Apply the instructions described in the README.md
  • Open ngx-translate-editor from release with ./ngx-translate-editor-1.0.0.AppImage or ./linux-unpacked/ngx-translate-editor
  • Select a folder containing json file
  • Toggle the developer tools and see the error

Expected behavior

I expect not to have this path error.

Additional context

I noticed that first slash is a backslash actually: \home/...
If I try to correct it to /home/joseph/test/i18n/*.json, I see another error in console:

ERROR Error: Cannot found files for path: '/home/joseph/test/i18n/**/*.{html,ts}'

I tried to replace all slashes by backslashes also but it didn't work

@romanrostislavovich romanrostislavovich added the bug Something isn't working label Mar 12, 2021
@paul-h
Copy link

paul-h commented Feb 6, 2022

I'm seeing the exact same bug running under linux.

I came to the exact same conclusion as joseph-navant fixing the leading \ fixes the first error but that leads to the second one.

Why is it looking for {html,ts} files in the translation directory?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants