Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 14 additions & 4 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,24 @@
patches/6330.diff
patches/7610.diff
patches/8038-draft.diff
patches/8690.diff
patches/8829.diff
patches/8828.diff
patches/7893-draft.diff
patches/8460-draft.diff
patches/8745-draft.diff
patches/8662.diff
patches/8664.diff
patches/8690.diff
patches/8694.diff
patches/8745.diff
patches/8748.diff
patches/8760.diff
patches/8770.diff
patches/8762.diff
patches/8769.diff
patches/8797.diff
patches/8816.diff
patches/8821.diff
patches/8827.diff
patches/8828.diff
patches/8829.diff
patches/8856-draft.diff
patches/disable-error-notification.diff
patches/mvn-sh.diff
Expand Down
404 changes: 404 additions & 0 deletions patches/8662.diff

Large diffs are not rendered by default.

1,049 changes: 1,049 additions & 0 deletions patches/8664.diff

Large diffs are not rendered by default.

89 changes: 89 additions & 0 deletions patches/8694.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
diff --git a/java/java.lsp.server/src/org/netbeans/modules/java/lsp/server/debugging/NbProtocolServer.java b/java/java.lsp.server/src/org/netbeans/modules/java/lsp/server/debugging/NbProtocolServer.java
index 6fe9ece2c0cb..82f5346568d1 100644
--- a/java/java.lsp.server/src/org/netbeans/modules/java/lsp/server/debugging/NbProtocolServer.java
+++ b/java/java.lsp.server/src/org/netbeans/modules/java/lsp/server/debugging/NbProtocolServer.java
@@ -81,7 +81,9 @@
import org.netbeans.api.debugger.jpda.JPDADebugger;
import org.netbeans.api.debugger.jpda.ObjectVariable;
import org.netbeans.api.debugger.jpda.Variable;
+import org.netbeans.api.project.Project;
import org.netbeans.modules.debugger.jpda.truffle.vars.TruffleVariable;
+import org.netbeans.modules.java.lsp.server.LspServerState;
import org.netbeans.modules.java.lsp.server.LspSession;
import org.netbeans.modules.java.lsp.server.URITranslator;
import org.netbeans.modules.java.lsp.server.debugging.breakpoints.NbBreakpointsRequestHandler;
@@ -165,6 +167,20 @@ public CompletableFuture<Capabilities> initialize(InitializeRequestArguments arg
caught.setLabel("Caught Exceptions");
caps.setExceptionBreakpointFilters(new ExceptionBreakpointsFilter[]{uncaught, caught});
caps.setSupportsExceptionInfoRequest(true);
+
+ LspServerState lspServerState = context.getLspSession().getLookup().lookup(LspServerState.class);
+ if (lspServerState != null) {
+ CompletableFuture<Project[]> initDone = lspServerState.openedProjects();
+ if (!initDone.isDone()) {
+ LOGGER.log(Level.INFO, "Waiting on LS protocol server {0} to finish initialization", lspServerState);
+ return lspServerState.openedProjects().thenApply(prjs -> {
+ LOGGER.log(Level.FINE, "LS protocol server {0} initialized, DAP init complete", lspServerState);
+ return caps;
+ });
+ } else {
+ LOGGER.log(Level.FINE, "LS protocol server {0} ready", lspServerState);
+ }
+ }
return CompletableFuture.completedFuture(caps);
}

