Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Help with installation #390

Answered by Gauntlet173
hamboneharr asked this question in Q&A
Discussion options

Greetings

I followed the install instructions. The local website runs, but when I select "code editor" I do not see any blocks in the middle column. I have tried both on Chrome and Edge browsers. I do not have any restrictions on popups or javascript. Something has to be amiss with the local installation as my browsers can display the public version at dev.blawx.com. See screenshots attached.

Does anyone have an FAQ on these types of problems? Or any suggestions on how to approach it? I wasn't sure where else to ask for help.

Other relevant info:

  • I have also attached a printout of progress during the build. Curiously the first line after I run $ ./update.sh
    is "Error response from daemon: page not found" but the build continued OK.

  • I have installed Docker Desktop v 4.14.1 on a Windows 10 and also a Windows 11 machine and followed instructions to update to "WSL2 backend".

Really appreciate any tips at all as I am determined to try out blawx and currently I am stuck.

Regards

Hamish

screenshots.docx
install log file.txt

You must be logged in to vote

OK, I think I have figured out the problem. It seems that when Google's Blockly switched to version 9, they also changed what is included in the github repository, and where some of those things are kept. So there is now no way to install it that has both a) the compiled .js files, and b) the appengine file that we use for doing saving .blawx files.

The solution was to abandon the current installation method of cloning from git, and instead install using npm, and then grab a single file from the github repository that is not included in the npm package.

I have created a branch called "hamish" that has made the changes to the Dockerfile, and updated the HTML templates to agree with the new...

Replies: 4 comments 4 replies

Comment options

Hi, Hamish!

Thanks for getting in touch. That's an odd problem.

update.sh looks for an existing instance to shut down that isn't there the first time you run it, so the error message is expected.

I wonder if you could open the developer tools inside your browser (CTRL+SHIFT+I), and tell me if there are any errors being thrown in the javascript console. It seems like it's not successfully injecting Blockly into the page, as opposed to not properly loading the blawx code into the blockly interface, so I suspect the javascript console might give us some clue as to what went wrong.

You must be logged in to vote
3 replies
Comment options

Hi Jason

The developer tool shows 13 errors and going to the console (snippet attached) it has plenty of 404 (not found).

Clicking on any of the 404 errors takes me to the scripts and I see there is nothing in there (further snippet attached).

I'm hoping these send us in a good direction.

image
image

Regards
Hamish

Comment options

That's very helpful. The Dockerfile did not successfully grab the Blockly libraries and put them where they belong. Let me take another look at your install log and the Dockerfile, and I'll see if there is any indication as to why. Can you confirm you are using the current main branch (1.3.30-alpha is the version in settings.py)?

Comment options

Yeah, the commands for moving the files where they are supposed to be weren't even attempted. I think we may have broken the Dockerfile when we made changes to speed it up. Sorry about that. This is what comes from not yet having a CI/CD workflow.

I will fix it and push a new version, but I'm traveling this weekend so it may not be until early next week. Thanks for your patience.

Comment options

Ah thanks very much for looking into and letting me know, I will stand by. I procrastinated a while to try this, I can wait a bit longer! I should also have mentioned I tried building with an earlier version 1.3.17-alpha but it had the same issue.

You must be logged in to vote
0 replies
Comment options

OK, I think I have figured out the problem. It seems that when Google's Blockly switched to version 9, they also changed what is included in the github repository, and where some of those things are kept. So there is now no way to install it that has both a) the compiled .js files, and b) the appengine file that we use for doing saving .blawx files.

The solution was to abandon the current installation method of cloning from git, and instead install using npm, and then grab a single file from the github repository that is not included in the npm package.

I have created a branch called "hamish" that has made the changes to the Dockerfile, and updated the HTML templates to agree with the new locations for some of the files in the package. Let me know if you have any problems, but I think it should work. If it works for you, I'll release it as v1.3.32-alpha.

You must be logged in to vote
0 replies
Answer selected by hamboneharr
Comment options

Awesome, I now see the blocks! Thanks so much for sorting this out, now I can play :)
Regards
Hamish

You must be logged in to vote
1 reply
Comment options

I'll release the new version ASAP. Thanks very much for letting me know. Very excited to hear what you think.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /