Pavlovia - TypeError: psychoJS.eventManager.Mouse is not a constructor

URL of experiment: Pavlovia

Description of the problem: I am trying to create an online line reproduction task, currently it works locally: as I move the cursor, line follows the cursor. But I get the error: TypeError: psychoJS.eventManager.Mouse is not a constructor


If you add a mouse component to your first routine you don’t need to create it in code and you can still use it in later routines.

I actually added mouse component and deleted the part I initialized variables but when I tried to run it online it doesn’t work I get:


I’m not seeing an error there. In what way doesn’t it work?

Yes, I meant the warnings. The experiment doesn’t even start. Just a grey screen. What do you think I am missing?

We just had these warnings now but before that we got an error(something like obj contains mouse) then we changed the end routine on press and save mouse state to never. So it looks like this:





If you aren’t getting an error then maybe the grey screen is because of the line being invisible. Try adding a text component showing the value of currentLineLengh each frame

You mean i should add a text component and show the line lengths as a text?

Yes, for debugging purposes

I will try that but before that I am also having problem with transfering to pavlovia. At first I got.:AttributeError: The requested local path for project

‘/Users/ilkekavusturan/linemn1’

sits inside another folder, which git will not permit. You might like to set the project local folder to be

'/Users/ilkekavustura —Then I deleted a git folder, clicked to sync in builder, I saw " success" and I am seeing all the files in Pavlovia but when I clicked to pilot I am seeing ‘‘initialising’’ for an hour.

Hi, I saw in other entries that you recommended changing the column names in spreadhseet. So one of my columns were named current_Line_Length and now I changed it to current_Line. When I clicked to run in pavlovia I am seeing that succesful sync but I am seeing a never ending"initialising" and doesn’t actually work. What else could be the issue?

Thanks!

Please look for the error message

https://psychopy.org/online/psychoJSCodingDebugging.html

Also "The requested local path for project ‘/Users/ilkekavusturan/linemn1’ sits inside another folder, which git will not permit. " means that you’ve probably tried to sync an experiment from ‘/Users/ilkekavusturan’ and now have a hidden folder called ‘/Users/ilkekavusturan/.git which needs deleting.

Yesterday you told me that lines could be invsible and I can try adding a text component and show the line lengths as a text-

so I tried that now I can see the text in the experiment but still can’t see lines even if I changed their width from 2 to 5.

I also tried changing spatial units to make it visible- in pixels I don’t see anything but in most of the units (norm,height etc)I only see just 1 line in brief duration like 500 ms. How can I fix this?

So you have found that the issue is with the visibility of the line

What does your line component look like

Have you tried using constant values for target_line to see if the issue is with the variables?

Also, try a different shape (like a square)

Line components for both trials look like this:

I get the line lengths from spreadhseet as you see but I also tried removing that and entering random numbers like 32 for the first trial and 97 for the response trial, - cursor starts at the last response trial’s length when I did it like this

and when I just changed the target_line(response trial) cursor didn’t move simultaneously with the line.

I just tried a rectangle- again it works locally but I don’t see anything online just grey screen.





I also just tried wit a triangle- I don’t get an error: