apache / apache/iotdb

when running the program in IDE, we can not get the version info

Open
#2,772 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
6.4k
Forks
1.2k
Avg merge
1d 23h
Merged PRs (30d)
115

Description

in IoTDBConstant class

//when running the program in IDE, we can not get the version info using getImplementationVersion()
public static final String VERSION =
IoTDBConstant.class.getPackage().getImplementationVersion() != null ? IoTDBConstant.class
.getPackage().getImplementationVersion() : "UNKNOWN";

![image](https://user-images.githubusercontent.com/7359454/109935388-8173ea80-7d08-11eb-8239-cf01cb441fcf.png)

![image](https://user-images.githubusercontent.com/7359454/109935424-89338f00-7d08-11eb-9a93-b58ae75663af.png)

Hope that the version information can be obtained normally in the development environment

Contributor guide

Open the contributing guide

Research direction

Start in the IoTDBConstant class at the VERSION field and compare getImplementationVersion() behavior when running from an IDE versus a packaged application. Reproduce the IDE case, then verify that development-environment runs report version information instead of UNKNOWN while packaged runs continue to work.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
databases
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.