дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-12-06 18:17:15 +02:00
feat(build): add Build › Recompile for a single Java file (#5587)
Build › Recompile '<file>.java' (Shift+Cmd+F9 / Ctrl+Shift+F9, moved from Build Module, which keeps no default shortcut) compiles only the active Java file with javac and streams its output and diagnostics to the Build tool window. The menu, editor, tab and Project view entries name the file and are enabled only for local .java files. - Maven modules resolve the classpath of the file's scope (compile for main sources, test for test sources) through dependency:build-classpath; the probe is now cancellable. - Gradle projects get the source set's output, compile classpath, source folders and release from an init script. - Projects without a build tool compile against their Project Structure roots, outputs and libraries. - In a workspace the file's member project is used. - javac gets -g, omits an empty -cp, and uses -source/-target on JDK 8; localized javac error and warning prefixes are parsed. Co-authored-by: RuyimgByCN <[email protected]>
Цей коміт міститься в:
1 джерело
d729ae8122
коміт
748e5cee89
25 files changed
+1038
-150
No files matched your search
@@ -87,6 +87,8 @@ describe("IDEA keymap parity", () => {
|
||||
["navigate.back", ["Meta+[", "Meta+Alt+Left", "Button4", "SwipeRight"], ["Ctrl+Alt+Left", "Button4"]],
|
||||
["navigate.forward", ["Meta+]", "Meta+Alt+Right", "Button5", "SwipeLeft"], ["Ctrl+Alt+Right", "Button5"]],
|
||||
["file.projectStructure", ["Meta+;"], ["Ctrl+Alt+Shift+S"]],
|
||||
["build.compileFile", ["Meta+Shift+F9"], ["Ctrl+Shift+F9"]],
|
||||
["build.buildModule", [], []],
|
||||
])("%s", (id, mac, win) => {
|
||||
expect(intellijMacos[id]).toEqual(mac);
|
||||
expect(intellijWindows[id]).toEqual(win);
|
||||
|
||||
@@ -258,7 +258,8 @@ export const intellijMacos: Record<string, string[]> = {
|
||||
|
||||
// Build
|
||||
"build.buildProject": ["Meta+F9"],
|
||||
"build.buildModule": ["Meta+Shift+F9"],
|
||||
"build.buildModule": [],
|
||||
"build.compileFile": ["Meta+Shift+F9"],
|
||||
"build.rebuildProject": [],
|
||||
"build.buildArtifacts": [],
|
||||
|
||||
|
||||
@@ -252,7 +252,8 @@ export const intellijWindows: Record<string, string[]> = {
|
||||
|
||||
// Build
|
||||
"build.buildProject": ["Ctrl+F9"],
|
||||
"build.buildModule": ["Ctrl+Shift+F9"],
|
||||
"build.buildModule": [],
|
||||
"build.compileFile": ["Ctrl+Shift+F9"],
|
||||
"build.rebuildProject": [],
|
||||
"build.buildArtifacts": [],
|
||||
|
||||
|
||||
@@ -274,6 +274,7 @@ export const vscodeMacos: Record<string, string[]> = {
|
||||
// Build (Terminal › Run Build Task)
|
||||
"build.buildProject": ["Meta+Shift+B"],
|
||||
"build.buildModule": [],
|
||||
"build.compileFile": [],
|
||||
"build.rebuildProject": [],
|
||||
"build.buildArtifacts": [],
|
||||
|
||||
|
||||
@@ -413,6 +413,7 @@
|
||||
"menu.build": "Build",
|
||||
"menu.build.buildProject": "Build Project",
|
||||
"menu.build.buildModule": "Build Module",
|
||||
"menu.build.compileFile": "{compileFile, select, yes {Recompile '{compileFileName}'} other {Recompile}}",
|
||||
"menu.build.rebuildProject": "Rebuild Project",
|
||||
"menu.build.buildArtifacts": "Build Artifacts",
|
||||
"menu.toolwindow.build": "Build",
|
||||
|
||||
@@ -3902,5 +3902,7 @@
|
||||
"No tests ran. The build may skip them (skipTests, maven.test.skip, a disabled test task) or lack their engine: JUnit 4 tests on the JUnit Platform need junit-vintage-engine.": "No tests ran. The build may skip them (skipTests, maven.test.skip, a disabled test task) or lack their engine: JUnit 4 tests on the JUnit Platform need junit-vintage-engine.",
|
||||
"Downloading the list of PyPI package names…": "Downloading the list of PyPI package names…",
|
||||
"Could not load the list of PyPI package names. Type a package's exact name to look it up.": "Could not load the list of PyPI package names. Type a package's exact name to look it up.",
|
||||
"Only the first 50 PyPI matches are listed. Type more of the name to narrow them.": "Only the first 50 PyPI matches are listed. Type more of the name to narrow them."
|
||||
"Only the first 50 PyPI matches are listed. Type more of the name to narrow them.": "Only the first 50 PyPI matches are listed. Type more of the name to narrow them.",
|
||||
"Recompile": "Recompile",
|
||||
"Recompile '{name}'": "Recompile '{name}'"
|
||||
}
|
||||
@@ -10132,5 +10132,7 @@
|
||||
"No tests ran. The build may skip them (skipTests, maven.test.skip, a disabled test task) or lack their engine: JUnit 4 tests on the JUnit Platform need junit-vintage-engine.": "没有运行任何测试。构建可能跳过了测试(skipTests、maven.test.skip、被禁用的测试任务),或缺少对应的测试引擎:在 JUnit Platform 上运行 JUnit 4 测试需要 junit-vintage-engine。",
|
||||
"Downloading the list of PyPI package names…": "正在下载 PyPI 软件包名称列表…",
|
||||
"Could not load the list of PyPI package names. Type a package's exact name to look it up.": "无法加载 PyPI 软件包名称列表。请输入软件包的准确名称进行查询。",
|
||||
"Only the first 50 PyPI matches are listed. Type more of the name to narrow them.": "只列出前 50 个 PyPI 匹配项。请输入更完整的名称以缩小范围。"
|
||||
"Only the first 50 PyPI matches are listed. Type more of the name to narrow them.": "只列出前 50 个 PyPI 匹配项。请输入更完整的名称以缩小范围。",
|
||||
"Recompile": "重新编译",
|
||||
"Recompile '{name}'": "重新编译 '{name}'"
|
||||
}
|
||||
@@ -413,6 +413,7 @@
|
||||
"menu.build": "构建",
|
||||
"menu.build.buildProject": "构建项目",
|
||||
"menu.build.buildModule": "构建模块",
|
||||
"menu.build.compileFile": "{compileFile, select, yes {重新编译 '{compileFileName}'} other {重新编译}}",
|
||||
"menu.build.rebuildProject": "重新构建项目",
|
||||
"menu.build.buildArtifacts": "构建工件",
|
||||
"menu.toolwindow.build": "构建",
|
||||
|
||||
Reference in new issue
Заблокувати користувача