Workspace/Default SDK #180
Replies: 2 comments
-
@joaoLouceiro I don't know a way to pass compiler arguments to |
Beta Was this translation helpful? Give feedback.
-
Hey, guys! So, I think I (kinda) got it figured out. Basically, the JDTLS workspace configurations are stored inside the ~/.cache/nvim/jdtls/workspaces Now, since I'm a newborn in this thing, and this was my first project, I could deal with simply deleting the whole workspace, reopening nvim, trying to run the :JavaRunnerRunMain command and, ta-da, it's pointing to my default SDK. For now, this seems to have solved the problem. If not, it's a step in the right direction and I hope it helps someone. Cheers! |
Beta Was this translation helpful? Give feedback.
-
I'm pretty new to vim/neovim and this is the first time I'm actually trying to use this as my IDE.
Problem: when I run :JavaRunnerRunMain from inside my project's folder, it's trying to use Java_21:
![image](https://private-user-images.githubusercontent.com/89097431/328563586-b869836a-6df7-476f-b200-e0ba5d712690.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA0NTYxNDQsIm5iZiI6MTcyMDQ1NTg0NCwicGF0aCI6Ii84OTA5NzQzMS8zMjg1NjM1ODYtYjg2OTgzNmEtNmRmNy00NzZmLWIyMDAtZTBiYTVkNzEyNjkwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzA4VDE2MjQwNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTRjMDlmMzRlYWM5ZDVjYTRiNTYzMjZhZWZlZjM2NzE0MWYwMzk3NGNmOWQxNmQ3Y2I2OWQ4ODBhM2VmYzQ1ZjMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.NLctwcoc0QOG6Q1En7TaWsRuHyPa7OWyK0-b8V9LICI)
This is asking me to run with '--enable-preview' which, honestly, I have no idea how to do in this case, so if you can help with that, I'd appreciate it.
Weird thing, for me, is that, if I run this exact same class from the parent folder, it used a different SDK (which should work without --enable-preview"):
![image](https://private-user-images.githubusercontent.com/89097431/328565300-81a052b8-a057-412c-b003-42319ff8ece8.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA0NTYxNDQsIm5iZiI6MTcyMDQ1NTg0NCwicGF0aCI6Ii84OTA5NzQzMS8zMjg1NjUzMDAtODFhMDUyYjgtYTA1Ny00MTJjLWIwMDMtNDIzMTlmZjhlY2U4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzA4VDE2MjQwNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTA0OGJlMzNiODk5YWFkYzlhNTc0Y2M1Mzk0MzE2M2ZmNzZmNTUyYzc1ZWMxZjg5OTFkZjRmYzVkOTE5MzQ1NmImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.gchoYsLlWCUHPN8VC1BOXEypILGBf073w0GMVd6yBwE)
Never mind all the "was compiled by x, you're trying to run with y".
Where can I find where nvim-java looks for the SDK?
Beta Was this translation helpful? Give feedback.
All reactions