## Where communities thrive

• Join over 1.5M+ people
• Join over 100K+ communities
• Free without limits
##### Activity
• Apr 07 20:21

Rich2 on master

Sbt => 1.5.0. (compare)

• Apr 06 10:43

Rich2 on master

• Apr 05 23:30

Rich2 on master

#115 DevApp now runs on Scala 3! (compare)

• Apr 05 22:53

Rich2 on master

#115 DevDot now compiles. (compare)

• Apr 05 13:54
abelschroder closed #148
• Apr 05 13:53
abelschroder opened #148
• Apr 05 13:16
• Apr 04 14:58

Rich2 on master

• Apr 04 14:57
Rich2 assigned #147
• Apr 04 14:57
Rich2 labeled #147
• Apr 04 14:57
Rich2 opened #147
• Apr 04 14:47
Rich2 opened #146
• Apr 04 14:47
Rich2 labeled #146
• Apr 03 09:54

Rich2 on master

• Apr 02 19:36

Rich2 on master

#115 WorldDot now seems to be c… (compare)

• Apr 02 19:21

Rich2 on master

Scala.js => 1.5.1. (compare)

• Apr 01 16:22

Rich2 on master

#115 Created posnStr macro. (compare)

• Apr 01 13:47

Rich2 on master

#115 Sbt => 1.5.0-RC2, dotty pl… (compare)

• Apr 01 13:08

Rich2 on master

#115 TilingDot now seems to be … (compare)

• Apr 01 11:53

Rich2 on master

##115 Scala => 3.0.0-RC2. Graph… (compare)

Rich
@Rich2
@/all Graphic module has been renamed Graphics.
mghildiy
@mghildiy
I am a Java programmer, and a Scala beginner
Would like to contribute to openstrat
Rich
@Rich2
@mghildiy Hi there. It would be great to have someone with a Java background / perspective involved. Are you able to build the project OK and run the different examples / mini-apps? What platform do you work on Windows / Linux / Apple?
w0d
@w0d
@Rich2 hi, sorry not been around much but been having problems with my tablet which i use for my internet connection - hope to resove it soon
w0d
@w0d
@Rich hi
canv.polyFill(Rect.fromBL(size-1, size-1, loc), Black) canv.circleFill(Circle(size/8, loc+((size/4) vv (size/4))), color)
any chance you could rewrite these lines to the developing api
cheers
Rich
@Rich2
@w0d Could you check that the loop in ReactorGui still works as before.
mghildiy
@mghildiy
@Rich2 , I am working on Windows 10.
w0d
@w0d
@mghildiy Hi there, if we can help in anyway feel free to ask here
mghildiy
@mghildiy
I ran sbt at project root, got this error
[error] server failed to start on local:sbt-server-ae79988dabf357ab37d4. java.io.IOException: Could not create lock for \.\pipe\sbt-server-ae79988dabf357ab37d4_lock, error 5
but Dev/reStart launched the program
mghildiy
@mghildiy
which part of code can I dive into directly?
Rich
@Rich2

@mghildiy I would suggest working on the examples in the Graphics/srcExs folder.

I've just updated the website documentation page. So copy the DevSettings.rson file from the Dev/Misc folder to the Dev/User folder. You will have to create the Dev/User folder yourself as its under git ignore. Then you can change the app / example that runs for:

~Dev/reStart

If you change the appStr in Dev/User/DevSettings.rson and save it then sbt will automatically relaunch the new specified example /app in the same way that sbt rebuilds when you make and save code changes.

Rich
@Rich2
@w0d I'm definitely swinging back to thinking the default method for specifying a circle should be by diameter not by radius.
Rich
@Rich2
Docs at richstrat.com have been updated.
agarwalBinay18
@agarwalBinay18
hi
How can I run project in Windows 10?
Rich
@Rich2

@agarwalBinay18 So you need to have a JDK version of Java installed. Jdk 11 is ideal but later versions should all work. Then install sbt. Clone the project to a location of your choice and then shift into the openstrat folder and run sbt. Then from the Sbt command prompt run:

~ Dev/reStart

That will compile and open a graphical application. If you make any changes to the source files it will recompile and run with your changes.

