Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error occurs on Ubuntu when I imoprt a locale module which imported an online module #6023

Closed
jingkaimori opened this issue Jun 1, 2020 · 4 comments

Comments

@jingkaimori
Copy link

jingkaimori commented Jun 1, 2020

  • deno 1.0.3
  • v8 8.4.300
  • typescript 3.9.2
    When I run the script below, the process failed only with an error.
$ deno run mian.js
error: No such file or directory (os error 2)

file ./mian.js:

 import {test} from "./cirno.js";
 test();

file ./cirno.js:

import {readFileStr} from "https://deno.land/std/fs/read_file_str.ts";//Comment this statement and the error disappear

 export function test(){
	console.log("Hello World!");
 };

when I reproduce issue #5982 ,I got similar error message:

$ deno run main.js
Download https://deno.land/std@0.54.0/http/server.ts
Download https://deno.land/std@0.54.0/encoding/utf8.ts
Download https://deno.land/std@0.54.0/io/bufio.ts
Download https://deno.land/std@0.54.0/testing/asserts.ts
Download https://deno.land/std@0.54.0/async/mod.ts
Download https://deno.land/std@0.54.0/http/_io.ts
Download https://deno.land/std@0.54.0/textproto/mod.ts
Download https://deno.land/std@0.54.0/http/http_status.ts
Download https://deno.land/std@0.54.0/io/util.ts
Download https://deno.land/std@0.54.0/async/deferred.ts
Download https://deno.land/std@0.54.0/async/delay.ts
Download https://deno.land/std@0.54.0/async/mux_async_iterator.ts
Download https://deno.land/std@0.54.0/fmt/colors.ts
Download https://deno.land/std@0.54.0/testing/diff.ts
Download https://deno.land/std@0.54.0/path/mod.ts
Download https://deno.land/std@0.54.0/bytes/mod.ts
Download https://deno.land/std@0.54.0/path/win32.ts
Download https://deno.land/std@0.54.0/path/posix.ts
Download https://deno.land/std@0.54.0/path/common.ts
Download https://deno.land/std@0.54.0/path/separator.ts
Download https://deno.land/std@0.54.0/path/interface.ts
Download https://deno.land/std@0.54.0/path/glob.ts
Download https://deno.land/std@0.54.0/path/_globrex.ts
Download https://deno.land/std@0.54.0/path/_constants.ts
Download https://deno.land/std@0.54.0/path/_util.ts
error: No such file or directory (os error 2)

I think that past issue #6018 , #4267 and this issue may be the same issue.

@bartlomieju
Copy link
Member

This problem will be fixed by #6000

@jingkaimori
Copy link
Author

This problem will be fixed by #6000

#6000 is merged but the newer version of deno will throw the same error.I changed the file name to avoid the situation in #4298 :

  • main.js -> mian.js
  • mod.js -> cirno.js
    but the same error message still occurs.

@sayore
Copy link

sayore commented Jun 2, 2020

I think this is a debug related problem, at least in my case it seems that the parent /x/ libary got changed and errors have shown up on parent libaries; and the resulting missing libary file is the error 'error: No such file or directory (os error 2)'.

@jingkaimori
Copy link
Author

after 3fe6bc1 ,the error disappear.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants