Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Devel: Better recognition of newer Java versions #138

Closed
wants to merge 3 commits into from
Closed

Devel: Better recognition of newer Java versions #138

wants to merge 3 commits into from

Conversation

ghost
Copy link

@ghost ghost commented Feb 6, 2021

Identify the Bug

#137

Description of the Change

I changed a little bit the REGEXP in getJavaVersionFromOutput() inside the lib/main.js file to be able to recognize Java versions which consists of 3rd dot in java version number.
I also added test for it in test/main.test.js.
This maybe should not be part of this pull request but I also changed test/runner.js and autoImport.....test.js as described in commits.

Please be patient this it my first contribution at GitHub.
Thank you for your time.

Alternate Designs

I considered redesigning the REGEXP and tests for this function but it could be a mess.
Now it is rather a small change with an understandable diff.

Possible Drawbacks

IDK, the change only adds underscore as the variant into REGEXP at specific position which was not changed.

Verification Process

  1. I ran tests via npm test where each test passed including the new one without problem.
  2. I uninstalled ide-java via Atom. The next step was manually copying this repo into ~/.atom/packages/ then restarting atom.
  3. After this steps I was able to use all features as code completion etc..

Release Notes

Better recognition of newer Java versions.

Karel Němec added 3 commits February 6, 2021 00:47
- global.stress is never used

- atom-mocha-test-runner does not allow
  any configuration parameter called
  overrideTestPaths and mocha.js neither
@priyeshkpandey
Copy link

Any updates on when this fix will be merged and available in the release?

@Nazadm
Copy link

Nazadm commented Jun 1, 2021

Any updates on when this fix will be merged and available in the release?

I think this is dead repo.

@22aam
Copy link

22aam commented Jan 31, 2022

what does the code do

@ghost
Copy link
Author

ghost commented Jan 31, 2022

I changed regexp to allow also dot as possible delimiter at 3rd position in version for Java.

@22aam
Copy link

22aam commented Feb 4, 2022

oh ok thanks

This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants