You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
I can't reproduce this; for me, it goes to line 100 of the file. What OS and Atom version are you using? Does this happen if you run Atom with atom --safe?
For a path like foo.txt:100, url.parse(pathToOpen).protocol returns foo.txt:, so the check succeeds and the full path is returned (including :100), and the logic for splitting the path by : isn't even reached.
Wondering if we can work around this case somehow? /cc #6978 where this was added.
same for me on ubuntu linux.
echo "a\nb\nc\n" > somefile.txt
atom somefile.txt:3
result: opens "somefile.txt:3"
note: "somefile.txt:3" is valid filename under linux
I tried some other linux editors (emacs, vim) and they behave exactly same.
Same issue here. It works properly with some files, and not for other files. I can't figure out what is different in the cases where it works vs when it doesn't work. 😢
This is my only issue with moving to Atom at the moment from a combination of Notepad++ and BowPad. Being able to just to specific error lines from an IDE is a massive time saver.
This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!
Activity
maxbrunsfeld commentedon Jun 19, 2015
I can't reproduce this; for me, it goes to line 100 of the file. What OS and Atom version are you using? Does this happen if you run Atom with
atom --safe?X-G commentedon Jun 20, 2015
I'm using Windows10 and Atom 0.210.
And yes, this will happen even if I run
atom --safe file.tex:100.lee-dohm commentedon Jun 20, 2015
Reproduced using Atom v0.211.0-fc4f2a1 on Mac OS X 10.10.3.
Steps to Reproduce
$HOMEmkdir temptouch temp/file.texatom temp/file.tex:100$HOME/tempatom file.tex:100Expected: Atom opens with the
file.texfile already openActual: Atom opens with a new file called
file.tex:100already openizuzak commentedon Jun 22, 2015
Thanks for the reproduction steps, @lee-dohm. ❤️
@maxbrunsfeld @mostafaeweda As far as I can tell, the reason why this is happening is here:
For a path like
foo.txt:100,url.parse(pathToOpen).protocolreturnsfoo.txt:, so the check succeeds and the full path is returned (including:100), and the logic for splitting the path by:isn't even reached.Wondering if we can work around this case somehow? /cc #6978 where this was added.
maiklos commentedon Jun 25, 2015
same for me on ubuntu linux.
echo "a\nb\nc\n" > somefile.txt
atom somefile.txt:3
result: opens "somefile.txt:3"
note: "somefile.txt:3" is valid filename under linux
I tried some other linux editors (emacs, vim) and they behave exactly same.
How about to use vim syntax ? instead of :x +x ?
see here: http://www.cyberciti.biz/faq/linux-unix-command-open-file-linenumber-function/
Flonker commentedon Jul 1, 2015
Hi!
Atom 1.0.0 on Windows 7 pro here.
No matter how I open the file it allways opens a new file with the ":linenumber".
Both tries open a new file called "test.txt:5" according to this screenshot.
This is the file:

samachr commentedon Jul 2, 2015
Same problem here. Really would like to use this feature. Also happens when opening with absolute paths instead of relative.
X-G commentedon Jul 2, 2015
+1
m0nhawk commentedon Jul 6, 2015
Same problem for me. Hope this will be fixed soon.
doggan commentedon Aug 17, 2015
Same issue here. It works properly with some files, and not for other files. I can't figure out what is different in the cases where it works vs when it doesn't work. 😢
Using Atom 1.0.7 on Mac OS X (10.10.5).
doggan commentedon Aug 18, 2015
It seems to work for files with an underscore in their name.
This doesn't work (opens up a file called
dummy1.txt:2ordummy-1.txt:2):This works (opens up
dummy_1.txtto line 2):Hopefully that is helpful info 👀
jgable commentedon Aug 19, 2015
@doggan 👍 The prepend an underscore to the file workaround also worked for me.
m0nhawk commentedon Aug 30, 2015
@doggan It doesn't work for me under Windows with latest (1.0.9) Atom. Thus, it's not a fixed issue and hardly be called a workaround.
doggan commentedon Aug 30, 2015
@m0nhawk I don't see anyone claiming it is fixed, hence the reason this issue is still open. My comment was to provide repro information.
Xcodo commentedon Aug 31, 2015
+1
Same for me on Windows with Atom 1.0.9.
This is my only issue with moving to Atom at the moment from a combination of Notepad++ and BowPad. Being able to just to specific error lines from an IDE is a massive time saver.
maxbrunsfeld commentedon Sep 3, 2015
⚡ @izuzak Thanks so much for tracking this down.
lock commentedon Jan 20, 2019
This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!