PDA

View Full Version : [FIXED] Problem with F1 help in Eclipse plugin



gavin.qiu
16 Nov 2015, 9:33 AM
When I press F1 on "items" for help, it opens the URL "http://docs.sencha.com//Ext.container.AbstractContainer-cfg-items", obviousely this is a bad URL. Is there a way to redefine the base URL somewhere to point to the correct location? In this case in my environment, it would be "http://docs.sencha.com/extjs/4.2.3/#!/api/Ext.container.AbstractContainer-cfg-items".

Chris.OBrien
16 Nov 2015, 11:29 AM
When I press F1 on "items" for help, it opens the URL "http://docs.sencha.com//Ext.container.AbstractContainer-cfg-items", obviousely this is a bad URL. Is there a way to redefine the base URL somewhere to point to the correct location? In this case in my environment, it would be "http://docs.sencha.com/extjs/4.2.3/#!/api/Ext.container.AbstractContainer-cfg-items".

It sounds like potentially your Ext JS app wasn't created with Sencha Command?

You can try to create a bootstrap.json file in the root of your app, where there is an app.json.


{ "js": [
{
"isSdk": true,
"path": "/path/to/sdk"
}
]
}

Then close and reopen your enclosing Eclipse project so we can reindex properly. (Or remove and re-add the Sencha nature).


We do have improvements on the way for our GA release to allow non-cmd apps to be specified in our .sencha-ide-config file and associate it with an appropriate SDK without creating files like this.

gavin.qiu
17 Nov 2015, 6:19 AM
Thanks Chris, I still have the problem,

Here is the updated boostrap.json,
{
"id": "someid",
"js": [{

"isSdk": true,
"path": "/path/to/sdk"

}],
"css": []
}

and my project settings:
-- project
--src

--main

--webapp

--sencha

-- app
-- ext (ExtJS SDK)
-- bootstrap.json
-- app.js
No matter how I tweak "/path/to/sdk" to match the project settings, I always get http://docs.sencha.com/undefined//Ext.container.AbstractContainer-cfg-items, This is the only part where the eclipse plugin is broken in my test, Is there a way to simply set a value somewhere to redirect to the correct location?

Thank you!

Chris.OBrien
17 Nov 2015, 8:48 AM
Thanks Chris, I still have the problem,

Here is the updated boostrap.json,
{
"id": "someid",
"js": [{

"isSdk": true,
"path": "/path/to/sdk"

}],
"css": []
}

and my project settings:
-- project
--src

--main

--webapp

--sencha

-- app
-- ext (ExtJS SDK)
-- bootstrap.json
-- app.js
No matter how I tweak "/path/to/sdk" to match the project settings, I always get http://docs.sencha.com/undefined//Ext.container.AbstractContainer-cfg-items, This is the only part where the eclipse plugin is broken in my test, Is there a way to simply set a value somewhere to redirect to the correct location?

Thank you!

Sorry, we tried recreating here and discovered there are some issues blocking this from working with Ext 4.2.x.

We did test in our upcoming GA version, and everything seems to be working there, so for now you'll unfortunately have to wait until our our GA release.

Sorry about that, but thanks for reporting it!