Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Looking for an image but I am not inputting an image. #895

Open
carterrees-reputation opened this issue Feb 21, 2025 · 0 comments
Open

Looking for an image but I am not inputting an image. #895

carterrees-reputation opened this issue Feb 21, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@carterrees-reputation
Copy link

What happened?

I have a single .py selected and when I attempt to ask a question about the code. I get the error below. I have not selected an image when asking the question. Using my own API key and using gpt-4o.

I have uninstalled and reinstalled to trying and fix the issue below. The runtime exception remains the same before and after the reinstall.

Relevant log output or stack trace

java.lang.RuntimeException: java.nio.file.NoSuchFileException: /Users/crees/Desktop/Screenshot 2025-02-16 at 11.12.40 PM.png
	at ee.carlrobert.codegpt.completions.factory.OpenAIRequestFactory$Companion.buildOpenAIChatMessages(OpenAIRequestFactory.kt:218)
	at ee.carlrobert.codegpt.completions.factory.OpenAIRequestFactory$Companion.buildOpenAIMessages(OpenAIRequestFactory.kt:115)
	at ee.carlrobert.codegpt.completions.factory.OpenAIRequestFactory$Companion.buildOpenAIMessages$default(OpenAIRequestFactory.kt:110)
	at ee.carlrobert.codegpt.completions.factory.OpenAIRequestFactory.createChatRequest(OpenAIRequestFactory.kt:26)
	at ee.carlrobert.codegpt.completions.factory.OpenAIRequestFactory.createChatRequest(OpenAIRequestFactory.kt:20)
	at ee.carlrobert.codegpt.completions.ToolwindowChatCompletionRequestHandler.startCall(ToolwindowChatCompletionRequestHandler.java:46)
	at ee.carlrobert.codegpt.completions.ToolwindowChatCompletionRequestHandler.call(ToolwindowChatCompletionRequestHandler.java:25)
	at ee.carlrobert.codegpt.toolwindow.chat.ChatToolWindowTabPanel.lambda$call$10(ChatToolWindowTabPanel.java:307)
	at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport$executeOnPooledThread$1.run(AnyThreadWriteThreadingSupport.kt:167)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572)
	at com.intellij.util.concurrency.ContextCallable.lambda$call$1(ContextCallable.java:85)
	at com.intellij.util.concurrency.ContextCallable.call(ContextCallable.java:94)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
	at com.intellij.util.concurrency.ChildContext$runInChildContext$1.invoke(propagation.kt:103)
	at com.intellij.util.concurrency.ChildContext$runInChildContext$1.invoke(propagation.kt:103)
	at com.intellij.util.concurrency.ChildContext.runInChildContext(propagation.kt:109)
	at com.intellij.util.concurrency.ChildContext.runInChildContext(propagation.kt:103)
	at com.intellij.util.concurrency.ContextRunnable.run(ContextRunnable.java:27)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:735)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:732)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:400)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:732)
	at java.base/java.lang.Thread.run(Thread.java:1583)
Caused by: java.nio.file.NoSuchFileException: /Users/crees/Desktop/Screenshot 2025-02-16 at 11.12.40 PM.png
	at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:92)
	at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106)
	at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
	at java.base/sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:261)
	at java.base/java.nio.file.Files.newByteChannel(Files.java:380)
	at java.base/java.nio.file.Files.newByteChannel(Files.java:432)
	at java.base/java.nio.file.Files.readAllBytes(Files.java:3281)
	at ee.carlrobert.codegpt.completions.factory.OpenAIRequestFactory$Companion.buildOpenAIChatMessages(OpenAIRequestFactory.kt:201)
	... 24 more

Steps to reproduce

No response

CodeGPT version

2.16.3-241.1

Operating System

macOS

@carterrees-reputation carterrees-reputation added the bug Something isn't working label Feb 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant