Samsung / Wits

Wits for Your Tizen web application development.It will saved your development times and bring pleasure of developing out. Using Wits, You can instantly RELOAD your app's JavaScript/CSS code instead of reinstalling your app every time you make a change.
Apache License 2.0
113 stars 25 forks source link

wits start giving error #98

Closed shmdhussain closed 3 years ago

shmdhussain commented 3 years ago

I installed the wits globally and trying to setup the wits in emulator

I setup the wits config using the wits -icommand, see the screenshot below

Screenshot 2021-08-30 at 11 45 02

then I started the wits in watch mode , wits -w --verbose then I got the below error in the screenshot

Screenshot 2021-08-30 at 11 48 26 Screenshot 2021-08-30 at 11 48 41

One Thing I noted is my app id in config.xml is zPFhhtkB67.BasicProject but in the command I am seeing in terminal I found it is trying to run app with this id zPFhhtkB67.BasicProjectWITs, seeing extra WITS in that

Please help me why I am getting this error, I am able to install and debug the app in the emulator through tizen studio.

thanks in advance for any help

prozanne commented 3 years ago

Hi :)

First, the reason why the package id has "WITS" at the end is WITs works as a container app. BasicProjectWITs is only a container app, It's not a real your app. (watch your real source codes and push them on this app) So It's normal.

And about the main issue, I need to check it more. One thing I want to know is what kind of certification did you use? (Samsung - Public / Partner) or (Tizen - Public / Partner)

Thanks. I will check it more.

shmdhussain commented 3 years ago

Thank you so much for your reply.

Understood the first point regarding the "WITS" add and the container app.

regarding the second point, I am using samsung public certificate .

If you need any more details I can help with you, facing lot of time in changing and seeing the update in the app, It will be much helpful If I am able to start running the WITS

pwsses commented 3 years ago

Hi. It looks like failed debug launch, Is it success install on Emulator? I mean, Do you see WITs Icon in the emulator? How about turn off debugMode? Set isDebugMode to false on .witsconfig.json. Thank you.

shmdhussain commented 3 years ago

@pwsses Thanks for helping me.

I am able to install the app in emulator through tizen studio(from run as "web applications")

I don't see any WITS icon(I don't know how the WITS icon looks like), I see only the app icon which i used to install through tizen studio,

@pwsses as you said, I turned off the debug mode and run wits -w --verbose command and I get the following error in the screenshot below

Screenshot 2021-09-01 at 11 23 57

And also I am getting the error in the emulator(on top of any opened application) like the below screenshot, after running the wits -w --verbose command

Screenshot 2021-09-01 at 11 36 43

I am running on Mac OS Big sur 11.4.

I am able to run the app through command line(I gave those commands below) and tizen studio (run as and debug as options)

tizen build-web -- ./
tizen package -t wgt -s testsamcert -- ./.buildResult/
tizen install -s emulator-26101 --name "BasicProject.wgt" -- ./.buildResult
tizen run -s emulator-26101 -p zPFhhtkB67.BasicProject 

I am able to attach the debugger to the application through

sdb -s emulator-26101 shell 0 debug zPFhhtkB67.BasicProject

pwsses commented 3 years ago

hi. thank you for detail report. Most of the error occur in the installation with certificate issue, and there should be no problems in launch.

I am able to install the app in emulator through tizen studio(from run as "web applications") I don't see any WITS icon(I don't know how the WITS icon looks like), I see only the app icon which i used to install through tizen studio, => WITs container app use your app package value. so you have to remove your application. and WITs container App icon is below. image

when you start wits, wits make container app package(wgt) based on your app config.xml. and install container app to target. so you don't need install your app.

And also I am getting the error in the emulator(on top of any opened application) like the below screenshot, after running the wits -w --verbose command I think, WITs does not any affect other App execution but if it repeats, you will have to create a new emulator. I'm sorry it's not a clear answer.

shmdhussain commented 3 years ago

@pwsses thanks again,

=> WITs container app use your app package value. so you have to remove your application. ==> this made my app working, I uninstalled the app, run the wits -s then app starts working with WITS 🎉🎉

then I changed the code , it is reflecting in the emulator.

Now my doubt is what is the difference between wits -s and wits -w, I understand that w means watch files and update in the device, but wits -s itself is doing that job(changing code , reflecting in wits -stoo).

pwsses commented 3 years ago

@shmdhussain Good. As you said, there are supported live reload but, wits -s is container app package and install and launch. wits -w is just launch container app without package and install. so If your container app had installed, Use wits -w it will be faster.

shmdhussain commented 3 years ago

Then I found , either the WITS version or the original app can be present in the device/emulator. we need to uninstall one of it to make the other work.

I am closing the issue as WITS working for me now.

thank u so much for the help @prozanne @pwsses