-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could not get top level Git directory #1572
Comments
Is it possible to share a sample project for this issue? |
Hi. Unfortunately it is proprietary code. I cannot share it. There is simply this piece I found in the custom plugin
So, running |
Or is it possible to describe the folder structure of your project? I need to be able to reproduce it to find the root cause, otherwise, it will be very difficult to fix the issue |
Thanks for your response. |
Thank you! for the project of the attached screenshot, is it still reproducible if you remove all the source code and just leave the gradle script files in the directory? |
I made a fake project without any plugins and it gives me the same result. |
Is there any steps required using the attached project? I tried opening it in my vscode and did not observe any errors. |
Nope. No extra steps.
|
Thanks, that's a hint that the logic of dealing with the working directory may have some issue. I'll take a look on it. |
I found that when I debug the code, the working directory is set correctly. But when run from production code, I get the error. |
Extension Name: vscode-gradle
Extension Version: 3.16.2
OS Version: Linux Mint 21.3
VSCode version: 1.92.0
Describe the bug
When I try to open a Java-Gradle project I get this error message
Those plugins are our own custom Gradle plugins to automate some repetitive task for many projects we have. And they require a project to be in a git repo so the version is automatically identified. A simple command
is issued for that purpose.
The thing is that Language Support for Java(TM) by Red Hat works fine and there is no such a problem. The project is imported and I can edit code in vscode, do auto-completion ect. But once I install vscode-gradle and do ‘Java: Clean Java Language Server Workspace > Reload and delete‘ - everything breaks.
Expected behavior
My project opens correctly by the plugin without any errors.
Additional context
I expect that some "current directory" is incorrectly set by the extension.
The text was updated successfully, but these errors were encountered: