-
-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow configuring targeted file extensions #38
Conversation
Qodana Community for JVMIt seems all right 👌 No new problems were found according to the checks applied 💡 Qodana analysis was run in the pull request mode: only the changed files were checked View the detailed Qodana reportTo be able to view the detailed Qodana report, you can either:
To get - name: 'Qodana Scan'
uses: JetBrains/qodana-action@v2024.1.3
with:
upload-result: true Contact Qodana teamContact us at qodana-support@jetbrains.com
|
This works well, thank you! I checked this on Windows 11 and Pop OS! 22.04. For Python users especially, this means you can now check A few quirks:
|
I just realised that a blank extension (e.g. in
If support for non-standard/blank file extensions is out-of-scope, it might be worth to just ban blank extensions and non-text extensions. |
Qodana Community for JVMIt seems all right 👌 No new problems were found according to the checks applied 💡 Qodana analysis was run in the pull request mode: only the changed files were checked View the detailed Qodana reportTo be able to view the detailed Qodana report, you can either:
To get - name: 'Qodana Scan'
uses: JetBrains/qodana-action@v2024.1.4
with:
upload-result: true Contact Qodana teamContact us at qodana-support@jetbrains.com
|
I think all extensions should be treated equally, including empty and emojis. As for "🔥" (U+1F525 Fire), it seems that PyCharm couldn't serialize it while writing to the |
I think this was because I forgot to change this line in Line 43 in e8bf705
The latest commit should fix it. |
I couldn't get the LS to scan files for empty file extensions by specifying
In case this matters, the file I tested is named #!usr/bin/python
n: int = ""
b: str = [] I've also tried adding the relative and full path of the file to Unfortunately this was tested on Windows, which doesn't recognise shebangs. However, I don't think this should matter, as PyCharm recognises this as a Python file (the Python icon shows up).
Thank you, this worked. |
Just a guess - maybe this is an issue with pyright itself? Does the LS recognise files with no extensions, or can it differentiate between directories and files-with-no-extension in |
Huh, I didn't think of that. Maybe it should be made a separate checkbox then. |
Qodana Community for JVMIt seems all right 👌 No new problems were found according to the checks applied 💡 Qodana analysis was run in the pull request mode: only the changed files were checked View the detailed Qodana reportTo be able to view the detailed Qodana report, you can either:
To get - name: 'Qodana Scan'
uses: JetBrains/qodana-action@v2024.1.5
with:
upload-result: true Contact Qodana teamContact us at qodana-support@jetbrains.com
|
After much consideration, I have decided to merge this without supporting either empty or emojis. These limitations will be documented accordingly. I have a hunch that this is not a very good decision, but whatever. |
Fixes #35.