2 ms·
I wonder what type of errors that are? My last experience with PyCharm was on an older 2014 ThinkPad on which it lagged too much, so I abandoned it. Could proba
by sva_ 3y ago
I wonder what type of errors that are? My last experience with PyCharm was on an older 2014 ThinkPad on which it lagged too much, so I abandoned it. Could probably run it much better with my current laptop...
I just use VSCode for most things, or nvim if I want to edit something very specific that doesn't require much navigation between files. I'm not a huge fan of my editor annoying me with stuff all the time, but I'm wondering if I'm missing out.
- xcv123 3y ago> I wonder what type of errors that are? The type of errors are type checking errors.
- mdaniel 3y agoFun fact, not only that, since their support for "embedded languages" is second to none: import re if re.match(r'[aoeui', sys.argv[1]): print('ok!') is a red error in the ide because it understands regex syntax, and similar if it can either prove what the syntax is (based on its position, as seen in that re.match), or in all cases one can annotate the string literal to have it help you: # language=json not_json = """ {"oops:true} """ json.loads(not_json) is similarly marked as red because that's not json it's turtles all the way down: # language=yaml gitlab_yaml = """ stages: - build my build: image: docker.io/library/busybox after_cript: # language=sh - | if true; then echo "awesome" fi """ spots the suspicious "after_cript" (in yellow, because it cannot prove it's wrong, just suspicious) and then it also highlights the embedded shell script in the embedded yaml string literal Regrettably, it doesn't seem to run the shell validity checks on injected shell scripts, but I think that's a bug and not a limitation of the platform