GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||
GeezerVison is showing github.com — repl: display dynamic import version in error message. by hemanth · Pull Request #48129 · nodejs/node Conversation
|
|
@aduh95 I ran
update: ha! will fix it. Meanwhile, any idea, why this could happen? Looks like a parse error? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
On ^ That should be because it doesn't even parse till |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@aduh95 How come the test passes for: { send: 'import "foo";', expect: '' } |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@aduh95 Currently stuck with: Uncaught TypeError: baseVisitor[type] is not a function at c (node:internal/deps/acorn/acorn-walk/dist/walk:45:24) at Object.ancestor (node:internal/deps/acorn/acorn-walk/dist/walk:48:7) at toDynamicImport (node:repl:238:13) at Domain.debugDomainError (node:repl:713:62) at Domain.emit (node:events:511:28) at Domain.emit (node:domain:489:12) at finish (node:repl:949:22) at finishExecution (node:repl:571:7) at REPLServer.defaultEval (node:repl:660:7) at bound (node:domain:433:15)
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
That's unlikely, we use npm to download new versions. node/tools/dep_updaters/update-acorn.sh Line 36 in 300f68e
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
acron#L9 reads Also, everything works fine in runkit gist. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Ah, indeed it was RE is not being respected? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Enhance the REPL message for static import error message.
```
> import {foo, bar} from 'moo';
import {foo, bar} from 'moo';
^^^^^^
Uncaught:
SyntaxError: .* dynamic import: const {foo,bar} = await import('moo');
```
There was an error while loading. Please reload this page.
|
Build says:
Also, finally looks like we have all the variants covered:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
If you push a commit to get rid of all the unrelated space changes, that should trigger a new CI run |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Ha! The spaces changes came in from lint-fix I presume.
…On Sat, May 27, 2023, 8:09 AM Antoine du Hamel ***@***.***> wrote:
If you push a commit to get rid of all the unrelated space changes, that
should trigger a new CI run
—
Reply to this email directly, view it on GitHub
<#48129 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAEPC2G3CGRJY4ACLMNOO3XIIKKLANCNFSM6AAAAAAYLC4TYY>
.
You are receiving this because you modified the open/close state.Message
ID: ***@***.***>
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
That's unlikely, but anyway, you would need to get rid of the unrelated changes to move this forward. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Co-authored-by: Jordan Harband <[email protected]>
Co-authored-by: Jordan Harband <[email protected]>
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Landed in 0c875bb |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Enhance the REPL message for static import error message.
```
> import {foo, bar} from 'moo';
import {foo, bar} from 'moo';
^^^^^^
Uncaught:
SyntaxError: .* dynamic import: const {foo,bar} = await import('moo');
```
PR-URL: #48129
Reviewed-By: Antoine du Hamel <[email protected]>
Enhance the REPL message for static import error message.
```
> import {foo, bar} from 'moo';
import {foo, bar} from 'moo';
^^^^^^
Uncaught:
SyntaxError: .* dynamic import: const {foo,bar} = await import('moo');
```
PR-URL: nodejs#48129
Reviewed-By: Antoine du Hamel <[email protected]>
Enhance the REPL message for static import error message.
```
> import {foo, bar} from 'moo';
import {foo, bar} from 'moo';
^^^^^^
Uncaught:
SyntaxError: .* dynamic import: const {foo,bar} = await import('moo');
```
PR-URL: nodejs#48129
Reviewed-By: Antoine du Hamel <[email protected]>
Enhance the REPL message for static import error message.
```
> import {foo, bar} from 'moo';
import {foo, bar} from 'moo';
^^^^^^
Uncaught:
SyntaxError: .* dynamic import: const {foo,bar} = await import('moo');
```
PR-URL: #48129
Reviewed-By: Antoine du Hamel <[email protected]>
|
hi @hemanth this commit is breaking tests on |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Hey @ruyadorno Ill try to backport it, thanks for highlighting! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Enhance the REPL message for static import error message.
```
> import {foo, bar} from 'moo';
import {foo, bar} from 'moo';
^^^^^^
Uncaught:
SyntaxError: .* dynamic import: const {foo,bar} = await import('moo');
```
PR-URL: #48129
Reviewed-By: Antoine du Hamel <[email protected]>
Enhance the REPL message for static import error message.
```
> import {foo, bar} from 'moo';
import {foo, bar} from 'moo';
^^^^^^
Uncaught:
SyntaxError: .* dynamic import: const {foo,bar} = await import('moo');
```
PR-URL: nodejs/node#48129
Reviewed-By: Antoine du Hamel <[email protected]>
Enhance the REPL message for static import error message.
```
> import {foo, bar} from 'moo';
import {foo, bar} from 'moo';
^^^^^^
Uncaught:
SyntaxError: .* dynamic import: const {foo,bar} = await import('moo');
```
PR-URL: nodejs/node#48129
Reviewed-By: Antoine du Hamel <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.