w0d
@w0d
@agarwalBinay18 let us know if you have any problems with the steps outlined above
agarwalBinay18
@agarwalBinay18
unable to write any command
Rich
@Rich2
@agarwalBinay18 I've run into the same weird problem on Windows 10. Sbt ran as normal using power-shell and the command prompt. You could run the commands in Sbt as normal, but when I ran Sbt in Git bash I got exactly the same problem as you. So as a temporary measure could try running Sbt form power-shell or the command prompt. I will try and investigate this problem further.
agarwalBinay18
@agarwalBinay18
I am getting this after compiling and running
Rich
@Rich2
@agarwalBinay18 OK so if you create a folder called User inside the Dev folder and then copy the DevSettings.rson file from Dev/Misc to Dev/User. Tou can then change the appstr at the top of the Dev/User/DevSettings.rson file it will change the app or example that Sbt runs.
The purpose of this is that the Dev/User folder is ignored by git, allowing each developer to change the app/example they are working on as many times as they want without worrying about the change getting staged, committed and pushed back to the upstream repository.
Rich
@Rich2
@agarwalBinay18 So I'm fairly certain I know what the problem is. The simple answer is that the project won't run using git bash but will work from the command prompt and Power Shell. My preferred development environment is IntelliJ IDEA. This is a powerful IDE for working in Scala and popular across the Scala community, however it does use a lot of system resources, so it may not be the ideal solution for working on lower powered devices. It works for openstrat under Windows. You can also use common editors with the Scala metals plugin. I've just tested this using the Visual Studio Code editor on Windows 10 and it works. But Scala-Metals should also work with Atom, Vim, Sublime, EMacs and even Eclipse.
Rich
@Rich2
@agarwalBinay18 So ignore this explanation, if it confuses. Myself and @w0d both work mainly in Linux, however I had used gitbash successfully on Windows 7 and Windows 10 with Openstrat previously. Openstrat can be currently output to JavaFx and to WebCanvas through Scala.js, although we're starting to add SVG as an output target. However a while back we moved from JDK 8 to JDK 11+. JavaFx was bundled as part of the Oracle JDK with Java 8. However from Java 11 it became a library dependency you can see it called in on line 70 of the openstrat.sbt file in the root folder of openstrat. This is a platform specific library dependency. So the library that is called in is different on Windows from Linux. I strongly expect that this is causing the problem when trying to run the project from Git bash.
mghildiy
@mghildiy
How to build the project?
following this
mghildiy
@mghildiy
ignore above
so what should be appStr value for running Graphics/srcExs examples
got it
mghildiy
@mghildiy
Any specific issue I can work upon?
Rich
@Rich2
@mghildiy So help on #124 would be great. Probably the best place to start is on the Shapes, filling in the missing classes, methods, implementations and implicit type class instances. Its generally best to make small changes and create a pull request, rather than making a lot of changes in one go and getting out of sync with the main master branch.
w0d
@w0d
@Rich2 have been looking at Ellipses & their platform implementations, it seems that if we can export to SVGPath + Transformation we could simplify the boundary between OpenStrat & the Platforms (web/javafx/svg - all accept that format)
im wondering what im missing in taking this approach - are we losing something that we would want to keep in OpenStrat?
Rich
@Rich2
@w0d There would be quite a performance hit from converting into SVG strings and then back again.
Rich
@Rich2
@w0d I've updated the 2 main webpages for the new SbtDir location. So they should work again.
w0d
@w0d
Finally! well I've made progress on the JavaFx tlCArcDraw3 & CArc and I believe the last bit that needs fixing will get taken care of when I switch back to using theAngle class. Dont use the javaFx8 documentation has been my learning point!
Rich
@Rich2
@w0d Good stuff I've updated the arc names.
w0d
@w0d
@Rich2 ive fixed the workflows except the tests - any chance you could have a look at why strat.geom.PersistGeomTest.Vec2Test
ostrat.geom.PersistGeomTest.Line2Test
ostrat.geom.PersistGeomTest.OtherTest
are failing - cheers
Rich
@Rich2
@w0d Should fontSize be a Double rather than an Int?
w0d
@w0d
@Rich2 yes
Rich
@Rich2
Done!
w0d
@w0d

@Rich2 Re: Ellipses & Javafx Tranformations on Canvas:

gc.rotate(xAxisRotationAngle)
gc.setLineWidth(ed.lineWidth)
gc.setStroke(toFxColor(ed.lineColour))
gc.rotate(-xAxisRotationAngle)