fabric8-analytics-vscode-extension
fabric8-analytics-vscode-extension copied to clipboard
[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:
- Simply open any pom.xml in my project. I have two
- Receive error, nothing happens
Expected behavior The effective-pom.xml is generated, and I am able to analyze dependencies as normal
Screenshots
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.
I think I have a problem like yours: ENOENT: no such file or directory, open '/c:/projects/myproject/pom.xml'
Same for me:
mvn -q help:effective-pom -Doutput="\c:\Users\some-path\effective-pom.xml" -f "/c:\Users\some-path\pom.xml"
does not work issuing file not found, but:
mvn -q help:effective-pom -Doutput="c:\Users\some-path\effective-pom.xml" -f "c:\some-path\pom.xml"
works without any issue.
mvn -q help:effective-pom -Doutput="\c:\Users\some-path\effective-pom.xml" -f "c:\Users\some-path\pom.xml"
also works, so it seems that only the slash after the -f option is the issue.
me too, so it seems that only the slash after the -f option is the issue.
same thing happening here, I've downgraded the extension for now and it is working, but the current version is bugged
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.
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.
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.
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.
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.
I decided to test to see if downgrading to 0.9.1 fixes the problem, but unfortunately, it's a no-go. I got some invalid JSON response and requests to the https://rhdacloud.com/api/v4/analysis failures.
EDIT: It seems downgrading to any versions are all no-goes. I get a lot of invalid JSON response bodies for each downgrade: 0.9.0, 0.7.3, etc.
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.
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 here: I can´t generate effective pom with extension v0.9.2 because the slash at the beginning of the path.
If I downgrade to v0.9.0 RHDA don´t work with error "request to https://rhda.rhcloud.com/api/v4/analysis failed, reason: connect ETIMEDOUT 18.119.151.206:443"
Thank you @natereprogle and all for reaching out regarding this issue. A fix for this bug will be available soon.
Thank you @natereprogle and all for reaching out regarding this issue.
A fix for this bug will be available soon.
Thank you! That's awesome 👏🏼
Thank you @natereprogle and all for reaching out regarding this issue. A fix for this bug will be available soon.
Vielen Dank für Ihre harte Arbeit!
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 🌝
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 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
Downgraded to 0.9.1 and it seems to be working without the issue.
@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.