Re: [racket-users] Way to open DrRacket at a specific file line?

2015-05-29 Thread Laurent
I see. I suppose that on the second call to "$ drracket -singleInstance", it's main.rkt that is visited again? I'd be surprised if singleInstance discarded all the flags though. Instead of flags though, one could write something like @12,15 to specify the line and column, so that the OS thinks it'

Re: [racket-users] Way to open DrRacket at a specific file line?

2015-05-29 Thread Robby Findler
Ah: with the command line the initial time I think it can be made to work. I was worried about the communication of positions later on. Robby On Friday, May 29, 2015, Laurent wrote: > I was optimistic this could work because when you launch DrRacket with bad > flags it tries to open files with

Re: [racket-users] Way to open DrRacket at a specific file line?

2015-05-29 Thread Laurent
I was optimistic this could work because when you launch DrRacket with bad flags it tries to open files with these names, at least on Ubuntu: $ drracket my-file.rkt --line will try to open the file "--line" and complain with a GUI message. So I guess that means the non recognized flags are sent to

Re: [racket-users] Way to open DrRacket at a specific file line?

2015-05-28 Thread Matthias Felleisen
On May 28, 2015, at 12:20 PM, Josh Grams wrote: > I asked how to build it from source, but just got pointed to the > snapshot binaries instead of getting a real answer. That's a serious mistake and I apologize. It shouldn't happen -- Matthias -- You received this message because you are subs

Re: [racket-users] Way to open DrRacket at a specific file line?

2015-05-28 Thread Robby Findler
This is fine advice. If you wanted to prepare just a little bit more, you might run "raco pkg update --clone drracket" (and then respond "yes" to the prompt). This would, in the directory you're in, create a "drracket" sub directory and a few others that contain the source code of DrRacket, linked

Re: [racket-users] Way to open DrRacket at a specific file line?

2015-05-28 Thread Laurent
Regarding contribution, this should at least be a good start: http://blog.racket-lang.org/2012/11/tutorial-contributing-to-racket.html http://www.greghendershott.com/2013/04/a-guide-for-infrequent-contributors-to-racket.html However, note that racket has been split into many different packages rel

Re: [racket-users] Way to open DrRacket at a specific file line?

2015-05-28 Thread Laurent
For what it's worth, I think these are some of the relevant lines: https://github.com/racket/drracket/blob/21c155c46c58c5d01ff984df27a77c19f4481640/drracket/drracket/private/drracket-normal.rkt#L19 https://github.com/racket/drracket/blob/21c155c46c58c5d01ff984df27a77c19f4481640/drracket/drracket/pr

Re: [racket-users] Way to open DrRacket at a specific file line?

2015-05-28 Thread Josh Grams
On 2015-05-28 09:59AM, Matthias Felleisen wrote: >I know DrRacket has some downsides, but I sure wish many more people >would see the light, use it, and help identify and better yet fix the >problems. I was interested in that, but couldn't figure out how to build it. I had found a couple of thing

Re: [racket-users] Way to open DrRacket at a specific file line?

2015-05-28 Thread Lux
OFF-TOPIC: I feel like I can do anything, because of this I can not thank you and all others for your work enough. Just to let you know my feelings and appreciation. > +1 > > I know DrRacket has some downsides, but I sure wish many more people would > see the light, use it, and help identify

Re: [racket-users] Way to open DrRacket at a specific file line?

2015-05-28 Thread Matthias Felleisen
On May 28, 2015, at 3:40 AM, Lux wrote: > I can not code anymore without DrRacket. +1 I know DrRacket has some downsides, but I sure wish many more people would see the light, use it, and help identify and better yet fix the problems. Thanks for the vote of confidence -- Matthias -- Yo

Re: [racket-users] Way to open DrRacket at a specific file line?

2015-05-28 Thread Lux
I see it is possible to do now, but require some not negligible amount of work, at least at this time for me... Thanks for the informations. I will continue to search for an hack on background, nonetheless... I will let you all know if I find something. > Ok. Some elements of answer: > - DrRacket

Re: [racket-users] Way to open DrRacket at a specific file line?

2015-05-28 Thread Laurent
Ok. Some elements of answer: - DrRacket can be started with the option "-singleInstance" to make sure that an existing window is reused to open new files. This option must be used each time the `drracket` executable is called, so it's better to simply make an alias. This also requires libunique to

Re: [racket-users] Way to open DrRacket at a specific file line?

2015-05-28 Thread Lux
> Do you mean opening the file from a menu within DrRacket or from the outside, > like from the command line? Hi Laurent, thanks for your answer. Yes, I mean from the command line (more specifically I need it to be launched as a system command, which is almost the same). I am on Linux but I thi

Re: [racket-users] Way to open DrRacket at a specific file line?

2015-05-28 Thread Laurent
Hi Lux, Do you mean opening the file from a menu within DrRacket or from the outside, like from the command line? On Thu, May 28, 2015 at 8:40 AM, Lux wrote: > As much as I love vim/gvim and configured it to do anything I want, I can > not code anymore without DrRacket. Something I miss is the

[racket-users] Way to open DrRacket at a specific file line?

2015-05-28 Thread Lux
As much as I love vim/gvim and configured it to do anything I want, I can not code anymore without DrRacket. Something I miss is the ability to open a file (in an existing istance) in a tab at specific line number (bonus points if also column). Tried searching around with no success... Any idea?