Skip to content

Fix incorrect interpretation of a line-number spec… - #1400

Merged
DeeDeeG merged 1 commit into
masterfrom
fix-cli-with-line-number
Feb 9, 2026
Merged

DeeDeeG merged 1 commit into
masterfrom
fix-cli-with-line-number

Conversation

@savetheclocktower

Copy link
Copy Markdown
Contributor

…on the command line.

Fixes #1399.

I explained the bug in this comment. This implements the described fix.

I was going to add a spec to cover this, but spec/main-process/atom-application.test.js seems to rely deeply on the idea that two subdirectories are created, and that all CLI tests will be invoked from their parent directory. Hence there's no way to test something like pulsar FOO.md:10 within this structure; only, e.g., pulsar a/FOO.md:10.

This could be fixed, but I think it's better to fix the underlying issue than to hold it up while I try to re-examine the assumptions of the test framework.

Manual testing

To ensure this is fixed, test the exact behavior that's failing on master:

  • Invoke Pulsar from a directory with a root file, like a README.md, and include a line-number specification: pulsar README.md:10.
  • Ensure that a window opens with one item: the README.md. The cursor should be on line 10.

@DeeDeeG DeeDeeG left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small change and I can confirm the fix using the steps to reproduce at the bottom of the PR text. 👍

The comment feels a little arcane without a ton of context, but the more I think about it the clearer it becomes... IDK if there's a simpler or more approachable phrasing, but also I don't think it's such a problem or important enough to block merging, so I think we're good!

@DeeDeeG

DeeDeeG commented Feb 7, 2026 •

Copy link
Copy Markdown
Member

Actually let me look into the editor tests for a bit, IDK if those failures are also on master? Looking into it for a sec.

@confused-Techie confused-Techie left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can tell from the surrounding code that pathToOpen likely isn't the value we want to be checking here. Easy approval

@DeeDeeG

DeeDeeG commented Feb 9, 2026 •

Copy link
Copy Markdown
Member

Okay, we got a passing CI run on my placeholder commit (b3aefbb), ignoring the bugged duplicate package test job that is perma-pending (that package's tests did run in the original/non-duplicate job!).

I'll back that one out now and this should be good to go!

@DeeDeeG
DeeDeeG force-pushed the fix-cli-with-line-number branch from b3aefbb to d0d0d8b Compare February 9, 2026 04:19
@DeeDeeG
DeeDeeG merged commit b639d0e into master Feb 9, 2026
107 of 109 checks passed
@DeeDeeG
DeeDeeG deleted the fix-cli-with-line-number branch March 23, 2026 22:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

command line invocation to jump to line or line:column fails if filename doesn't contain underscore character

3 participants