kayoj

kayoj

Hello

I have been testing different environments for Elixir development & noticed something odd. When I run the Elixir formatter locally in my usual setup, it gives consistent results. :slightly_smiling_face: But when I try formatting the same code inside Cursor AI; the output sometimes looks slightly different, especially with long pipeline chains and spacing around function arguments.:innocent:

I’m wondering if anyone else has noticed this? :thinking: Could it be related to Cursor AI applying its own formatting rules on top of Elixir’s defaults, or maybe some hidden config I’m not aware of? :thinking: This makes it tricky when working in teams, since code styles should ideally stay the same across all environments.

For reference, here’s the official Elixir Formatter Guide. Any ideas on aligning Cursor AI with the standard Elixir formatter would be really helpful.:slightly_smiling_face:

Thank you !!:slightly_smiling_face:

#ai

Showing Posts 1 to 1

sbuttgereit

sbuttgereit

I use Cursor and have it set up to format on save (via the formatter) and I haven’t noticed anything odd.

The behaviors closest to what you describe tend to be related to Cursor Tab. Cursor Tab autocomplete will sometimes sneak in when I’m not expecting it and make changes; this could go unnoticed if I was keyboarding around for other reasons, and this would also including it’s idea of formatting since it tries to add not just lines of code, but code in what it sees as a consistent format (consistent with what may vary).

I’ve found Cursor Tab to be kinda annoying and have it turned of and since then I really haven’t seen that sort of unnoticed strangeness, including in formatting. It’s a bit ironic because Cursor Tab was one of the bigger reasons I signed up for Cursor… but over time it became less helpful and more something I’d be continually contradicting.

— All posts loaded —

Where Next? Top

Trending in AI / LLMs Top

AstonJ
This showed up on my feed.. anyone heard of it? Just hype? Ox Alpha is a reasoning model designed for coding, sustained ag...
New
sergio
It’s not that it’s vocabulary is too advanced. It’s something worse. I get lost trying to follow even a paragraph written by Claude. It’...
New
AstonJ
With advancements in AI gathering pace and set to increasingly accelerate, perhaps it’s worth having an annual thread on the topic - feel...
New
dmitriid
What A larger rant at in this post. Code at github: GitHub - dmitriid/llamex: Credo Plugin that detects issues that LLM-assisted Elixir r...
New

Other Trending Topics Top

mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
garrison
Hobbes is a low-level distributed database for the Elixir programming language. Hobbes provides a simple, safe, and scalable storage lay...
New
marciok
Hi there! We created Gust: A task orchestrator inspired by Airflow. For those who have never heard about Aiflow, it’s a Python-based wor...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Damirados
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve. They are GUI (Emerge) and State management (S...
New
netoum
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews