PyCharm Bug Report: File Incorrectly Displayed as Gitignored by Installing Junie

## Summary
A Python file (`soil_analysis/admin.py`) is incorrectly displayed with gitignore styling (grayed out) in PyCharm and cannot be opened through normal methods, even though the file is not matched by any patterns in `.gitignore`.

## Environment
- IDE: PyCharm
- Project: Django project located at `C:\Users\yoshi\OneDrive\dev\portfolio`
- Affected File: `soil_analysis\admin.py`

## Steps to Reproduce
1. Open the project in PyCharm
2. Navigate to the file `soil_analysis/admin.py` in the Project tool window
3. Observe that the file is displayed with gitignore styling (typically grayed out text)
4. Attempt to open the file by double-clicking - the file cannot be opened

## Expected Behavior
- The file `soil_analysis/admin.py` should be displayed normally (not grayed out) since it does not match any patterns in the project's `.gitignore` file
- The file should open normally when double-clicked

## Actual Behavior
- The file is displayed with gitignore styling (grayed out)
- The file cannot be opened through normal double-click action
- **Workaround**: When the file is dragged and dropped onto the editor pane where source code is displayed, the gitignore styling is removed and the file becomes openable

## Additional Information
- The project's `.gitignore` file contains only the following patterns:
  ```
  __pycache__/
  chroma/
  *.log
  db.sqlite3
  .env
  ```
- None of these patterns should match `soil_analysis/admin.py`
- The file exists and contains valid Python code (2 lines with a comment)
- The issue appears to be related to PyCharm's git integration incorrectly identifying which files should be ignored

## Impact
This prevents normal file navigation and editing workflow, requiring users to use the drag-and-drop workaround to open affected files.
 

0
3 comments
Official comment

Dear Customer, 

Thank you for reporting the issue. I've filed such a bug report: https://youtrack.jetbrains.com/issue/JUNIE-969/Python-file-incorrectly-displayed-with-gitignore-styling
Please kindly follow this link to vote, and I kindly ask you to provide us with Junie logs file in this YouTrack ticket. 
Just reproduce the issue and collect Junie logs for further investigation in Help > Collect Junie Logs. You can either attach them to the next reply or upload here and let me know the upload ID: https://uploads.jetbrains.com/.

Kind Regards, 

Ecaterina
 

Re-cloning the project solved the problem.

0

I got it! Installing Junie for PyCharm makes things go weird!

0

Please sign in to leave a comment.