laurent.orseau
2020-3-21 11:44:26

[solved] Since this morning, when I make, I get the following error: standard-module-name-resolver: collection not found for module path: (lib "setup") collection: "setup" in collection directories: /home/laurent/.racket/7.6.0.17/collects /home/laurent/build/racket/racket/collects context...: show-collection-err standard-module-name-resolver module-path-index-resolve [repeats 1 more time] module-declared? Something I forgot?


samth
2020-3-21 12:05:06

Great


mflatt
2020-3-21 14:12:54

Is the directory “/home/laurent/build/racket/racket/collects/setup” missing, or is Racket somehow having trouble finding it?


laurent.orseau
2020-3-21 14:47:42

The directory exists


laurent.orseau
2020-3-21 14:50:43

Oh, now I remember: I moved some the base directory down one level the other day, so I guess I need to remake all. There’s no make clean, what’s the preferred way to rebuild from scratch?


mflatt
2020-3-21 15:12:12

I use git clean -x -d -f .


mflatt
2020-3-21 15:12:40

This is a FAQ, so probably I should add a clean target that echos that suggestion.


mflatt
2020-3-21 15:13:33

Probably you really only need to rebuild the executable, so a make clean in the racket/src/build directory is another option.


laurent.orseau
2020-3-21 15:44:57

make clean in src/build didn’t work, so back to git clean. Thanks!


laurent.orseau
2020-3-21 16:07:04

(cleaning worked.)


mflatt
2020-3-21 16:08:58

Pro tip: don’t try echo "Trygit clean -x -d -f ." unless you’re ready to run git clean. :slightly_smiling_face:


laurent.orseau
2020-3-21 16:16:28

haha :smile:


laurent.orseau
2020-3-21 18:24:20

samth
2020-3-21 19:52:42

@greg what’s the best way to try your check-syntax branch?


greg
2020-3-21 19:58:16

@samth Probably M-x package-remove racket-mode, then add to Emacs load-path where you checked out that branch.


samth
2020-3-21 19:58:30

ah


samth
2020-3-21 19:58:44

I’m worried my emacs-fu isn’t up to that


greg
2020-3-21 19:59:05

If you use use-package, keep that but remove the :ensure t and replace with :load-path /path/to/wherever.


greg
2020-3-21 20:00:04

I’ve been on the fence, close to merging that branch to master, soon, anyway


greg
2020-3-21 20:00:35

For awhile, dogfooding I’d discover a problem every day or two. Less frequently now. Probably just need other people to try it.


greg
2020-3-21 20:00:56

Well also, last 10 days I was mentally distracted. But focused again, last few days.


samth
2020-3-21 20:00:56

I would definitely use it right now if it didn’t require writing elisp


greg
2020-3-21 20:01:43

OK well let me look at merging to master within a day or two, and you could get it the normal way from MELPA.


greg
2020-3-21 20:02:27

Some days ago, it was probably ready, I just wasn’t sure I was ready to deal with any onslaught of bug reports etc, then. OK now.


samth
2020-3-21 20:02:53

I would be happy with “paste this code into your .emacs”


greg
2020-3-21 20:03:13

Ah OK. Do you use use-package?


samth
2020-3-21 20:03:27

no, my .emacs has no mention of racket-mode


greg
2020-3-21 20:03:51

OK, then, let me double-check what the thing to add, would be ….


greg
2020-3-21 20:07:00

I think simply (add-to-list 'load-path "/path/to/racket-mode-repo")? i.e. Wherever you did git clone racket-mode and git checkout check-syntax, append that path string to the load-path list.


greg
2020-3-21 20:08:28

Also, M-x package-delete racket-mode so it stops looking for that one.


greg
2020-3-21 20:08:50

@samth ^


samth
2020-3-21 20:09:44

Ok, I’ll try that. It would be cool to have something where racket-mode maintained itself with a git repository that it could auto-update, for those of us who want to live on the bleeding edge


greg
2020-3-21 20:11:30

Yep. I mean, MELPA is already that, where master is the bleeding edge. (MELPA Stable is supposed to be for “stable” packages, but I don’t use that personally or supply racket-mode for that.)


greg
2020-3-21 20:12:23

There’s also something called straight.el, which is a pkg manager a bit more like Racket’s, in that it just gets things directly from e.g. git repos. But it’s new-ish and I don’t have any mileage, and it’s one more thing you’d have to install and learn.


seankharris91
2020-3-21 20:16:10

@seankharris91 has joined the channel


popa.bogdanp
2020-3-21 21:47:32

> Some days ago, it was probably ready, I just wasn’t sure I was ready to deal with any onslaught of bug reports etc, then. OK now. FWIW, it’s been extremely stable for me over the last couple of weeks and I use it for at least an hour a day every day. The last issue that I had was the macroexpansion problem that you promptly fixed. The only other thing I can think of is it doesn’t seem to track generics well (i.e. it’ll say an import isn’t being used, when in reality it’s being used to define generics for a struct). I hit that a couple times but forgot to report it. Definitely not a blocker in my mind, though.


popa.bogdanp
2020-3-21 21:49:51

Here’s a minimal example that reproduces that issue:

#lang racket/base (require component) (struct foo () #:methods gen:component [(define (component-start a-foo) a-foo) (define (component-stop a-foo) a-foo)]) (you might need to raco pkg install component )


greg
2020-3-21 22:51:35

@popa.bogdanp Thanks for letting me know! Sounds like mostly good news. As for generics, I’ll take a look but that sounds 99% like something that would need to be fixed down in drracket/check-syntax. If so, I’m game to try to fix that, there, and make a PR. At the same time, that means it probably would not be a blocker to merging the check-syntax branch in Racket Mode.


johnli0135
2020-3-21 23:50:33

@johnli0135 has joined the channel


reza
2020-3-22 00:19:51

@reza has joined the channel


samdphillips
2020-3-22 03:10:03

Is there a way to have ERROR tests in rackunit report locations?