Skip to content
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

Make code IntelliJ friendly? #1463

Open
madukan opened this issue Nov 9, 2023 · 3 comments
Open

Make code IntelliJ friendly? #1463

madukan opened this issue Nov 9, 2023 · 3 comments

Comments

@madukan
Copy link

madukan commented Nov 9, 2023

Hi, at the moment running the ant build and importing the project to IntelliJ doesn't get one started with Gitblit to debug, or help fix issues. My request is to

  1. Make the codebase IntelliJ friendly (as that seem now more popular thus more hands can come on the deck)
  2. Add some instructions to a page as a starting point as to how to get the code running (HelloworldKeys and some classes seem to break the process at present)
    Thanks for the great product!
@flaix
Copy link
Member

flaix commented Nov 14, 2023

Could you tell us more about what you find missing for gitblit to be IntelliJ friendly? I develop in IntelliJ IDEA and it seems to work fine for me.

It comes with a gitblit.iml checked-in (not the best idea, but works for now) which opens the project. The one thing it doesn't do well is work without having run ant or moxie once, because only the Ant build will generate code files. But once you ran Ant, again it works fine in IntelliJ for me.

Can you tell me what I am missing?

@madukan
Copy link
Author

madukan commented Dec 8, 2023

Are you saying that if I open the .iml file and try to run the Unit tests they all would work fine out of the box?
HelloworldKeys and some classes were not working at all. And those were dependants for most of other code too.

That was what I tried at that time. I was looking for some documentation to get started with IntelliJ for the GitBlit then which ended up creating this ticket.

@flaix
Copy link
Member

flaix commented Jan 11, 2024

Ah, no, that is not what I am saying. What I am saying is that you should have no problem loading the project into IntelliJ IDEA or Eclipse with the provided project files.

But as I said above, there are source code files that are generated by the build, and that is only done when executing a build via Ant. Which you could probably also trigger from within IDEA, but I haven't tried.

So I guess you mean more IDE friendly, not specifically IntelliJ, as in not having to run a separate build before.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants