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

Typescript bug (probably something with imports and ts transpiling?) #1851

Closed
Siri0n opened this issue Dec 15, 2024 · 2 comments
Closed

Typescript bug (probably something with imports and ts transpiling?) #1851

Siri0n opened this issue Dec 15, 2024 · 2 comments

Comments

@Siri0n
Copy link

Siri0n commented Dec 15, 2024

bitburnerSave_1734235243_BN1x1.json.gz

My game version is v2.7.0 (Steam)

When I run 'run main.ts' in terminal, it works as intended (well, almost, I'm still working on my code),
But when I run 'run main.ts' in terminal again, script just fails silently after certain step.
After the first run, script editor pretends that my imports in main.ts are invalid. But if I change something unimportant in imported scripts and save them, script editor is satisfied.
If I edit and re-save all involved files, I could run main.ts as intended again.

Looks like there's some problem with ts transpiling or something like that.

@Siri0n Siri0n changed the title Typescript bug (probably somethong with imports?) Typescript bug (probably something with imports and ts transpiling?) Dec 15, 2024
@Siri0n
Copy link
Author

Siri0n commented Dec 15, 2024

Oh. I think I understood. Script editor bug is independent of my module execution bug. Modules are persistent, and I save outdated ns object in jobRunner.ns.

Also, if modules are persistent, I don't need to communicate through ports, and my clever system is overengineered.

@catloversg
Copy link
Contributor

Duplicate of #1747.

@gmcew gmcew closed this as not planned Won't fix, can't repro, duplicate, stale Dec 16, 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

No branches or pull requests

3 participants