What is the purpose of the `startDevEnv` script? H...
# general
j
What is the purpose of the
startDevEnv
script? How is it different from the
startTestingEnv
script?
r
What is the purpose of the
startDevEnv
script? How is it different from the
startTestingEnv
script?
hey @JeremyEastham
j
r
startDevEnv
was an older version of
startTestingEnv
. It's no longer needed and I have removed it.
j
Is it merged? My copy still has it
Oh, I see
Yeah, okay
r
haha yea.. i just pushed it to master
j
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
Sounds good! WOuld this file be created if you run it without the
--wait
option too?
j
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
I think the pre commit hook shouldn't modify the code.
j
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
no the instrs in the readme are correct
j
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
Which dir are you running this from?
j
Root
r
hmm
j
I can run the tests fine
gradle run
also fails
r
> Is it possible to run from a Gradle task? Im don't know how this would work
j
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
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
Windows, I'm working on a PR that fixes all of the Windows-specific issues
r
I see. That's why it's not working
Im not sure how the "./core/*:./plugin-interface/*" part translates to windows
j
What is the meaning of the colon?
r
it's a separator
j
Ah
Okay
Should be a semi on Windows
r
that load jars from ./core and from ./plugin-interface
ohh
j
Shouldn't that be
supertokens-core
and
supertokens-plugin-interface
?
The folders that the projects are checked out into?
r
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
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
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
I might look into refactoring some of that after I finish this Windows PR
r
that would be super helpful :))
j
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
We can consider it! Let's get on a call to discuss this? https://calendly.com/supertokens-rishabh/20-mins-intro-call
j
Thanks!