diff --git a/java/maven/src/org/netbeans/modules/maven/execute/MavenCommandLineExecutor.java b/java/maven/src/org/netbeans/modules/maven/execute/MavenCommandLineExecutor.java
index 81a7feb329f2..c1d60f9c4b71 100644
--- a/java/maven/src/org/netbeans/modules/maven/execute/MavenCommandLineExecutor.java
+++ b/java/maven/src/org/netbeans/modules/maven/execute/MavenCommandLineExecutor.java
@@ -37,6 +37,7 @@
import java.util.Map;
import java.util.UUID;
import java.util.concurrent.ExecutionException;
+import java.util.concurrent.atomic.AtomicInteger;
import java.util.function.Consumer;
import java.util.logging.Level;
import java.util.logging.Logger;
@@ -128,6 +129,12 @@ public class MavenCommandLineExecutor extends AbstractMavenExecutor {
private String processUUID;
private Process preProcess;
private String preProcessUUID;
+
+ /**
+ * Diagnostics: stracktrace that shows what code requested the execution.
+ */
+ private final Throwable trace;
+
private static final SpecificationVersion VER18 = new SpecificationVersion("1.8"); //NOI18N
private static final Logger LOGGER = Logger.getLogger(MavenCommandLineExecutor.class.getName());

@@ -191,6 +198,11 @@ public ExecutorTask execute(RunConfig config, InputOutput io, TabContext tc) {
public MavenCommandLineExecutor(RunConfig conf, InputOutput io, TabContext tc) {
super(conf, tc);
this.io = io;
+ if (LOGGER.isLoggable(Level.FINER)) {
+ this.trace = new Throwable();
+ } else {
+ this.trace = null;
+ }
}

/**
@@ -331,6 +343,8 @@ public void actionPerformed(ActionEvent e) {
// ioput.getOut().println(key + ":" + env.get(key));
// }
ProcessBuilder builder = constructBuilder(clonedConfig, ioput);
+ LOGGER.log(Level.FINER, "Executing process {0} from {1}", new Object[] { builder.command(), this });
+ LOGGER.log(Level.FINER, "Origin:", this.trace);
printCoSWarning(clonedConfig, ioput);
processUUID = UUID.randomUUID().toString();
builder.environment().put(KEY_UUID, processUUID);
@@ -348,6 +362,7 @@ public void actionPerformed(ActionEvent e) {
throw death;
} finally {
BuildExecutionSupport.registerFinishedItem(item);
+ LOGGER.log(Level.FINER, "Execution of {0} terminated", this );

try { //defend against badly written extensions..
out.buildFinished();
2 changes: 1 addition & 1 deletion patches/8745-draft.diff → patches/8745.diff
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
diff --git a/java/java.lsp.server/src/org/netbeans/modules/java/lsp/server/ui/AbstractJavaPlatformProviderOverride.java b/java/java.lsp.server/src/org/netbeans/modules/java/lsp/server/ui/AbstractJavaPlatformProviderOverride.java
index df668954dd..054f85d0e5 100644
index df668954dd94..054f85d0e59e 100644
--- a/java/java.lsp.server/src/org/netbeans/modules/java/lsp/server/ui/AbstractJavaPlatformProviderOverride.java
+++ b/java/java.lsp.server/src/org/netbeans/modules/java/lsp/server/ui/AbstractJavaPlatformProviderOverride.java
@@ -39,6 +39,14 @@ public abstract class AbstractJavaPlatformProviderOverride implements JavaPlatfo
Expand Down
8 changes: 8 additions & 0 deletions patches/8748.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
diff --git a/platform/openide.util.lookup/src/META-INF/gradle/incremental.annotation.processors b/platform/openide.util.lookup/src/META-INF/gradle/incremental.annotation.processors
new file mode 100644
index 000000000000..918b4bbf6505
--- /dev/null
+++ b/platform/openide.util.lookup/src/META-INF/gradle/incremental.annotation.processors
@@ -0,0 +1 @@
+org.netbeans.modules.openide.util.ServiceProviderProcessor,aggregating
\ No newline at end of file
14 changes: 14 additions & 0 deletions patches/8760.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
diff --git a/ide/editor.lib2/src/org/netbeans/spi/editor/highlighting/support/HighlightsContainers.java b/ide/editor.lib2/src/org/netbeans/spi/editor/highlighting/support/HighlightsContainers.java
index 5447ab950347..56de41045d8d 100644
--- a/ide/editor.lib2/src/org/netbeans/spi/editor/highlighting/support/HighlightsContainers.java
+++ b/ide/editor.lib2/src/org/netbeans/spi/editor/highlighting/support/HighlightsContainers.java
@@ -38,6 +38,9 @@ class InlineHintsSettingsAwareContainer extends AbstractHighlightsContainer impl

public InlineHintsSettingsAwareContainer() {
String mimeType = DocumentUtilities.getMimeType(doc);
+ if (mimeType == null) {
+ mimeType = "";
+ }
prefs = MimeLookup.getLookup(mimeType).lookup(Preferences.class);
prefs.addPreferenceChangeListener(WeakListeners.create(PreferenceChangeListener.class, this, prefs));
inlineSettingChanged();
Loading