-
Notifications
You must be signed in to change notification settings - Fork 26
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
"Project and External Dependencies" disappeared in eclipse IDE #79
Comments
please check the gradle log / console on refresh gradle project |
there is no gradle -> refresh gradle project. ?!? |
The menu option is there, but the console does not show anything when I perform the action. |
is there anything in error log? |
This is how the classpath file looks like for the language project:
Again, nothing that would normally be in the "Project and External Dependencies" can be resolved, so my Problems view looks like below (but I guess you mean something else with "error log", right?) |
i mean .log files in workspace/.metadata yes and normally gradle logs that in the operations log if it cannot resolve stuff.
which ones do you use? |
yes but buildship should do the same. |
so it looks like there is something wrong with your setup. |
Maybe unsurprisingly, still wanted to share, this folder is empty:
I understand that buildship should store something there. I will check the versions of gradle, buildship, etc, next, as you suggested. |
are you sure the eclipse workspace and the gradle root or a project root are disjoint? |
eclipse version is: 2020-06
How can I ensure that? Again, building from command line and starting VS code with the plugin works just fine... The interesting thing is that I used the very same eclipse, gradle, buildship version in 2020 to develop this language extension... so I wonder how it could have worked back then but not today... |
what is the dir of your eclipse workspace |
I use the exact same folder structure as this example repository does, so I have a a root folder where my language/ide/websocket/vscode-extension projects are all located in separate folder. The settings.gradle file includes these five projects. |
In the meantime jcenter went down. Maybe, this is the reason? That's where the dependencies are resolved from...
|
again which is the workspace dir you use in eclipse? |
... use mavenCentral() instead.
|
It is the "root":
Inside this root folder, there are the five projects, and |
then this is something that buildship dislikes. can you try different dir. |
Sure. So, should I create a completely different directory as the workspace and import my five projects? As copies, or just references? |
just new workspace and use gradle import on the root |
Sorry, I'm not used to gradle, maven, or eclipse, I just try to used this as a template, so I don't know how I would go about using maven central instead. It also looks like as if all the dependencies are cached in |
I'm sorry, I don't follow. When I create a new workspace, it is empty, right? So, I'm not sure
I'm reall ynot familiar with any of these technologies, sorry. |
create new workspace (empty) |
Wow, that did indeed fix it! |
Thank you very much, I would have never guessed that. |
of course it would be better if buildship showed an error dialog |
Do you want me to add a feature request for that at buildship repo linking this issue? |
at least you can hint them on the issue. |
I used this template in 2020 to build my own VS Code extension.
Everything worked back then, but when I open the workspace with the very same eclipse version again today (2020-06), the library "Project and External Dependencies" does not show and all the dependencies to Xtext and related libs are broken.
Building from gradle still works, and I assume the issue is related to how buildship sets up the classpath, but I tried to refresh the gradle project and get this "Library entry" back so I can use the eclipse IDE to browse my projects again, but I cannot make it work. Any ideas how I can fix that?
UPDATE
In case you experience the same issue, try this solution of setting up a new workspace and importing the root gradle project, it worked for me:
#79 (comment)
The text was updated successfully, but these errors were encountered: