Comments (5)
@nickveenhof I tried on private... So I had another test on a public repo, and I got a JS error:
Uncaught (in promise) TypeError: Cannot read properties of null (reading 'getAttribute') at popup.js:2:290946
this is the random repo I tested: https://gitlab.com/Amppatil/home/-/merge_requests/1/diffs
You are getting this error because document.querySelector('.description textarea').getAttribute('data-value')
cannot be found so is returning null on the querySelection.
The assumption of a description is an issue as not all MR in GitLab will render a description textarea, so that is a bug
from codereview.gpt.
Is the MR you tried it on public? I think the context/description of the MR might have been too big. The patches itself are truncated already but the description is not.
from codereview.gpt.
@nickveenhof I tried on private...
So I had another test on a public repo, and I got a JS error:
Uncaught (in promise) TypeError: Cannot read properties of null (reading 'getAttribute')
at popup.js:2:290946
this is the random repo I tested:
https://gitlab.com/Amppatil/home/-/merge_requests/1/diffs
from codereview.gpt.
It is not an issue of private vs public, here is a public PR/MR I tested on and get the same error as this issue:
https://github.com/vercel/satori/pull/287/files
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/117832/diffs
POST https://chat.openai.com/backend-api/conversation HTTP/1.1
Host: chat.openai.com
Connection: keep-alive
Content-Length: 31273
I have tried it on a number of private PRs and they work fine up to a certain size.
HTTP/1.1 413 Payload Too Large
Date: Tue, 18 Apr 2023 10:57:01 GMT
Content-Type: application/json
Content-Length: 163
Connection: keep-alive
{"detail":{"message":"The message you submitted was too long, please reload the conversation and submit something shorter.","code":"message_length_exceeds_limit"}}
From my understand of ChatGPT you'd want to count the number of token's in the message before sending and consider sending multiple messages to the Chat asking for it to wait for a certain command before responding. Then there will be an issue with the Chat only able to remember so many previous messages / tokens, but it ultimately means multiple api calls.
from codereview.gpt.
Does this bug still exist in the latest dev version? We also just pushed out a new version to the chrome store
from codereview.gpt.
Related Issues (20)
- [Feature] Azure DevOps Pipeline HOT 1
- Fails without giving any response or message, with quite big PRs HOT 3
- [Feature] Gitlab integration for self-hosted instances HOT 6
- [Enhancement] Improve prompt to send large patches in multiple prompts to avoid token limit HOT 1
- [Feature] Add support to another language HOT 2
- [Feature] Enable modification of the prompt in the UI HOT 2
- [bug] Modal keeps loading if the Open AI key was not entered in the options
- How to use for hosted GitLab PR? HOT 4
- Allow Github Enterprise as well HOT 1
- [Feature] Please it will be great also to include bitbucket in this extension
- [Feature] Enable focusing on specific files for a review HOT 1
- Fails without error message HOT 4
- Unable to enter API key HOT 9
- Fails with big PR-s HOT 1
- [Bug] User Experience (UX) Tragedy: Flawed UI Design Resulting in Data Loss HOT 1
- Unable to login HOT 6
- Fails with no details on the cause of the failure HOT 3
- Review is getting stuck after few sentences HOT 3
- Using with proprietary code? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from codereview.gpt.