albilu / netbeansPython

Netbeans Support for Python
https://plugins.netbeans.apache.org/catalogue/?id=89
GNU General Public License v3.0
38 stars 4 forks source link

Inconsistencies in the general project view window #90

Open DKnoto opened 6 months ago

DKnoto commented 6 months ago

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:

github-actions[bot] commented 6 months ago

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

albilu commented 6 months ago
  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

DKnoto commented 6 months ago

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

albilu commented 4 months ago

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