Create account / Log in

Looking for (InteliJ using) Mentor

Discussion area for the development team.

Moderators: uckelman, Tim M

Looking for (InteliJ using) Mentor

Postby tinjaw » July 30th, 2020, 2:47 pm

I have been coding Python and Javascript in Jetbrain tools for the past four years. I coded in java in Eclipse over five years ago. I will probably want to make an extension or at least some trait classes. I know the team uses Eclipse mostly, but I would like to work with IntelliJ since it will be familiar ground for me. Is there anybody out there that will help me getting master to compile properly on macOS in IntelliJ?
User avatar
tinjaw
 
Posts: 39
Joined: April 10th, 2020, 12:11 pm

Re: Looking for (InteliJ using) Mentor

Postby Flint1b » July 30th, 2020, 5:24 pm

I think I talked the last Eclipse users on the team into using something else, no one uses Eclipse anymore :D

To compile properly you only need Java installed, the rest will be done by the maven wrapper, you just run "./mvnw clean package" from the command line and it compiles.

With IntelliJ, you tell it to import the project, show it the pom.xml in the project's root folder, and everything else is done automatically. If you run into specific errors, let us know and we will help.
User avatar
Flint1b
 
Posts: 461
Joined: May 19th, 2020, 12:27 am
Location: Colonia Agrippina

Re: Looking for (InteliJ using) Mentor

Postby Cattlesquat » July 30th, 2020, 6:32 pm

Yeah you picked the right IDE to already be familiar with. Flint1b can totally get you up and running. Check the articles on the Wiki for setting up "git" and stuff to pull the source down if you haven't already, and then the maven commands will basically the rest of it all set up for you.
User avatar
Cattlesquat
 
Posts: 953
Joined: December 2nd, 2019, 4:57 pm
Location: Baltimore, Maryland, USA

Re: Looking for (InteliJ using) Mentor

Postby tinjaw » July 30th, 2020, 7:10 pm

I just made a successful build.

How do you suggest I run/debug it in IntelliJ? I assume I need to set up a run configuration, but what are the particulars that you folks find work best?
User avatar
tinjaw
 
Posts: 39
Joined: April 10th, 2020, 12:11 pm

Re: Looking for (InteliJ using) Mentor

Postby Flint1b » July 30th, 2020, 8:53 pm

Run it like this, don't pay attention to the custom VM options, you don't need them, I just like to play around with those:

Screenshot from 2020-07-26 23-29-20.png
Screenshot from 2020-07-26 23-29-20.png (92.08 KiB) Viewed 1453 times
User avatar
Flint1b
 
Posts: 461
Joined: May 19th, 2020, 12:27 am
Location: Colonia Agrippina

Re: Looking for (InteliJ using) Mentor

Postby Cattlesquat » July 30th, 2020, 8:59 pm

Be sure you notice & use that --standalone command line switch when debugging.
User avatar
Cattlesquat
 
Posts: 953
Joined: December 2nd, 2019, 4:57 pm
Location: Baltimore, Maryland, USA

Re: Looking for (InteliJ using) Mentor

Postby tinjaw » July 30th, 2020, 9:35 pm

I am getting an error.
Attachments
runvassal.gif
runvassal.gif (172.52 KiB) Viewed 1445 times
User avatar
tinjaw
 
Posts: 39
Joined: April 10th, 2020, 12:11 pm

Re: Looking for (InteliJ using) Mentor

Postby Brent Easton » July 30th, 2020, 9:38 pm

The module pathname needs to be in quotes when it contains spaces.
User avatar
Brent Easton
 
Posts: 3229
Joined: December 21st, 2007, 3:06 am
Location: Berry, NSW, Australia


Return to Developers

Who is online

Users browsing this forum: No registered users and 3 guests

cron