Skip to content

fix: std/portable included twice#2860

Merged
CountBleck merged 1 commit intoAssemblyScript:mainfrom
JairusSW:master
Jul 6, 2024
Merged

fix: std/portable included twice#2860
CountBleck merged 1 commit intoAssemblyScript:mainfrom
JairusSW:master

Conversation

@JairusSW
Copy link
Copy Markdown
Contributor

@JairusSW JairusSW commented Jul 6, 2024

Whenever importing from within a transform,

import { Transform } from "assemblyscript/dist/transform.js";
import { Parser } from "assemblyscript/dist/assemblyscript.js";

I get the following warning:

compiler mismatch: std/portable included twice

The warning occurs with nearly every transform I have written and since it writes to stderr which is problematic.

Instead of warning the user when std/portable is imported twice, it seems more reasonable just to ignore it altogether. After all, its the compiler importing it twice, not the user.

@JairusSW JairusSW changed the title fix: unnecessary warn fix: std/portable included twice Jul 6, 2024
@CountBleck CountBleck merged commit f79391c into AssemblyScript:main Jul 6, 2024
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

Successfully merging this pull request may close these issues.

2 participants