fabric8-analytics-vscode-extension: [BUG] RHDA is attempting to put a slash at the beginning of the path to my POM, causing the help:effective-pom mvn command to fail

Describe the bug Every time I focus on my pom.xml in my project, I get the following error:

Command failed: mvn -q help:effective-pom -Doutput="\v:\Development Projects\<project-here>\effective-pom.xml" -f "/v:/Development Projects/<project-here>/pom.xml" POM file "/v:/Development Projects/<project-here>/pom.xml" specified the -f/--file command-line argument does not exist

Running this command manually also gives the same error, but removing the / from in front of v:/ in the -f argument generates the effective-pom as expected. I have attempted to look through different configuration settings, update Maven to the latest version, etc. with no results.

To Reproduce Steps to reproduce the behavior:

  1. Simply open any pom.xml in my project. I have two
  2. Receive error, nothing happens

Expected behavior The effective-pom.xml is generated, and I am able to analyze dependencies as normal

Screenshots image I am able to control click the file it says doesn’t exist and navigate to it within VSCode without issue. This is not a symlink or shortcut, it is the actual file itself.

Logs The only logs I see are in the output window of VSCode, which just state the error I am receiving above. log.log

VSCode(please complete the following information):

  • OS: Windows 11 23H2 build 22631.3085
  • VSCode version: 1.86.0
  • Dependency Analytics Version v0.9.2

Additional context The -Doutput flag doesn’t need to change, strangely enough. It uses \ instead of /, but the file is generated fine. However, even if I change the -f argument to use \ instead of /, it still fails when run manually, with the same result.

About this issue

  • Original URL
  • State: open
  • Created 5 months ago
  • Reactions: 17
  • Comments: 17

Most upvoted comments

Thank you @natereprogle and all for reaching out regarding this issue. A fix for this bug will be available soon.

@elTorres the fix will be included in the next release, version 0.9.5. You can expect it very soon.

We don’t offer pre-packaged versions for manual replacement, but once 0.9.5 is out, you’ll be able to update your RHDA extension.

Thanks for your patience.

I too have suffered from this problem for a while now on 0.9.3 . At first I thought it was some kind of curse, how something fundamental like maven was broken. Glad to see I’m not alone 🌝

I downgraded to 0.9.0, which fixes the problem.

same thing happening here, I’ve downgraded the extension for now and it is working, but the current version is bugged

Which version did you downgrade to? I’d love to know so I can make the switch. I’m working on moving my projects to Gradle right now, but until then I would love to have this plugin working for my Maven stuff.

I’ve downgraded to version 0.7.3 which was released about 3 months ago. image I have not tested version 0.9.0 and version 0.9.1, just downgraded directly to 0.7.3 and realized it was working and left if there, but maybe you can also try these versions to see if they work.

same thing happening here, I’ve downgraded the extension for now and it is working, but the current version is bugged

Which version did you downgrade to? I’d love to know so I can make the switch. I’m working on moving my projects to Gradle right now, but until then I would love to have this plugin working for my Maven stuff.

I’ve downgraded to version 0.7.3 which was released about 3 months ago. image I have not tested version 0.9.0 and version 0.9.1, just downgraded directly to 0.7.3 and realized it was working and left if there, but maybe you can also try these versions to see if they work.

Downgraded to 0.9.1 and it seems to be working without the issue.

Same issue. I don’t want to disable the extension just to get rid of this error, but it would be great to have a fix

Hi @IlonaShishov

2 versions (v0.9.3 and v0.9.4) of the RHDA extension have been published after the fix https://github.com/fabric8-analytics/fabric8-analytics-lsp-server/pull/244, but neither of them includes it.

When do you expect to release a version of RHDA that includes it?

Is it possible to download a packaged version of RHDA LSP Server to manually replace it locally?

Thanks in advance

same thing happening here, I’ve downgraded the extension for now and it is working, but the current version is bugged