albilu / netbeansPython

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

files are shown as empty where they are not #64

Closed damnms closed 1 year ago

damnms commented 1 year ago

Description i have a requirements.txt that is not empty and not modified (checked with git), but in netbeans it is shown as empty. it looks like as if "someone" deleted the content, but as mentioned, that file is perfectly fine. it seems like netbeans or the python plugin somehow identify them as binary, where they should be text/ascii. i dont have those problems in pycharm, not sure if this is a netbeans bug or a netbeansPython problem.

Steps to reproduce the behavior:

  1. open a python project
  2. open the requirements.txt

Expected behavior that all deps are listed as plain ascii

Screenshots Bildschirmfoto_2023-09-11_08-35-29

Desktop (please complete the following information):

Mandatory Logs Add any other context about the problem here. [e.g. Netbeans stacktrace/logs: (View-> IDE Log)] [e.g. LSP Server logs ${netbeans_userdir}/.pythonlsp/lsp_log_file] /!\: (this log is cleaned at Netbeans exit)

(venv) [oli@fedora usermgmtautomation]$ ls -lah requirements.txt -rw-r--r--. 1 oli oli 2,7K 11. Sep 08:33 requirements.txt (venv) [oli@fedora usermgmtautomation]$ file requirements.txt requirements.txt: Unicode text, UTF-16, little-endian text, with CRLF line terminators

damnms commented 1 year ago

edit: just tested it and changed from UTF16 to UTF8, now it works again. so maybe its a netbeans problem

albilu commented 1 year ago

edit: just tested it and changed from UTF16 to UTF8, now it works again. so maybe its a netbeans problem

Yes seems a netbeans problem.you can test with the plugin disabled to see if its the case. If not you can reopen this issue.