Coder Social home page Coder Social logo

udiff commits breaking css about aider HOT 3 CLOSED

joshuavial avatar joshuavial commented on June 11, 2024
udiff commits breaking css

from aider.

Comments (3)

paul-gauthier avatar paul-gauthier commented on June 11, 2024 1

Thanks for providing a clear test case. But I can't seem to reproduce it, see below.

I'll keep an eye out for this behavior though.

(aider) macbook:tmp/css-diff$ cat app.css
/* test */

.App-header {
  background-color: #ffffff;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  font-size: calc(10px + 2vmin);
}

/* eof */


(aider) macbook:tmp/css-diff$ cat app.diff

```diff
--- App.css
+++ App.css
@@ ... @@
 .App-header {
-  min-height: 100vh;
+  min-height: 0;
   align-items: center;
   justify-content: center;
   font-size: calc(10px + 2vmin);
   color: grey;
   display: flex;
   flex-direction: column;
 }
```

(aider) macbook:tmp/css-diff$ git diff

(aider) macbook:tmp/css-diff$ aider --4 App.css --apply app.diff --no-auto

Aider v0.20.1-dev
Model: gpt-4-1106-preview using udiff edit format
Git repo: .git with 1 files
Repo-map: using 1024 tokens
Added App.css to the chat.
Applied edit to App.css

(aider) macbook:tmp/css-diff$ git diff

diff --git a/App.css b/App.css
index ffed1dc..0f1d864 100644
--- a/App.css
+++ b/App.css
@@ -2,7 +2,7 @@

 .App-header {
   background-color: #ffffff;
-  min-height: 100vh;
+  min-height: 0;
   align-items: center;
   justify-content: center;
   font-size: calc(10px + 2vmin);

from aider.

paul-gauthier avatar paul-gauthier commented on June 11, 2024 1

I'm going to close this issue for now, but feel free to add a comment here and I will re-open or file a new issue any time.

from aider.

joshuavial avatar joshuavial commented on June 11, 2024

Copy that, it's good to see your debugging process and I'll try that out when I see it again.

from aider.

Related Issues (20)

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.