With standard gerbil new project structure, cannot gerbil interactive hello/main.ss. #1242

Open
opened 2024-06-12 10:16:28 +00:00 by vyzo · 0 comments
vyzo commented 2024-06-12 10:16:28 +00:00 (Migrated from github.com)

Discussed in https://github.com/mighty-gerbils/gerbil/discussions/1241

Originally posted by metaleap June 12, 2024
Newb question time! With the gerbil new hello-world starter project that does successfully gerbil build — I'm trying to work out an interpreted gerbil run equivalent, but both gerbil interactive hello/main.ss and cd hello && gerbil interactive main.ss error out with:

*** ERROR IN gx#core-resolve-library-relative-module-path -- 
*** ERROR IN "hello/main.ss"@5.9-5.14
--- Syntax Error: Cannot resolve relative module path; not in module context
... form:   ./lib

Does the interpreter not support/grok all that the compiler (or build script) does, out of box? Namely here the import of relative dir path ./lib? (Manually also specifying it via -L arg btw doesn't seem make a difference wrt the above error.)

### Discussed in https://github.com/mighty-gerbils/gerbil/discussions/1241 <div type='discussions-op-text'> <sup>Originally posted by **metaleap** June 12, 2024</sup> Newb question time! With the [`gerbil new` hello-world starter project](https://cons.io/guide/getting-started.html#write_some_code) that does successfully `gerbil build` — I'm trying to work out an interpreted `gerbil run` equivalent, but both `gerbil interactive hello/main.ss` and `cd hello && gerbil interactive main.ss` error out with: ``` *** ERROR IN gx#core-resolve-library-relative-module-path -- *** ERROR IN "hello/main.ss"@5.9-5.14 --- Syntax Error: Cannot resolve relative module path; not in module context ... form: ./lib ``` Does the interpreter not support/grok all that the compiler (or build script) does, out of box? Namely here the `import` of relative dir path `./lib`? (Manually also specifying it via `-L` arg btw doesn't seem make a difference wrt the above error.)</div>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
mighty-gerbils/gerbil#1242
No description provided.