Code Monkey home page Code Monkey logo

devpilot-intellij's Introduction

Welcome to DevPilot: Your pair programming partner makes you a greater navigator

English | 中文

Take a Glimpse

Unleash the power of AI in your coding with DevPilot, your new coding buddy, designed exclusively for IntelliJ IDEA.

This innovative AI-based plugin is set to supercharge your development process.

Stellar Features

  1. Intelligent Code Suggestions: Say goodbye to coding roadblocks! DevPilot dishes out real-time code suggestions as you type, understanding your context and serving up precise recommendations.
  2. Proactive Bug Detection: Keep bugs at bay! DevPilot spots potential bugs and errors before they become a problem, offering smart solutions and alternatives for efficient, error-free code.
  3. Code Refactoring: Level up your code! DevPilot helps optimize your code, providing insights on how to refactor and boost your code's structure and performance.
  4. Unit Test Generation: Testing made easy! DevPilot can generate unit testing code for you, making sure your code not only works as expected but is also ready for any future changes.
  5. Code Explanation: Don't just write code, understand it! DevPilot can explain unfamiliar code snippets, helping you grasp what's happening and learn faster.
  6. Auto-Comments: Keep your code clear! DevPilot can automatically add comments to your code, ensuring it's easy to understand and maintain.

How to use

DevPilot for JetBrains

RAG

DevPilot RAG

Build your own plugin

Build DevPilot

Contributing

See CONTRIBUTING.md for more information.

Ping Us

Got questions or suggestions, please contact us via email at [email protected].

devpilot-intellij's People

Contributors

geeklog avatar littleli0n avatar liuhaipenggg avatar maozhen520 avatar mryangxf avatar myoss avatar perryzhao avatar wsliliang avatar xiangtianyu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

devpilot-intellij's Issues

Did this project became closed-source?

This plugin was recently updated in the marketplace, but there are no changes in the repository. Did this became closed-source? Maybe this should be written in the readme?

Follow IDE system language

Is your feature request related to a problem? Please describe.
It would be nice if the plugin language could follows IntelliJ IDEA.

generate comments not meet expectation

Describe the bug
generate comments result always include unexpected info

To Reproduce

  1. select a method and choose generate comments
  2. It will probability return some comments include "java" and so on
image

Switching the language settings under WeChat user status will cause the code completion to be turned off

Describe the bug
Switching the language settings under WeChat user status will cause the code completion to be turned off.

To Reproduce
Steps to reproduce the behavior:

  1. Being in the status of a WeChat user and having the code completion feature enabled.
  2. Switching the language settings on the settings page.

Expected behavior
Switching languages does not cause the code completion feature to be turned off.

Environment (please complete the following information):

  • OS: win10
  • IDEA Version 2022.2.2
  • Plugin Version 2.4.2

Is this project still being updated?

Hello
I saw that the latest version of this plugin in the market is 2.3.0 from 2024, but it seems that the Main branch of this repository hasn’t been updated for a long time.
If it is still being updated, could you please tell me where I can find the updated branch?

Thanks a lot.

Optimize UI alignment in inner classes

Describe the bug
Need to optimize UI alignment in inner classes

To Reproduce
Try inner class

Environment (please complete the following information):

  • IDEA Version 2024.1
  • Plugin Version 2.4.0

Additional context
image

Code completion suggestion error

devpilot version:2.4.2
ide:PyCharm 2023.3.2 (Community Edition)
pycharmcom.intellij.openapi.diagnostic.RuntimeExceptionWithAttachments: Read access is allowed from inside read-action (see Application.runReadAction()); see https://jb.gg/ij-platform-threading for details Current thread: Thread[ApplicationImpl pooled thread 7,4,main] 335388483 (EventQueue.isDispatchThread()=false) SystemEventQueueThread: Thread[AWT-EventQueue-0,6,main] 1319861973 at com.intellij.util.concurrency.ThreadingAssertions.createThreadAccessException(ThreadingAssertions.java:149) at com.intellij.util.concurrency.ThreadingAssertions.softAssertReadAccess(ThreadingAssertions.java:107) at com.intellij.openapi.application.impl.ApplicationImpl.assertReadAccessAllowed(ApplicationImpl.java:1012) at com.intellij.workspaceModel.core.fileIndex.impl.WorkspaceFileIndexDataImpl.ensureIsUpToDate(WorkspaceFileIndexDataImpl.kt:134) at com.intellij.workspaceModel.core.fileIndex.impl.WorkspaceFileIndexDataImpl.getFileInfo(WorkspaceFileIndexDataImpl.kt:75) at com.intellij.workspaceModel.core.fileIndex.impl.WorkspaceFileIndexImpl.getFileInfo(WorkspaceFileIndexImpl.kt:247) at com.intellij.workspaceModel.core.fileIndex.impl.WorkspaceFileIndexImpl.findFileSetWithCustomData(WorkspaceFileIndexImpl.kt:230) at com.intellij.openapi.roots.impl.ProjectFileIndexImpl.getModuleForFile(ProjectFileIndexImpl.java:97) at com.zhongan.devpilot.util.VirtualFileUtil.getRelativeFilePath(VirtualFileUtil.java:59) at com.zhongan.devpilot.integrations.llms.aigateway.AIGatewayServiceProvider.instructCompletion(AIGatewayServiceProvider.java:243) at com.zhongan.devpilot.completions.prediction.CompletionFacade.retrieveCompletions(CompletionFacade.java:114) at com.zhongan.devpilot.completions.prediction.CompletionFacade.retrieveCompletions(CompletionFacade.java:57) at com.zhongan.devpilot.completions.inline.InlineCompletionHandler.retrieveInlineCompletion(InlineCompletionHandler.java:186) at com.zhongan.devpilot.completions.inline.InlineCompletionHandler.lambda$refetchCompletionsAfterDebounce$6(InlineCompletionHandler.java:137) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at com.intellij.util.concurrency.SchedulingWrapper$MyScheduledFutureTask.run(SchedulingWrapper.java:272) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:702) at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:699) at java.base/java.security.AccessController.doPrivileged(AccessController.java:399) at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:699) at java.base/java.lang.Thread.run(Thread.java:840)

