-
Notifications
You must be signed in to change notification settings - Fork 50
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
Macro Editor doesn't work in local work spaces - resolving of ui bundle missed path by 1 level #120
Comments
Hey @akim-muto Can't reproduce - see video - https://www.youtube.com/watch?v=PfogEynJ3hI Can you share a small repro repo? |
@akim-muto I fixed the link to the video :) |
I very much appreciate your thoughtful response, which even includes a video. I create minimal repository for reproduce macroeditor doesn’t work in local. Here are the steps to reproduce it. 1.clone repository 2.install dependency 3.build with webpack 4,you can check local macroeditor doesn’t work 5.set flyde stdlib/dist path in vscodeextinsion dir to test/test_config.json 6.install macroeditor to stdlib in vscodeextinsion 7.restart vscode Thank you! |
Thanks for the repo! I don't know why yet, but changing I found it by:
Also, with the override of node library.js - I understand what you're trying to do now :) you're trying to extend the library on the right. That's something I want to allow users to do themselves. Your hack is impressive! love the resourcefulness :) I went ahead and added supporting this as an issue here - #121. Is helping out and directly contributing to Flyde something that interests you? PS: |
Hi! Thank you! I could confirm the same information here. Also I wanted the function to add it to the node library, but the hack and node-inst-vscdir.flyde were largely a stopgap measure to see if there was a problem with the MacroEditor bundle itself, or if it was a path or dependency issue. I have a strong interest in contributing directly to Flyde. However, I have physical or mental health issues that make it difficult for me to guarantee a quick response or a stable response. So my direct contribution may be limited. |
Awesome 👍🏻 thanks for confirming
Thanks for the positive words and no worries, thats the beauty of
contributing to open-source! It can be async, and non committing :)
…On Tue, 28 May 2024 at 17:35 akim muto ***@***.***> wrote:
Hi!
Thank you! I could confirm the same information here.
I got lost in the use of devtool and it ate up a lot of my time lol
Also I wanted the function to add it to the node library, but the hack and
node-inst-vscdir.flyde were largely a stopgap measure to see if there was a
problem with the MacroEditor bundle itself, or if it was a path or
dependency issue.
As for node-inst-vscdir.flyde, I wanted to use the flyde functionality as
you suggested.
I have a strong interest in contributing directly to Flyde.
It's a tool that I hope to use for a long time if all goes well.
However, I have physical or mental health issues that make it difficult
for me to guarantee a quick response or a stable response. So my direct
contribution may be limited.
—
Reply to this email directly, view it on GitHub
<#120 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA4N5JYMXBEYHTG4LDJ6BP3ZESI3TAVCNFSM6AAAAABIJS56COVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMZVGM4TGMZSGY>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Oh, I closed it becouse got a breather , but this behavior is a bug, even though it works one way or another. I know it's not a priority, but maybe someone else will get caught up in the same thing, so do you want to manage the bug in this issue? Do you want to make a new issue? |
@akim-muto Thanks, yeah I agree it's confusing behavior. I investigated it, and this is the culprit - https://github.com/flydelabs/flyde/blob/main/resolver/src/resolver/resolve-dependencies/macro-node-to-definition.ts#L24 It might be confusing, I agree, but wondering if this should be changed or just documented. WDYT? |
Hmm, I think should fix it unless it's very hard to fix.
It's not the behavior most people expect, and unfortunately all users can't be expected to read through the documentation from cover to cover when there is a problem😢 |
Agree - it just means a small refactor on the stdlib and potentially
breaking external existing usages
…On Wed, 29 May 2024 at 14:10 akim muto ***@***.***> wrote:
Hmm, I think should fix it unless it's very hard to fix.
From what little I've seen, it's simply.
const editorComponentPath = join(
importPath,
“../”,
macro.editorConfig.editorComponentBundlePath
);
It's not the behavior most people expect, and unfortunately all users
can't be expected to read through the documentation from cover to cover
when there is a problem😢
—
Reply to this email directly, view it on GitHub
<#120 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA4N5J57LPROTIS526I4U5LZEWZRNAVCNFSM6AAAAABIJS56COVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMZXGE2TEOJWGQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Since we're at it, I'll try PR if there are no problems with the code changes. I'll also try to document the process of preparing the environment, which will be the windows 10 version. |
@akim-muto awesome! it should be pretty straightforward - clone, Regarding the docs, are you asking whether I think this should be documented? or fixed? Documentation - yes, for sure, there's #88 open for that. Moreover, there's the structured editor for Macros that isn't documented at all - see example - https://github.com/flydelabs/flyde/blob/main/stdlib/src/Lists/Lists.flyde.ts#L88 I see both documenting Macros and fixing this low priority. But given the fix here is really simple (the code you've mention + a quick find and replace on existing stdlib libs), it's a good first PR |
Hi, nice to meet you.
I have tried MacroEditor, but when I use flyde in VScode, MacroEditor does not work if I bundle the target tsx file with a web pack, but leave the output file in the local working directory.
If I put the file in VScode's flyde extensions directory and run it, it works.
Is there an easy way to get MacroEditor to work with the bundled files in the working directory at this time?
The text was updated successfully, but these errors were encountered: