PDA

View Full Version : SA4.1, Ext JS 6.2.x Modern out of the box Calendar example and Cmd V6.2.1.29



reg.phipps
29 Dec 2016, 4:47 AM
When I use SA 4.1.0.91 to create a new project using the Examples(3) for the Calendar I get an error in the Cmd Output tab
[INF] Processing Build Descriptor : default
[WRN] Failed to resolve package calendar
[INF] Starting server on port : 56203
[INF] Mapping http://localhost:56203/~cmd to /Users/rjphipps/bin/Sencha/Architect/Cmd/6.2.1.29...
[INF] Mapping http://localhost:56203/ to /Users/rjphipps/Sites/senchaapps/sa41apps/Calendar...
[INF] Server started at port : 56203
[INF] Application available at http://localhost:56203
[WRN] Failed to resolve package calendar
[INF] Loading app json manifest...
[ERR] Failed to resolve dependency Ext.calendar.store.Calendars for file Calendar.store.MyCalendars
[ERR]
[ERR] BUILD FAILED
[ERR] com.sencha.exceptions.ExNotFound: Unknown definition for dependency : Ext.calendar.store.Calendars
[ERR] at com.sencha.command.app.AppCommands$WatchCommand.execute(A
[ERR] ppCommands.java:614)
[ERR]
[ERR] Total time: 2 seconds
Exception in thread "Thread-47" com.sencha.exceptions.BasicException: com.sencha.exceptions.BasicException: The following error occurred while executing this line:

Also MyCalendars under Stores in the Project Inspector view has two red dots with a ! next to it and when I mouse over these error dots it displays a message
Unable to load data using the supplied configuration.
Open in Browser: /Calendars
Clicking the /Calendars link opens a web browser page http://localhost:58369/Calendars which has the message

This site can’t be reached


localhost refused to connect.
Search Google for localhost 58369 Calendars
ERR_CONNECTION_REFUSED


Can anyone please help with this issue and tell me how to resolve it thanks.

reg.phipps
1 Jan 2017, 6:16 PM
Issue resolved by upgrading to a Premium license and downloading the AddOns. The Examples(3) now build using Cmd in a terminal and in SA 4.1.0.91. Having said that I still have a couple of questions. Is it possible to install the AddOns to SA 4.1.0.91? I saw somewhere something about being possible to do by selecting settings but when I dried to do this the instructions did not match what I was seeing. Secondly if this can't be done, what is the right path for the AddOns in a project? Lastly even though the project Examples(3) compile and run, the Log panel in SA displays a red dot, with 'unknown' under Category and 'Failed to load package [name] - missing architect data in package.json' under Message where name is pivot, calendar ... Any suggestion on how to get this error in the Log resolved? thanks.

petr.vecera
2 Jan 2017, 2:22 AM
Hello

You can add the premium packages to the framework folder located probably in your documents.
C:\Users\Petr\Documents\Architect\frameworks\ext62\6.2.1.167\commercial\packages

Now every new project in SA will have automatically the premium packages.

If you have older project, you have to copy manually the premium packages to the project folder. (As you did)


Lastly even though the project Examples(3) compile and run, the Log panel in SA displays a red dot, with 'unknown' under Category and 'Failed to load package [name] - missing architect data in package.json' under Message where name is pivot, calendar ... Any suggestion on how to get this error in the Log resolved? thanks.

Make sure that your packages are in the folder:
C:\Users\Petr\Documents\ArchitectProjects\<projectRootFolder>\ext\packages

And not in the folder:
C:\Users\Petr\Documents\ArchitectProjects\<projectRootFolder>\packages

Regards
Petr

http://docs.sencha.com/architect/4.1/guides/premium_packages/using_premium_packages.html
http://docs.sencha.com/architect/4.1/guides/premium_packages/calendar.html

reg.phipps
4 Jan 2017, 5:25 PM
Thanks Petr, that worked a treat, you're a star :)