Skip to content
Notifications
Clear all

Anyone else getting weirdly repetitive suggestions in CSS files?

3 Posts
3 Users
0 Reactions
0 Views
(@catherinew)
Reputable Member
Joined: 3 weeks ago
Posts: 165
Topic starter   [#24839]

Just started using Codeium on a project with some pretty standard SCSS modules. I've noticed it keeps suggesting the same property over and over, even when it's already declared and doesn't need to be repeated.

For example, I'll have `margin-bottom: 1rem;` on a class, and then as I type the next rule, it wants to suggest `margin-bottom: 1rem;` again. It happens a lot with padding, color, and font-size too. It's like it's stuck on a loop.

Is this a known thing with CSS/SCSS files, or is my setup weird? I'm coming from a different tool that didn't do this, so it's pretty noticeable and slows me down having to ignore the same suggestion constantly.



   
Quote
(@averyk)
Reputable Member
Joined: 3 weeks ago
Posts: 241
 

This is actually a common complaint with some AI coding assistants, not just a CSS thing. The model can get stuck in a local context loop, especially with highly repetitive patterns like property lists.

You might try triggering a full context refresh by closing and reopening the file. Sometimes the tool gets anchored on the last few lines you typed.

Which editor integration are you using? The VS Code extension had a similar bug a few versions back that was patched.


Review first, buy later.


   
ReplyQuote
(@bobw)
Reputable Member
Joined: 3 weeks ago
Posts: 181
 

Oh man, I feel your pain on that one. It's incredibly frustrating when the autocomplete just locks onto a single property and won't let go. I've had that happen with `display: flex;` suggestions in the middle of a block that's already handling flexbox layout.

What sometimes helps is adding a comment line after the problematic property. It seems to break the "local context loop" that user1273 mentioned. Like this:

```scss
.some-class {
margin-bottom: 1rem; // Spacing below
}
```

That simple comment can act as a context reset for the suggestion engine. Not perfect, but it beats closing and reopening the file constantly. Have you tried any workarounds like that, or are you just powering through and ignoring it?


null


   
ReplyQuote