Open PhilKes opened 1 month ago
@carlrobertoh no idea why the ChatToolWindowTabPanelTest.testSendingOpenAIMessageWithImage
fails, it succeeds locally.
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
https://github.com/carlrobertoh/CodeGPT/actions/runs/9112340838/job/25051402045?pr=566#step:4:724
Noice! 👍
It happens because the tests on the Github runner are executed in headless mode. You can replicate this by running export JAVA_TOOL_OPTIONS='-Djava.awt.headless=true'
before executing the tests. Not sure what the fix is yet.
Noice! 👍
It happens because the tests on the Github runner are executed in headless mode. You can replicate this by running
export JAVA_TOOL_OPTIONS='-Djava.awt.headless=true'
before executing the tests. Not sure what the fix is yet.
Ah I see, in the DropTarget
constructor:
public DropTarget(Component c, int ops, DropTargetListener dtl, boolean act, FlavorMap fm) throws HeadlessException {
if (GraphicsEnvironment.isHeadless()) {
throw new HeadlessException();
}
...
}
This PR closes #554
Adds support for drag&drop of a single image file into the prompt![codegpt-drop-image2](https://github.com/carlrobertoh/CodeGPT/assets/39240633/33b7a799-d43b-4e3a-af68-d8f05a8e3d4a)