Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updating documentation for local builds #222

Open
nullren opened this issue Apr 29, 2020 · 7 comments
Open

updating documentation for local builds #222

nullren opened this issue Apr 29, 2020 · 7 comments

Comments

@nullren
Copy link

nullren commented Apr 29, 2020

thanks for everything you've done so far. i was wanting to create some widgets but i'm noticing that it seems kind of hard to do so without rebuilding the entire project - so i tried to do that.

i noticed that some paths were hardcoded in build.xml, but i cloned all these repos into ${user.home}/Documents/:

  • SIMRacingApps
  • SIMRacingAppsServer
  • SIMRacingAppsWebContent
  • SIMRacingAppsElectron
  • SIMRacingApps.github.io
  • SIMRacingAppsSIMPluginiRacing

then i tried building with ant exe (intellij, java 8), everything went through no problems. when running the created SIMRacingAppsServer.exe, i get a ton of NPEs. here's a gist of the logs.

what am i doing wrong? or are there extra steps required for the build? sorry for the questions.

@jfgilliam
Copy link
Contributor

If you just want to work on widgets, you only need the SIMRacingAppsWebContent repository. Just put the widget you're working on in the Documents\SIMRacingApps\widget folder using the same path that's below that.

@nullren
Copy link
Author

nullren commented Apr 29, 2020

aha okay. i'll give that a try! but as for building the project, still kind of curious to get that working...

@nullren
Copy link
Author

nullren commented Apr 29, 2020

kind of similar to this one, in terms of developer docs SIMRacingApps/SIMRacingAppsServer#1 (which i wouldn't mind updating if i can get things to work 😅 )

@jfgilliam
Copy link
Contributor

kind of similar to this one, in terms of developer docs SIMRacingApps/SIMRacingAppsServer#1 (which i wouldn't mind updating if i can get things to work 😅 )

That issue was related to creating a plugin where you can use the existing .exe as a jar and include it in the classpath.

As for the error in your log, see this post about compiling Jetty. Are you using the Jetty jars I include or your own.

jetty/jetty.project#3244

@nullren
Copy link
Author

nullren commented Apr 29, 2020

from the gist:

Looked at your log and that issue with the byte buffer I've seen before. Seems like it was a issue with using a new SDK than 1.8 to compile the code. Can't remember much more.

i'm running ant with "C:\Program Files\Java\jdk1.8.0_241\bin\java.exe", so that should be okay...

As for the error in your log, see this post about compiling Jetty. Are you using the Jetty jars I include or your own.

unless somewhere it's being downloaded, it should be using yours.

@nullren
Copy link
Author

nullren commented Apr 29, 2020

anyway, i'm much more familiar using maven or gradle for java builds, but i've also never worked on a project in windows. so in that regard, this is relatively new territory for me. not sure what the scope of this issue should be, but it would be nice to figure out what i need to do to get the build to work for me. hopefully that's okay with you if we keep it open until then? i don't want to get on your nerves 😅

i may have been a little premature looking at the application logs since apparently still having trouble building. what version of node are you using for your build? i just installed node v14 since i had a failure in the _javascriptdoc target originally complaining about a missing node. now it complains something different:

cwd = C:\Users\renning\Documents\SIMRacingAppsWebContent
Server Version: 1.13_Build_BETA-2020.04.28
_javascriptdoc
Deleting directory C:\Users\renning\Documents\SIMRacingApps\JavaScriptDoc
Created dir: C:\Users\renning\Documents\SIMRacingApps\JavaScriptDoc
Running jsdoc
C:\Users\renning\Documents\SIMRacingAppsWebContent\node_modules\angular-jsdoc\node_modules\requizzle\lib\requizzle.js:45
	if (lookupPaths[0] === targetPath && lookupPaths[1].length === 0) {
	               ^

TypeError: Cannot read property '0' of null
    at isNativeModule (C:\Users\renning\Documents\SIMRacingAppsWebContent\node_modules\angular-jsdoc\node_modules\requizzle\lib\requizzle.js:45:17)
    at Requizzle.requizzle (C:\Users\renning\Documents\SIMRacingAppsWebContent\node_modules\angular-jsdoc\node_modules\requizzle\lib\requizzle.js:82:6)
    at infectProxy (C:\Users\renning\Documents\SIMRacingAppsWebContent\node_modules\angular-jsdoc\node_modules\requizzle\lib\loader.js:82:28)
    at Module.targetModule.require (C:\Users\renning\Documents\SIMRacingAppsWebContent\node_modules\angular-jsdoc\node_modules\requizzle\lib\loader.js:101:11)
    at require (internal/modules/cjs/helpers.js:72:18)
    at Object.<anonymous> (C:\Users\renning\Documents\SIMRacingAppsWebContent\node_modules\angular-jsdoc\node_modules\jsdoc\lib\jsdoc\util\runtime.js:10:10)
    at Module._compile (internal/modules/cjs/loader.js:1185:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1205:10)
    at Module.load (internal/modules/cjs/loader.js:1034:32)
    at Object.load (C:\Users\renning\Documents\SIMRacingAppsWebContent\node_modules\angular-jsdoc\node_modules\requizzle\lib\loader.js:112:15)
Result: 1

@jfgilliam
Copy link
Contributor

jfgilliam commented Apr 29, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants