Skip to content

Cannot compile file via absolute path #969

@awstlaur

Description

@awstlaur

Command

node build/phaseA/pyret.jarr 
  --build-runnable /home/alex/pyret-examples/example.arr
  --outfile /home/alex/pyret-examples/example.jarr
  --builtin-js-dir src/js/trove/
  --builtin-arr-dir src/arr/trove
  --require-config src/scripts/standalone-configA.json

Output

Gathering dependencies...The run ended in error:
Cannot find import dependency("file", [list: "/home/alex/pyret-examples/example.arr"])

Pyret stack:
  file:///home/alex/repos/pyret-lang/src/arr/compiler/cli-module-loader.arr: line 254, column 10
  file:///home/alex/repos/pyret-lang/src/arr/compiler/cli-module-loader.arr: line 245, column 4
  file:///home/alex/repos/pyret-lang/src/arr/compiler/cli-module-loader.arr: line 337, column 9
  file:///home/alex/repos/pyret-lang/src/arr/compiler/cli-module-loader.arr: line 384, column 18
  file:///home/alex/repos/pyret-lang/src/arr/compiler/pyret.arr: line 100, column 10
  file:///home/alex/repos/pyret-lang/src/arr/compiler/pyret.arr: line 69, column 4
  file:///home/alex/repos/pyret-lang/src/arr/compiler/pyret.arr: line 175, column 4

I am able to do this if I instead specify the same file with a relative path.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions