netbeansPython icon indicating copy to clipboard operation
netbeansPython copied to clipboard

Inconsistencies in the general project view window

Open DKnoto opened this issue 1 year ago • 4 comments

Description: Some elements in the main window of the project should not be visible and some should be visible in other sections.

Steps to reproduce the behavior: Create standard new project.

Expected behavior:

  1. In section Sources directory "src" should not be visible just as in the "Tests" section we do not see the "tests" directory;
  2. In sections Sources and Tests directory pycache should not be visible;
  3. File Makefile in main directory of project should be visible in section "Project Files" not in "Sources".

Screenshots: netbeansPython-1 5-Project-Outline-View

Desktop:

  • OS: Linux Fedora 37 ppc64le 6.5.12-100
  • JDK Version: OpenJDK 17.0.8+7
  • Netbeans Version: 19
  • Python Plugin Version: 1.5

DKnoto avatar Dec 16 '23 15:12 DKnoto

Thanks for reporting this issue, we will take a look on ASAP

github-actions[bot] avatar Dec 16 '23 15:12 github-actions[bot]

  1. In section Sources directory "src" should not be visible just as in the "Tests" section we do not see the "tests" directory;

Its the expected behaviour. "Sources": is the logical view for all files under the root project folder exept files in "tests" and some other priviledged files.

There is 2 main python project structure https://packaging.python.org/en/latest/discussions/src-layout-vs-flat-layout/

If you want the flat layout. Just delete the src folder and put your files directly under the root folder

2. In sections Sources and Tests directory pycache should not be visible;

You can configure wich files/directory you want to hide in Tools -> Options -> Miscellaneous -> Ignored Files Pattern

3. File Makefile in main directory of project should be visible in section "Project Files" not in "Sources".

There is no smooth way to achieve this. A Makefile is not really a Python related file i would say. I could hard code this but not very a good solution

albilu avatar Dec 18 '23 13:12 albilu

Thank you for the explanations but I do not agree with them. I will move these problems to the "Discussion" section.

DKnoto avatar Dec 18 '23 20:12 DKnoto

Project logical view need improvment: https://github.com/albilu/netbeansPython/discussions/94

albilu avatar Feb 16 '24 11:02 albilu