redhat-developer / redhat-developer/vscode-java

No obvious way to set JDT settings

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

Chưa có ai nhận issue này.

compile preferences ux
Ngôn ngữ chính
TypeScript
Star
2.3k
Fork
547
Merge trung bình
20 giờ 1 phút
Pull request đã merge (30 ngày)
11

Mô tả

I would like to use the "Text Blocks" feature of Java 13. I have the Java 13 JDK installed and that is being picked up correctly by VSCode.

In addition, I have modified my "pom.xml" file to include the "--enable-preview" JVM argument that turns on this feature, like so:

	<build>
		<plugins>
			<plugin>
				<groupId>org.springframework.boot</groupId>
				<artifactId>spring-boot-maven-plugin</artifactId>
				<configuration>
					<jvmArguments>--enable-preview</jvmArguments>
				</configuration>
			</plugin>
		</plugins>
	</build>

I also attempted to edit the .settings/org.eclipse.jdt.core.prefs file and set org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=enabled but any changes to this file are overwritten when the "Clean the java language workspace" task is run

Environment
  • Operating System: Linux
  • JDK version: 13
  • Visual Studio Code version: 1.40.1
  • Java extension version: 0.53.1
Steps To Reproduce
  1. Create Java project with Java 13
  2. Attempt to use Text Block syntax
Current Result

Screenshot from 2019-11-28 11-59-08

Expected Result

I expect to be able to enable preview features in JDT and for Text Blocks to work with no compiler error

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.

Hướng nghiên cứu

Tái hiện lỗi Text Blocks của Java 13 trong một dự án sử dụng cấu hình pom.xml được hiển thị, sau đó kiểm tra cách tệp .settings/org.eclipse.jdt.core.prefs được tạo khi workspace ngôn ngữ Java được làm sạch. Được xem là hoàn tất khi các tính năng preview vẫn được bật trong JDT và cú pháp Text Block không tạo ra lỗi trình biên dịch.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
java, vscode
Lĩnh vực
developer-experience, tooling
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
35/100

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.