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

Cannot mark folder as source or test #3

Closed
KasperJanssens opened this issue Nov 16, 2014 · 9 comments
Closed

Cannot mark folder as source or test #3

KasperJanssens opened this issue Nov 16, 2014 · 9 comments

Comments

@KasperJanssens
Copy link

I have my source and test folder for my haskell stuff a bit 'maven style' : src/main contains my code, src/test contains my test code. There doesn't seem to be a way to mark the src/main folder as source and the src/test as test folder, the only thing I can confiure in Settings -> Modules is exclude some folders. The readme of the plugin seems to advertise that it is possible to mark a folder as source or test (from the 'Getting Started' part :
Select in Modules Settings which folders to exclude (like .cabal-sandbox and dist) and which folders are Source and Test (normally src and test))

And the problem with this is that my test code doesn't seem to be taken into account when compiling. Might this also be the reason that I'm not able to run the tests from within IntelliJ or is this just not supported (running tests from within Intellij?)

@rikvdkleij
Copy link
Owner

I meant in readme: If you go to Project settings/Modules. I will correct readme.

Running tests is not supported. I will comment in #2

@KasperJanssens
Copy link
Author

I think we're talking about the same thing. I mean, if you press F4, you see the Project Settings pane, where you can chose between Project, Modules, Libraries, Facets, Artifacts, then you have Platform Settings where you can chose between SDKs and Global Libraries. This one, no?

Well, over there, in the Module Tab I can just mark as Excluded, not as Source or Test (which is usually possible for Java code over there, if I'm not mistaken).
Are we talking about the same thing?

@rikvdkleij
Copy link
Owner

Yes, that is what I mentioned. In Modules you can select module. First tab is Sources in which you can mark Sources, Tests, ...

@KasperJanssens
Copy link
Author

I'm sorry, but I seem to be missing something. So, this is the screenshot
of what I see here. I cannot seem to mark a folder as Source or Test, only
as Excluded. I do not see a Sources tab neither.

I tried to click the green '+' in the middle pane, to see whether I can do
something over there, but that doesn't seem to be the case neither (there
is no 'Haskell' tab or anything when I click that +). Should I immediately
upgrade to IntelliJ 14 or am I overlooking it?
[image: Inline afbeelding 1]

2014-11-16 17:43 GMT+01:00 Rik notifications@github.com:

Yes, that is what I mentioned. In Modules you can select module. First
tab is Sources in which you can mark Sources, Tests, ...


Reply to this email directly or view it on GitHub
#3 (comment)
.

@rikvdkleij
Copy link
Owner

I do not see screenshot.

I think problem is that you do not have a module. Normally it's created automatically when you open project for first time. Use the Add button to create one.

@rikvdkleij
Copy link
Owner

You have to choose Import module after pressing Add and select root directory of your project (if you do not have a module).

@KasperJanssens
Copy link
Author

image
Second try for the image. No, I think I do have a module (tried the whole process again by the way, didn't change anything), but I just don't seem to be able to select source or test folders

@rikvdkleij
Copy link
Owner

Try (this works for me):
Close project.
Remove idea files (.Idea)
Open project.

@KasperJanssens
Copy link
Author

...and works for me too. Okay, never would have thought of this :-). Thanks!

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

2 participants