Changing and removing `SuperscriptButton.svelte` has no effect at all. Why?

Is it possible that the code is cached somewhere and not rebuild for some reason? Even if I completely remove entire folders like e.g. ts/editor/editor-toolbar/ it still builds and works fine, as if I had never changed anything.

Changing things in e.g. qt/aqt/ on the other hand does rebuild the python stuff. But the things in ts/ don’t seem to change. Am I not meant to edit the files there maybe?
It doesn’t actually… It did work for me with the current stable branch but doesn’t with the current master branch. The thing I did different was using ankis generated pyenv in the current master. Maybe llama was on the right track. I’ll just create a separate pyenv and see if it works. I’ll update later.

Update

  1. I removed another pyenv that was in my home directory and which was apparently used instead of the system python installtion.
  2. Then, with system python:
python3 -m venv ./pyvenv
./pyvenv/bin/python -m pip install aqt[qt5]
./pyvenv/bin/python -m pip install aqt[qt6]
source ./pyvenv/bin/activate
git clone --single-branch --branch=main https://github.com/ankitects anki.git anki
cd anki/
clear && ./run

And it works!

I don’t understand what kind of black magic that is though. I only have one copy of anki source code on my system and anki was apparently build somehow with files from who knows where. I mean, compare the about > copy debug info from this successfull build with the one I provided in my question above:

Anki 25.01 (64ca9093) (src) (ao)
Python 3.9.18 Qt 6.8.1 PyQt 6.8.0
Platform: Linux-6.12.6-amd64-x86_64-with-glibc2.40

===Add-ons (active)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
AnkiWebView Inspector ['31746032', 2023-06-27T21:26, 'None', '']
Image Occlusion Enhanced ['1374772155', 2022-04-09T09:15, 'None', '']
Review Heatmap ['1771074083', 2022-06-30T03:43, 'None', '']
Study Time Stats ['1247171202', 2024-02-24T17:59, 'None', '']

===IDs of active AnkiWeb add-ons===
1247171202 1374772155 1771074083 31746032

===Add-ons (inactive)===
(add-on provided name [Add-on folder, installed at, version, is config changed])

I’d still like to know how that is possible. But the problem is solved. Thanks @llama , you had the right hunch here! I’ll mark your post as the answer!

(and yes, changes to SuperscriptButton.svelte are applied now)

1 Like