-
Notifications
You must be signed in to change notification settings - Fork 61
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
Cannot pip install editable #975
Comments
To see the effect of modifications to the underlying TypeScript sources of MyST-MD requires a compilation step, regardless of whether you're deploying the application as a Python package. In your case, if you just want to reduce the build loop, I don't think we implement a To actually use the rebuilt |
Ok, it seems I can get an environment after running |
So far I am puzzled, and I'm not sure if it's due to the environment. I tried to edit: function mathBlockAsOriginal(node: GenericNode, state: ITexParser) {
state.closeParagraph();
+ console.error(`state=${state}\nnode=${node}`);
+ assert(false);
const original = originalValue(state.tex, node);
const value = original?.replace(/(^(\$\$)|(\\\[))|((\$\$)|(\\\])$)/g, '').trim();
state.pushNode(u('math', { value }));
} But I did not see any effects on the cli runner. Doing something similar to |
Can you make sure that the python install isn't taking precedence over the npm linked one? For example, |
@LecrisUT to be clear, you need to build multiple packages if you're testing using the CLI, usually at least:
followed by the actual package you're editing. You'd need to build them in the correct order too. If you just run |
Yep, I have completely
Indeed I am running it like that, which is why I am puzzled that the other |
Did your build succeed? If there are errors, the old application might be persisting on disk. |
Ah - that function looks like it is in Can you try putting a console log/error here: |
Yep, it was successful
Aaah, that explains it. Indeed I was looking at the wrong package. That solves the issue, thanks for the assist |
Glad you are up and running! 🚀 |
I am trying to get a simple editable install for tinkering with this project, but I can't seem to make it editably install the
mystmd-py
python project:It seems that it would not work because even in the release workflow there are manual steps:
Probably this is covered by
But I am not quire sure if that does the same thing. After running the
npm run dev
, can I edit in place the typescript files and then those are available to the~/.local/bin/myst
executable?The text was updated successfully, but these errors were encountered: