enjoying the maiden workflow a lot on the whole!

one thing i’ve run into a bit is sometimes I get the output SCRIPT ERROR: with nothing following it when running a script from maiden. at this point things get a bit weird but I don’t think there is actually an error in the script - usually some rebooting and reloading and we’re back. In this state print still appears in the maiden console so something is running but the normns screen is blank within the play screen (menu still works). not quite sure how to help track it down but just mentioning in case there is some useful info I can dig up next time it happens.

I’ve seen this type of behavior most often when there are errors in the init or cleanup functions in the script. The trick is the menu code wants to cleanup the running script before starting a next one but if errors occur during cleanup it doesn’t always recover. Any REPL output you have is useful as there are various lines which indicate where in the internal code things might be stuck.

Strange errors can also occur when switching engines as part of loading different scripts. The next update should help the engine switching problem.

1 Like

though it wouldn’t explain it working on a restart, it’s a known issue that we’re dropping some error info on the floor (see: https://github.com/monome/norns/issues/358).

a quick thought: is your script using any other files that are also being modified? (e.g., is it loading another module you’re also changing using a require?)

not using require at all. maybe it’s the case that i did mess something up in the init but then fixing the script didn’t bring norns back to a happy state - i’ve definitely been in the situation where scripts are throwing empty errors in the maiden console, but then start working again without changes after rebooting norns/reloading maiden. I’ll see where the incoming updates gets us and pay more attention next time to exactly what order these things happen in :slight_smile:

1 Like

Given that the scripts can currently overwrite global variables within the norns system it is somewhat easy to change state within norns such that a restart (of matron or the whole device) is the only way to revert the accidental modification… I’ve done it to myself multiple times.

I anticipate the proposed script sandboxing will go along way toward making it harder to break things while experimenting.

4 Likes

sorry if this the wrong thread, but a question about maiden i stumbled upon quickly in the study.

When I began the study I opened maiden and clicked on the other folders in the scripts section just poking around in the interface. I found when I went to then click the + button to add a script it was added into the folder I had selected. Seems logical enough, except that I found that if all you have is folders in your scripts folder
(ie no loose files in the) it was pretty difficult to unselect a folder. Assuming I’m missing something simple here?

As a quick fix I reloaded maiden and before selecting a folder I added a loose script in dust/scripts/ using the + button. Then it got much easier to unselect folders.

followup question: Is there a way to move files inside of maiden once you make them, if for instance you make them in the wrong spot :roll_eyes:?

I’m running maiden on chrome on a mac if that’s helpful info.

Unfortunately you’re are not missing anything - it is indeed difficult to deselect without reloading (the entire page). There really needs to be a way to do that.

Currently no. There isn’t anything to support moving. The intention is to add drag/drop support to the file browser but it didn’t get done before release.

My lame method of moving files (in maiden) is to create a new empty file in the correct location, copy/paste the content from old to new, then delete the old… (or just ssh into the device and move the files around via the command line).

Hopefully this all will get improved soon.

3 Likes

Thanks for the response! Not a problem moving forward w/ these workflows in the meantime, just wanted to check i wasn’t overlooking anything in my newness to coding/norns/maiden

Once I got all that squared away, the tutorial went really smoothly and maiden was really intuitive.

I’m guessing this falls under file moving, but is there support in maiden for moving files from your desktop/pc? Another problem I caused myself was quickly/clumsily deleting the artfwo folder from my norns (really was a bull in a china shop during my first 15 seconds in maiden hahaha). I used the sync features on norns to pull these off of a jumpdrive, but while i was staring at the file structure in maiden it crossed my mind that I could perhaps have just added them there, but I didn’t see an obvious way to do so. Assumed this wasn’t currently possible, but again just checking.

Thanks for all the work on maiden, getting through study1 had more than a few holy shit moments where slivers of all the maiden/matron/norns potential was clearly visible even for someone only a few chapters into “Programming in Lua” :robot:

1 Like

There are a few options for getting content on/off norns. The first is actually the USB sync feature. If you have sync’d TO USB then the entire structure of dust is on the USB drive. Just pop that into your computer and copy additional content, samples, etc over to the USB drive. The use the sync feature on norns to sync FROM USB to put it all on the internal drive.

The other option if you are comfortable with linux/command line stuff is to use ssh to push/pull files over the network (using stfp or scp specifically). I personally use sshfs while developing in order to mount the norns internal drive directly on my laptop. I can provide more detail later if this route is of interest.

The working plan is to have drag/drop function in maiden such that you can drag files from your computer to maiden and have them uploaded directly.

7 Likes

Sounds good! The sync features got me back in business in a matter of minutes last night (mad props to all the folks who designed this system), so probably not necessary to jump out of my comfort zone to ssh just yet haha

Alternatively, (what I did) was sftp to norns with Transmit (or any sftp app) and just move things around there. Or ssh which is further down the rabbit hole.

2 Likes

Yes! Now I remember what I was going to write up tonight - sftp guidance… Transmit or Cyberduck (on macOS or Windows) would do the trick. Ultimately the device directory people should focus on is /home/we/dust, it is safe to look around elsewhere just don’t accidentally delete anything :wink:

I don’t recall what Transmit’s UI looks like but if one is using Cyberduck just use the following URL in the Quick Connect box: sftp://we@norns.local/home/we/dust

2 Likes

Here’s what it looks like for me in Transmit. IP address will be different per network.

3 Likes

I’m trying to be disciplined and stick to Maiden to build muscle memory with it. But just in case… is there an executable I can hit in ssh to run a script, as an alternative to pressing the play button in Maiden

1 Like

No not really. The maiden play button is just saving the script file and then sending lua code to matron to run the file. In order to interact with matron over ssh one would have to start matron directly without the ws-wrapper (at which point maiden wouldn’t be able to talk to matron)

2 Likes

Thanks @ngwese for the Cyberduck suggestion! Took absolutely no time to set up and connect to norns.

File mgmt also works in Coda 2 (IDE / FTP, et al.) also for what it’s worth.

Also I thought I remember seeing that it shouldn’t work in mobile, but I’ve had it on a mobile phone and tablet. (iphone 6 and ipad pro)

…it works just not as well as it should :slight_smile:

1 Like

loving maiden so far!

not sure if this has been mentioned (didn’t see it in issues list) or if it’s even possible, but tabbed view for multiple files would be great.

1 Like

I’ve been able to open a second instance of maiden in a 2nd browser tab which might offer similar functionality in the meantime. Though I’m unsure if this is best practice, it hasn’t seemed to cause any problems over here.