NativeScript / NativeScript/nativescript-cli

Using the word "dependencies" in a comment breaks gradle build.

Đang mở
#4,558 1 bình luận 0 reaction 1 người được giao Xem trên GitHub

@rosen-vladimirov đang làm issue này rồi.

Từ ngày 18/11/2019.

bug help wanted os: android severity: low
Ngôn ngữ chính
JavaScript
Star
1.1k
Fork
204
Merge trung bình
1 ngày 9 giờ
Pull request đã merge (30 ngày)
8

Mô tả

Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):

  • CLI: 5.3.1
  • Cross-platform modules: 5.3.1
  • Android Runtime:
  • iOS Runtime (if applicable):
  • Plugin(s):

Describe the bug

I am writing a plugin based on the NativeScript Plugin Seed. If I include the word "dependencies" in a comment in the platforms/android/include.gradle file the build fails with

FAILURE: Build failed with an exception.

* Where:
Build file '/tmp/android-project119319-11583-b7hf7m.ngoip/nativescript_background_geolocation_fbs/build.gradle' line: 103

* What went wrong:
Could not compile build file '/tmp/android-project119319-11583-b7hf7m.ngoip/nativescript_background_geolocation_fbs/build.gradle'.
> startup failed:
  build file '/tmp/android-project119319-11583-b7hf7m.ngoip/nativescript_background_geolocation_fbs/build.gradle': 103: expecting EOF, found 'comment' @ line 103, column 19.
     dependencies in a comment.

To Reproduce

Edit platforms/android/include.gradle and include the word 'dependencies' in a comment. For example:

// here we have the word dependencies in a comment.   

Expected behavior

It should build.

Sample project

Just add the word "dependencies" in a comment in the include.gradle for the NativeScript Plugin Seed.

Additional context

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.