integrated-application-development / delphilint

Delphi IDE package providing on-the-fly code analysis and linting, powered by SonarDelphi
GNU Lesser General Public License v3.0
79 stars 9 forks source link

New installation; standalone mode #26

Closed wmeyer48 closed 4 months ago

wmeyer48 commented 4 months ago

Prerequisites

Delphi IDE version

Delphi 11.3 Enterprise Version 28.0.47991.2819

DelphiLint version

1.0.2

SonarDelphi version

1.4.0

SonarQube version

No response

Issue description

I installed JRE 1.8, as Java was not in my VM. On installing DelphiLint, it wanted me to set external resurces. The JRE installation did not set JAVA_HOME, and I had no idea what it should be set to, nor did I find any explanation of this issue in the readme. I did finally point it at java.exe in the JRE. When I attempt to analyze a file, I get an error message: There was a problem reaching the DelphiLint server. Server failed to communicate port.

Steps to reproduce

In a system or VM with no Java and no DelphiLint present:

  1. Install JRE 1.8.
  2. Install DelphiLint.
  3. Set external resources; point to java.exe in the JRE.
  4. Open a Delphi project.
  5. Open a module in the project.
  6. With DelphiLint, Analyze This File
  7. Observe error described above

Minimal Delphi code exhibiting the issue

No response

fourls commented 4 months ago

Hi @wmeyer48,

I installed JRE 1.8, as Java was not in my VM.

DelphiLint requires Java 11 or above, as mentioned prominently in the README and the "External Resources Setup" form.

JRE 1.8 (aka Java 8) was released ten years ago and has since been superseded by 14 major versions. Java 11 (released 2018) is the next long term support (LTS) version after Java 8, and is the earliest supported version for DelphiLint.

This would be why your server is not starting. Please ensure that all prerequisites are installed to at least the minimum supported version, as described in the README. If you are still encountering problems after doing this, please raise another issue.

wmeyer48 commented 4 months ago

Thank you, and sorry. Went to Oracle, it presented that version prominently. Will try again.

Bill

On Thu, Apr 18, 2024, 19:05 Elliot Hillary @.***> wrote:

Hi @wmeyer48 https://github.com/wmeyer48,

I installed JRE 1.8, as Java was not in my VM.

DelphiLint requires Java 11 or above, as mentioned prominently in the README and the "External Resources Setup" form.

JRE 1.8 (aka Java 8) was released ten years ago and has since been superseded by 14 major versions. Java 11 (released 2018) is the next long term support (LTS) version after Java 8, and is the earliest supported version for DelphiLint.

This would be why your server is not starting. Please ensure that all prerequisites are installed to at least the minimum supported version, as described in the README. If you are still encountering problems after doing this, please raise another issue.

— Reply to this email directly, view it on GitHub https://github.com/integrated-application-development/delphilint/issues/26#issuecomment-2065511200, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEVX5Q3NEFOKCDF3ZOE3GG3Y6BNWPAVCNFSM6AAAAABGNHJC3GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANRVGUYTCMRQGA . You are receiving this because you were mentioned.Message ID: @.*** .com>