Skip to content

Android files prefixed with '.' no longer work #2786

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

Closed
dtopuzov opened this issue May 5, 2017 · 2 comments
Closed

Android files prefixed with '.' no longer work #2786

dtopuzov opened this issue May 5, 2017 · 2 comments

Comments

@dtopuzov
Copy link
Contributor

dtopuzov commented May 5, 2017

From @vcooley on May 5, 2017 16:0

Please, provide the details below:

Android seems to no longer properly load files that begin with a .. This appears to occur only when running both platforms.

Did you verify this is a real problem by searching Stack Overflow and the other open issues in this repo?

Yes

Tell us about the problem

This problem can be fixed by not using dot files, however, dot files are useful for the convention of being untracked by version control or otherwise signifying private or configuration files.

This problem does not appear to occur when running Android only.

Which platform(s) does your issue occur on?

Android

Please provide the following version numbers that your issue occurs with:

  • CLI: 3.0.0
  • Cross-platform modules: 3.0.0
  • Runtime(s): 3.0.0 (both)
  • Plugin(s): "nativescript-advanced-webview": "^1.1.3", "nativescript-angular": "~3.0.0", "nativescript-sqlite": "^1.1.3", "nativescript-telerik-ui-pro": "file:./nativescript-ui-pro.tgz", "nativescript-theme-core": "^1.0.4", "nativescript-unit-test-runner": "^0.3.4",

Please tell us how to recreate the issue in as much detail as possible.

To reproduce have a file beginning with a . in your app folder, i.e. app/.env.ts. Then run both platforms simultaneously. Here's a screenshot of the error message:
image

Copied from original issue: NativeScript/NativeScript#4129

@dtopuzov
Copy link
Contributor Author

dtopuzov commented May 5, 2017

Hi @vcooley
It is true that we do not sync hidden files, but that was done on purpose because a lot of editors create hidden temporary files while you edit the code and it cause a lot of unnecessary restarts of the app.

May be you need something like this: #2776

@vcooley
Copy link

vcooley commented May 5, 2017

Great, thank you for the info, for now we're just going to move to no dot prefix for our config.

@dtopuzov dtopuzov closed this as completed May 7, 2017
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

2 participants