New features - Code Completion

Highly recommended to utilize contextual code completion with features similar to Copilot, which can be triggered by pressing the TAB key.

Devpilot plugin's page constantly appears blank

  • OS version: Windows 10
  • IDEA version: 2023.1.6
  • Plugin version: Devpilot-2.4.2

Hi, I'm confused that the plugin, which was build by myself, is constantly appears blank.

I just set DefaultConst.AUTH_ON and DefaultConst.TELEMETRY_ON to false.What should I do?

Thanks!
1719992874534

@xiangtianyu

Version support

Is there a plan to support IntelliJ IDEA 2023.3? The latest version does not support it

NPE Risk: The non-existent ModelTypeEnum will cause the DevPilot settings page to fail to load properly.

If a ModelType is removed in the future, users using that ModelType will not be able to load the configuration page normally. ModelServiceEnum and SessionTypeEnum also have the same problem

public static ModelServiceEnum fromName(String name) {
if (name == null) {
return null;
}
for (ModelServiceEnum type : ModelServiceEnum.values()) {
if (type.getName().equals(name)) {
return type;
}
}
return null;
}

System-Prompt support

如果针对系统固化的提示词带来的回复不满意,可以提供额外的提示词进行更加自定义化的能力,实现更多元化的风格,当然也可以预置几种系统风格。

Latest Idea version support

Hello everyone, idea has released 2023.3 version while our plugin support is upto 2023.2, we should modify version config

SSO accounts cannot use Devpilot

Describe the bug
When using the AI Gateway service to log in to Devpilot, it cannot be used normally regardless of whether it is a ZA Online account or a ZA Tech account. The chat function prompts "Chat completion failed".

To Reproduce
Steps to reproduce the behavior:

  1. Select the service as AI Gateway in IntelliJ IDEA settings
  2. Select ZA Online SSO or ZA Tech SSO, use OAuth2 to log in, normal callback, and the plugin prompts that the login is successful.
  3. Chat with the model in the plugin’s chat function

Expected behavior
The plugin should return the answer to a question normally instead of prompting Chat completion failed

Environment (please complete the following information):

  • OS: Windows 11 22H2 (22621.3155)
  • IDEA Version 2023.3.4
  • Plugin Version 2.3.0

Additional context
Code completion is also unavailable and no error message is output.

Request for Support of OpenAI Streaming Response Interface

Describe the Issue

I've noticed that currently when using the OpenAI API, it supports synchronous requests. However, for large text or scenarios where responses are needed progressively, I believe supporting a streaming response interface would be a very useful feature.

Feature Request

I would like the OpenAI API to support a streaming response interface, allowing us to receive responses gradually for processing large text, rather than waiting for the entire text processing to complete before receiving a response. This would be particularly beneficial for handling large text data or real-time applications.

Expected Outcome

I hope to be able to use the OpenAI streaming response interface like this:

# Pseudo code example
response = openai.stream_request('text to process')
for chunk in response:
    process_chunk(chunk)

All keyboard input will be blocked while the "chat" dialog is opened

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'DevPilot Chat'
  2. press any shortcut, like open the settings ctrl + alt + s

Expected behavior
The settings dialog should open

Environment (please complete the following information):

  • OS: [WSL2 + Ubuntu + X11]
  • IDEA Version [2023.3.4]
  • Plugin Version [2.3.0]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.