https://supertokens.com/ logo
#general
Title
# general
j

JeremyEastham

04/18/2022, 8:27 PM
What is the purpose of the
startDevEnv
script? How is it different from the
startTestingEnv
script?
r

rp

04/19/2022, 4:09 AM
What is the purpose of the
startDevEnv
script? How is it different from the
startTestingEnv
script?
hey @JeremyEastham
j

JeremyEastham

04/19/2022, 4:10 AM
r

rp

04/19/2022, 4:10 AM
startDevEnv
was an older version of
startTestingEnv
. It's no longer needed and I have removed it.
j

JeremyEastham

04/19/2022, 4:12 AM
Is it merged? My copy still has it
Oh, I see
Yeah, okay
r

rp

04/19/2022, 4:13 AM
haha yea.. i just pushed it to master
j

JeremyEastham

04/19/2022, 4:14 AM
I'm going to add a
.testEnvStarted
file to check if the env has been started, so that if you run the file again it doesn't run twice. I also added a check to throw an error if the tests run when that file doesn't exist.
r

rp

04/19/2022, 4:15 AM
Sounds good! WOuld this file be created if you run it without the
--wait
option too?
j

JeremyEastham

04/19/2022, 4:16 AM
Yeah, it's just to see if all of the files/dirs are in the right place for the test env
Are you okay with me adding
supertokens-root:spotlessApply
to the pre-commit hook? Right now it just throws an error until you do it.
r

rp

04/19/2022, 4:17 AM
I think the pre commit hook shouldn't modify the code.
j

JeremyEastham

04/19/2022, 4:17 AM
Yeah, okay
Can you tell me how you run the core from the command-line? I think the instructions in the README are outdated.
r

rp

04/19/2022, 4:20 AM
no the instrs in the readme are correct
j

JeremyEastham

04/19/2022, 4:53 AM
If I run:
java -classpath "./core/*:./plugin-interface/*" io.supertokens.Main ./ DEV
Or:
java -classpath "./supertokens-core/*:./supertokens-plugin-interface/*" io.supertokens.Main ./ DEV
It throws:
Copy code
Error: Could not find or load main class io.supertokens.Main
Caused by: java.lang.ClassNotFoundException: io.supertokens.Main
Is it possible to run from a Gradle task?
r

rp

04/19/2022, 4:57 AM
Which dir are you running this from?
j

JeremyEastham

04/19/2022, 4:57 AM
Root
r

rp

04/19/2022, 4:57 AM
hmm
j

JeremyEastham

04/19/2022, 4:57 AM
I can run the tests fine
gradle run
also fails
r

rp

04/19/2022, 4:58 AM
> Is it possible to run from a Gradle task? Im don't know how this would work
j

JeremyEastham

04/19/2022, 4:58 AM
It doesn't appear that the dependencies are set up correctly in the
build.gradle
files right now
We should also consider moving the scripts to Gradle tasks
r

rp

04/19/2022, 4:59 AM
So the plugin is injected into the core dynamically - that's why it's not a dependency to the core project. The dynamic injection causes all the complications
which OS are you using?
j

JeremyEastham

04/19/2022, 5:00 AM
Windows, I'm working on a PR that fixes all of the Windows-specific issues
r

rp

04/19/2022, 5:01 AM
I see. That's why it's not working
Im not sure how the "./core/*:./plugin-interface/*" part translates to windows
j

JeremyEastham

04/19/2022, 5:02 AM
What is the meaning of the colon?
r

rp

04/19/2022, 5:02 AM
it's a separator
j

JeremyEastham

04/19/2022, 5:02 AM
Ah
Okay
Should be a semi on Windows
r

rp

04/19/2022, 5:02 AM
that load jars from ./core and from ./plugin-interface
ohh
j

JeremyEastham

04/19/2022, 5:03 AM
Shouldn't that be
supertokens-core
and
supertokens-plugin-interface
?
The folders that the projects are checked out into?
r

rp

04/19/2022, 5:05 AM
no. It should points to the build JARs. When you run
./startTesitingEnv --wait
, it moves the JARs of the projects to the
supertokens-root/core
and to
supertokens-root/plugin-interface
. This is done so that we mimic the installation directory structure
j

JeremyEastham

04/19/2022, 5:06 AM
So that's the part I didn't get, I didn't realize that the test env had to be running
I thought it could just run like a normal Java project
r

rp

04/19/2022, 5:06 AM
ah yeaaa.. i see
I am sure that there exists a better project setup overall.. but this has worked well for us so far.
j

JeremyEastham

04/19/2022, 5:08 AM
I might look into refactoring some of that after I finish this Windows PR
r

rp

04/19/2022, 5:08 AM
that would be super helpful :))
j

JeremyEastham

04/19/2022, 5:11 AM
I was actually wondering if you would consider allowing me to join your team? I looked into a few of the positions that you have posted, but I am more into backend-type work rather than frontend React.
I would also be interested in developing an Angular frontend, or other frontends for general-purpose languages like Java and C#.
r

rp

04/19/2022, 5:18 AM
We can consider it! Let's get on a call to discuss this? https://calendly.com/supertokens-rishabh/20-mins-intro-call
j

JeremyEastham

04/19/2022, 5:21 AM
Thanks!