Commit Graph
89 Commits
Author SHA1 Message Date
Roman Shevchenko 573c54631e [platform] Windows restarter: arguments check, better error reporting; warnings 2018-08-09 10:31:36 +02:00
Sergey Simonchik ee664ccf1a WEB-33931 runnerw.exe cannot run Node.js script with legacy WSL 2018-07-18 18:50:44 +03:00
Roman Shevchenko 09bcb06270 [platform] Windows file watcher fixes, binaries+tests (IDEA-192665)
It no longer rejects paths with symlinks/junctions, but checks that they do not point to UNC paths.
2018-07-06 09:42:58 +02:00
Roman Shevchenko 16f59f289b [platform] fixes symlink resolve in Windows file access helper (platform part, binaries, tests) 2018-07-06 09:40:21 +02:00
Roman Shevchenko 808f21da61 [platform] Windows file watcher performance optimization (IDEA-191007)
Decreases buffer size to reduce kernel-to-user space copying overhead; bumps processing thread priority to lessen the number of buffer overflows.
2018-05-15 12:47:16 +02:00
Roman Shevchenko b38ca7a9ce [platform] fixes and minor optimizations in Windows file watcher
- rewritten "is watchable" checks (for drives: GetDriveType() instead of WNetGetUniversalName, for watch paths: a presense of a reparse point anywhere above)
- watch paths with reparse points are now reported as unwatchable (partially resolves IDEA-24885)
- Unicode issues (UTF8/WCS conversion is performed for incoming paths, *W functions are used for checking, unwatchable and remapped paths are reported in UTF8)
- no more unneeded file separator conversion (unwatchable and remapped paths are reported with platform separators)
2018-05-09 11:03:24 +02:00
Roman Shevchenko 39c4106b2d [project] migrates Windows file watcher build to CMake 2018-05-03 18:35:53 +02:00
Sergey Simonchik 7a2f2ac1b2 runnerw: ignore insert sequences as none are provided
Allows to show error messages for some exit code with system messages containing %1.
For example, now message for 216 exit code:
===
runnerw.exe: CreateProcess failed with error 216: This version of %1 is not compatible with the version of Windows you're running. Check your computer's system information and then contact the software publisher.
2017-12-19 15:54:10 +03:00
Sergey Simonchik fb39a9f557 runnerw: use GetLastError as exit code if CreateProcessW fails (IDEA-CR-25052)
GetLastError returns error=2 if child process executable file not found (ERROR_FILE_NOT_FOUND from https://msdn.microsoft.com/en-us/library/windows/desktop/ms681382)
2017-10-05 11:28:24 +03:00
Sergey Simonchik b624ba9463 runnerw: exit with non-zero code if child process cannot be created
Use exit code=2 to emulate "CreateProcess error=2, The system cannot find the file specified"
https://msdn.microsoft.com/en-us/library/windows/desktop/ms681382(v=vs.85).aspx
2017-10-03 11:49:57 +03:00
Ilya.Kazakevich 436b4c44db IDEA-178958: Windows native elevator for UAC fix
* Binaries updated
               * Write errors to event log
               * Do not fail if there is no console/stdout listening process
               * 32bit support
2017-09-14 18:58:33 +03:00
Denis Fokin 4cdabbfafe Eliminate focus killer 2017-09-12 17:20:54 +03:00
Sergey Simonchik d4a9a35deb runnerw: close child process's stdin when runnerw's stdin is closed (IDEA-145882, WEB-16832) 2017-09-12 19:09:35 +03:00
Sergey Simonchik 701ca56bcc runnerw: support unicode arguments & escape child process command line properly (IDEA-176490, IDEA-171368) 2017-09-11 21:21:35 +03:00
vadim.lomshakov 85734f3ed8 [rider]: patched runnerw.exe mediator to allow create process with new visible console (#RIDER-4160) 2017-08-21 21:38:43 +03:00
Ilya.Kazakevich 05910360d3 IDEA-85995: Use launcher/elevator instead of VistaUpdaterLauncher
* launcher "command1" "command2" "commandN" runs command line under
UAC.
* "cmd /C copy src dst" copies file
* So we use "launcher cmd /C copy src dst" to copy file to folder
inaccessible with out of UAC
2017-08-10 17:03:19 +03:00
Ilya.Kazakevich d7d02ad2ac PY-24490: Dot dup2 std descriptors for CRT
(File added)
2017-06-06 03:38:20 +03:00
Ilya.Kazakevich b22f0e632d PY-18154: File signed and instructions how to sign added 2017-05-22 18:13:49 +03:00
Ilya.Kazakevich 29c484ca42 PY-18154: Add sudo-like tool for windows to deal with UAC
When admin user launches Intellij, Windows revokes many
user privileges to improve safety for admin users (that is how UAC works).

One can't access "Program Files": any attempt to write something there
leads on ACCESS_DENIED(5) error even if NTFS reports file is writable

The only way to elevate privileges is to launch process as elevated.
"Elevator.sln" is Win32API app that launches command
as elevated. See its sources for more info.
2017-05-18 01:26:28 +03:00
Sergey Simonchik acd92dce18 runnerw: set "PlatformToolset" to v140_xp explicitly to support Windows XP, rebuild according to the latest changes (fixes WEB-24480) 2017-03-16 15:02:22 +03:00
Roman Shevchenko a3ba65184e [java] renames AppMain class to avoid clashes with an older version on the class path
(follow-up to 0c840ce2, d8998712)
2017-02-08 14:13:31 +01:00
Roman Shevchenko 8a0d6fc6cb [platform] updates Windows restarter binary 2017-01-13 13:16:00 +01:00
Roman Shevchenko 5b07b8bb04 [platform] updates Windows restarter binary 2017-01-11 21:43:05 +01:00
Roman Shevchenko 40f55d44b5 [platform] IdeaWin32 DLL version info (binaries) 2017-01-11 16:27:23 +01:00
Roman Shevchenko be7d007050 [platform] recognizes "mount point" type reparse tags as symlinks, part 2 (IDEA-162327) 2017-01-04 19:19:41 +01:00
Roman Shevchenko 9a56790eaf [platform] static dependencies for breakgen 2016-10-31 18:13:26 +01:00
Roman Shevchenko 08ca730bb0 [platform] refreshed breakgen libs 2016-10-28 09:45:47 +02:00
Artem Bukhonov b5c364bf53 platform: added custom utility to get list of running processes on Windows, it works faster than standard wmic.exe (RIDER-IC-CR-2) 2016-07-22 12:48:52 +03:00
Roman Shevchenko 601c9319b8 [vfs] increases file watcher buffer size on Windows (IDEA-156453) 2016-05-24 16:33:06 +02:00
Roman Shevchenko 80e2a6b401 [vfs] switches file watcher reports encoding to UTF-8 on Windows (IDEA-103559) 2016-02-10 16:25:16 +01:00
Roman Shevchenko a3d6c1d093 [project] 64-bit file watcher for Windows (IDEA-133292) 2015-10-02 14:29:56 +02:00
Roman Shevchenko 0c1ba59171 platform: dropped unneeded reporting on exit by Windows file watcher 2015-04-05 20:02:44 +02:00
Vladimir.Orlov 7710088091 IDEA-129178 please sign runnerw.exe and commit 2014-08-28 18:38:14 +04:00
Sergey Simonchik a586ea72f9 update runnerw.exe after WEB-12852 2014-07-28 19:49:08 +04:00
Roman Shevchenko f5e85e736c IDEA-126122 (reFS volumes recognized) 2014-07-17 21:00:51 +02:00
Roman Shevchenko 3f51a8ac72 IDEA-122344 (incorrect handling of paths around PATH_MAX limit on Windows) 2014-03-21 18:58:59 +01:00
Vladimir Orlov 0a93c40057 IDEA-121551 please sign runnerw.exe and commit 2014-03-04 19:03:23 +04:00
Sergey Simonchik cc014593ea WEB-11194 runnerw.exe not working on win XP 2014-03-03 18:20:42 +04:00
Sergey Simonchik fc583db073 IDEA-117674 please rebuild and commit runnerw.exe 2014-02-11 14:34:25 +04:00
Denis Fokin f4136f12e8 IDEA-113995 Jump list: can't open recent projects that have spaces in paths 2013-10-15 14:32:07 +04:00
Dmitry Jemerov 7fb7911133 use correct company name in version info (IDEA-82623) 2013-10-11 17:57:41 +02:00
Dmitry Jemerov 780fa6e4dd allow watching exFAT (IDEA-114647) 2013-10-11 11:27:46 +02:00
Denis Fokin dff5e277c3 Windows long paths issue has been fixed, the com.intellij.ui.win.Task was moved from RecentTasks class because of some problems with JNI invocations. Class path now is enclosed by double quotes. 2013-09-10 16:08:11 +04:00
Denis Fokin 867be29a7d Jumplist libraries changes. This is a release version of dll with eliminated MSVCRT dependencies. 2013-08-26 15:00:12 +04:00
Denis Fokin 11afb9b5e7 Initial support for IDEA-108265. Currently only "Recent" projects are available. 2013-08-08 16:23:43 +04:00
Dmitry Jemerov 2922196584 runnerw rebuilt 2013-01-18 14:08:46 +01:00
Anton Makeev 96462d0b09 Patches: out-of-process patches 2013-01-18 09:30:31 +01:00
Roman Shevchenko b35e67781b Resolve only symlinks and junctions on Windows 2012-12-12 13:26:22 +01:00
Roman Shevchenko c8593aae84 Fix FileUtil.resolveSymLink() on regular files on Windows 2012-12-11 22:07:31 +01:00
Roman Shevchenko 9cebfaee20 IdeaWin32 tune-up 2012-10-08 11:37:18 +02:00