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

how to support multi projects #135

Closed
7omato opened this issue Mar 13, 2023 · 5 comments
Closed

how to support multi projects #135

7omato opened this issue Mar 13, 2023 · 5 comments

Comments

@7omato
Copy link

7omato commented Mar 13, 2023

After setting the sub-project root, it works well in this sub-project,
but the whole project is a folder contains many sub-projects,
so that if I want to use this tool in another sub project ,
I should change the 'project root' setting to that one.
If I miss some configuration documents,tell me how to configure plz.

@starquake
Copy link

When you hover over the "Project Root" checkbox it tells you to uncheck it if there are multiple subprojects in the root. Can you try that?

@7omato
Copy link
Author

7omato commented Mar 14, 2023

After cancel the 'project root' checkbox ,it work ! thank you!

@7omato 7omato closed this as completed Mar 14, 2023
@7omato
Copy link
Author

7omato commented Nov 3, 2023

I have a project structure like :

├─applications
│ ├─appA
│ │ └─go.mod
│ ├─appB
│ │ └─go.mod
│ ├─appXXX
│ │ └─go.mod
├─model
│ └─go.mod
└─service
│ └─ go.mod

If I set the "Project Root" = ".xxx.\applications" and uncheck it,
the plugin will consider the "Project Root" as parent folder(unchecked though, the path is still in use) and
works well in applications's sub-project such like appA, appB...
But it's not working on the model / service module because they are not the sub-project of applications,
Is there any way to make it work ?
If the plugin support multiple "Parent Project Root" that may be works fine,
or this project structure is a shit , just move the model and service packages belows applications if I have the power

@7omato 7omato reopened this Nov 3, 2023
@xxpxxxxp
Copy link
Owner

xxpxxxxp commented Nov 7, 2023

Hi @7omato , please try remove the .idea/golinter.xml file under your project, then reconfig the plugin by uncheck Project Root, but this time DON'T change Project Root to ".xxx.\applications", it should work

@xxpxxxxp
Copy link
Owner

Hi @7omato I assume you succeed with above method. If not, feel free to reopen this issue.

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

No branches or pull requests

3 participants