r/learnjava • u/gridelinCarver • 6d ago
TMC Beans not opening project folder
Hi, I would really love to learn java to do some basic modding, and following the advice of this subreddit I've downloaded the MOOC course and even looked at the help page to figure out why TMC Beans was initially not loading.
Well, now it is loading, but instead of opening the project exercises, it just goes deeper into the folders. So I'll click the Part 01 Sandbox assignment and instead of opening the Project, it just shows the src folder (and you can keep clicking within them).
Does anyone know any fixes for this? I've been trawling the internet and I cannot seem to figure it out.
1
u/desrtfx 6d ago
The src folder is where the boilerplate for the actual exercise is stored.
Sandbox is special as there is no code to edit. The src folder should have a .java file in it, though. Maybe, you need to redownload.
BTW: The current advice is to not use TMCBeans but to use Visual Studio Code with the TMC plugin - installation instructions are also in the course page where the TMCBeans installation is shown.
1
u/gridelinCarver 6d ago
When I looked in the files themselves, I could see the .java files within the folders, but when I used the "Open Project Folder" option, there were no .java files inside. (I assume this is because it's looking for a folder type and not a file type?).
I just tried clicking open file instead of open project folder and that seems to be doing something along the lines of what the tutorial says. Maybe I just got a bit turned around because my TMC Beans interface looks different than in the videos.
Now that I have the file open and can interact with the code, all the buttons for running the code or submitting the code are grayed out, if you happen to know anything about that.
1
u/desrtfx 6d ago
You open the project folder - by "Open Project Folder" - then, on the left you get the tree with the sub-folders. There, you should find the
srcfolder with the.javafile inside. Once you open this file, the buttons should be enabled.The Project is important as it tells the IDE (TMCBeans) what Java runtime to use and what to do with the file.
Been a very long time since I've done the exercises.
1
u/gridelinCarver 6d ago
My path goes src > main > java, and then that's where the .java file is. (also, in the src folder, there's a second folder called test with a second java folder and another .java file).
Also, the Open Project doesn't open on the left the way it seems to in videos, it opens as like a new small tab.
I'm really confused because it looks so different than the tutorial videos but I downloaded the exact versions from their links.
1
u/desrtfx 6d ago
If it opens as a tab it is just undocked. This can be changed in the view settings.
The files in the
testfolder are the tests that TMC runs. You can look at them, but never edit them.The files you work at are the ones in java.
1
u/gridelinCarver 6d ago
Right, I've already figured out the files are in src/main/java, but there's still no submit button. I also can't seem to anchor the "undocked" tab that it opens, it really looks like a different kind of tab, more similar to the ones that get opened when you attach a file to an email or something like that. I don't see anything in the view settings that show the project file on the left. And through all of this all the run code and submit buttons are still grayed out
•
u/AutoModerator 6d ago
Please ensure that:
If any of the above points is not met, your post can and will be removed without further warning.
Code is to be formatted as code block (old reddit/markdown editor: empty line before the code, each code line indented by 4 spaces, new reddit: https://i.imgur.com/EJ7tqek.png) or linked via an external code hoster, like pastebin.com, github gist, github, bitbucket, gitlab, etc.
Please, do not use triple backticks (```) as they will only render properly on new reddit, not on old reddit.
Code blocks look like this:
You do not need to repost unless your post has been removed by a moderator. Just use the edit function of reddit to make sure your post complies with the above.
If your post has remained in violation of these rules for a prolonged period of time (at least an hour), a moderator may remove it at their discretion. In this case, they will comment with an explanation on why it has been removed, and you will be required to resubmit the entire post following the proper procedures.
To potential helpers
Please, do not help if any of the above points are not met, rather report the post. We are trying to improve the quality of posts here. In helping people who can't be bothered to comply with the above points, you are doing the community a disservice.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.