I'm trying to import a project from VCS (well, I'm doing it for the first time actually) and this is my (imported) project's structure:
BTW. this screen is made after many tries of changing these directories' properties (in their context menus).
In these source files' I have a following error:
One time it had nothing against badugi.client
but it reported this error only in badugi.server
. I have completely no idea how it works...
Also classes in the same directories do not see each other.
This is a code from ClientWorker
class which is located (as you can see in the first image) in the same directory as Server
so it should know what Server
is.
I'm pretty sure this code worked well in my friend's IDE. How do I configure IntelliJ to make it work?
If you just want to copy the file path you can use Ctrl + Shift + C . You can also search for action with (Ctrl + Shift + A) (for mac Command + Shift + A) and then it will show you the Keyboard shortcut for particular action. If you want to change the Keymap you can open setting page and search for Keymap.
Press Ctrl+Alt+S to open the IDE settings and select Build, Execution, Deployment | Package Search.
Right-click the package you want to rename and from the context menu, select Refactor | Rename ( Shift+F6 ).
You can create a class together with a package. To do so, press Alt+Insert in the Project tool window, select Java Class, and specify the fully qualified name of the class, for example: com. example. helloworld.
I had this same issue, and fixed it by modifying my project's .iml file:
From:
<content url="file://$MODULE_DIR$"> <sourceFolder url="file://$MODULE_DIR$/src/wrong/entry/here" isTestSource="false" /> <sourceFolder url="file://$MODULE_DIR$/test" isTestSource="true" /> <excludeFolder url="file://$MODULE_DIR$/target" /> </content>
To:
<content url="file://$MODULE_DIR$"> <sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" /> <sourceFolder url="file://$MODULE_DIR$/test" isTestSource="true" /> <excludeFolder url="file://$MODULE_DIR$/target" /> </content>
Somehow a package folder became specified as the root source directory when this project was imported.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With