4 ms·
Citation needed. Show me a Makefile + IDE combination that executed code by simply opening a file. I think you’re missing the language server part of this.
by parhamn 5y ago
Citation needed. Show me a Makefile + IDE combination that executed code by simply opening a file. I think you’re missing the language server part of this.
- efaref 5y agoIntelliJ with "Build in background" enabled? https://www.jetbrains.com/help/idea/executing-build-file-in-background.html https://www.jetbrains.com/help/idea/executing-build-file-in-...
- VWWHFSfQ 5y agoDoes opening an android project in android studio implicitly run any of the code in the project? I'm guessing it does, because the ide seems to be very busy all the time, even when idle
- Nullabillity 5y agobuild.gradle can contain arbitrary Groovy code with full system access, and needs to be executed to figure out the project structure.
- remram 5y agobash autocompletion will run arbitrary code from a Makefile. I wouldn't be surprised if many editors do too.
- mjw1007 5y agoI think programmers' editors in general have treated "automatically run arbitrary code supplied by files you're editing" seriously as a security vulnerability since sometime around 2000. (For example, Emacs realised that 'local eval' wasn't a good thing to have enabled globally in Emacs 19, in 1994, and spent the next decade or more closing many other loopholes involving local variables specified directly in files.) If modern editors and IDEs are no longer thinking that way, I think that's a mistake.