Giter VIP home page Giter VIP logo

idea-ui5helper's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

idea-ui5helper's Issues

StringIndexOutOfBoundsException im IndexingHandler

Error while indexing /home/masch/upstream/openui5/1.42/src/sap.ui.table/test/sap/ui/table/qunit/TableQUnitUtils.js
To reindex this file IDEA has to be restarted: String index out of range: -1
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
	at java.lang.String.substring(String.java:1967)
	at de.uniorg.ui5helper.framework.IndexingHandler$1.fillIndexingData(IndexingHandler.java:94)
	at com.intellij.lang.javascript.psi.literal.JSLiteralImplicitElementProvidersRegistry.calculateIndexingData(JSLiteralImplicitElementProvidersRegistry.java:256)
	at com.intellij.lang.javascript.psi.impl.JSLiteralExpressionImpl.calculateIndexingData(JSLiteralExpressionImpl.java:234)
	at com.intellij.lang.javascript.psi.impl.JSImplicitElementProviderImpl.lambda$getIndexingData$0(JSImplicitElementProviderImpl.java:48)
	at com.intellij.psi.util.CachedValuesManager.lambda$getCachedValue$0(CachedValuesManager.java:141)
	at com.intellij.psi.impl.PsiCachedValueImpl.doCompute(PsiCachedValueImpl.java:49)
	at com.intellij.util.CachedValueBase.getValueWithLock(CachedValueBase.java:222)
	at com.intellij.psi.impl.PsiCachedValue.getValueWithLock(PsiCachedValue.java:60)
	at com.intellij.psi.impl.PsiCachedValueImpl.getValue(PsiCachedValueImpl.java:38)
	at com.intellij.util.CachedValuesManagerImpl.getCachedValue(CachedValuesManagerImpl.java:87)
	at com.intellij.psi.util.CachedValuesManager.getCachedValue(CachedValuesManager.java:140)
	at com.intellij.psi.util.CachedValuesManager.getCachedValue(CachedValuesManager.java:127)
	at com.intellij.lang.javascript.psi.impl.JSImplicitElementProviderImpl.getIndexingData(JSImplicitElementProviderImpl.java:39)
	at com.intellij.lang.javascript.psi.impl.JSImplicitElementProviderImpl.getIndexingData(JSImplicitElementProviderImpl.java:35)
	at com.intellij.lang.javascript.psi.stubs.impl.JSPossiblyStoredStubImpl.<init>(JSPossiblyStoredStubImpl.java:32)
	at com.intellij.lang.javascript.psi.stubs.impl.JSLiteralExpressionStubImpl.<init>(JSLiteralExpressionStubImpl.java:28)
	at com.intellij.lang.javascript.psi.stubs.impl.JSLiteralExpressionStubImpl.<init>(JSLiteralExpressionStubImpl.java:24)
	at com.intellij.lang.javascript.types.JSLiteralExpressionElementType.createStub(JSLiteralExpressionElementType.java:36)
	at com.intellij.lang.javascript.types.JSLiteralExpressionElementType.createStub(JSLiteralExpressionElementType.java:23)
	at com.intellij.psi.stubs.DefaultStubBuilder$StubBuildingWalkingVisitor.a(DefaultStubBuilder.java:113)
	at com.intellij.psi.stubs.DefaultStubBuilder$StubBuildingWalkingVisitor.visitNode(DefaultStubBuilder.java:88)
	at com.intellij.lang.javascript.psi.stubs.impl.JSFileStubBuilder$1.visitNode(JSFileStubBuilder.java:48)
	at com.intellij.psi.stubs.DefaultStubBuilder$StubBuildingWalkingVisitor.buildStubTree(DefaultStubBuilder.java:83)
	at com.intellij.lang.javascript.psi.stubs.impl.JSFileStubBuilder.buildStubTree(JSFileStubBuilder.java:63)
	at com.intellij.psi.stubs.StubTreeBuilder.buildStubTree(StubTreeBuilder.java:86)
	at com.intellij.psi.stubs.StubUpdatingIndex$4.a(StubUpdatingIndex.java:211)
	at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:926)
	at com.intellij.psi.stubs.StubUpdatingIndex$4.map(StubUpdatingIndex.java:210)
	at com.intellij.psi.stubs.StubUpdatingIndex$4.map(StubUpdatingIndex.java:193)
	at com.intellij.util.indexing.impl.MapReduceIndex.mapInput(MapReduceIndex.java:251)
	at com.intellij.util.indexing.VfsAwareMapReduceIndex.calculateUpdateData(VfsAwareMapReduceIndex.java:96)
	at com.intellij.util.indexing.impl.MapReduceIndex.update(MapReduceIndex.java:194)
	at com.intellij.util.indexing.FileBasedIndexImpl.a(FileBasedIndexImpl.java:1582)
	at com.intellij.util.indexing.FileBasedIndexImpl.a(FileBasedIndexImpl.java:1518)
	at com.intellij.openapi.fileTypes.impl.FileTypeManagerImpl.freezeFileTypeTemporarilyIn(FileTypeManagerImpl.java:516)
	at com.intellij.util.indexing.FileBasedIndexImpl.a(FileBasedIndexImpl.java:1479)
	at com.intellij.util.indexing.FileBasedIndexImpl.indexFileContent(FileBasedIndexImpl.java:1464)
	at com.intellij.util.indexing.UnindexedFilesUpdater.a(UnindexedFilesUpdater.java:105)
	at com.intellij.openapi.project.CacheUpdateRunner$MyRunnable.a(CacheUpdateRunner.java:229)
	at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1153)
	at com.intellij.openapi.project.CacheUpdateRunner$MyRunnable.a(CacheUpdateRunner.java:246)
	at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:176)
	at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:556)
	at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:501)
	at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:66)
	at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:163)
	at com.intellij.openapi.project.CacheUpdateRunner$MyRunnable.run(CacheUpdateRunner.java:242)
	at com.intellij.openapi.application.impl.ApplicationImpl$2.run(ApplicationImpl.java:334)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)

find and parse manifest.json

If theres a manifest.json we could parse it and use the provided information to provide support in associated files.

Therefore we need to find out what files are associated with the manifest.json.
Same directory & subdirs should do the job for a first version.

Information we could gather from the manifest.json

  • Routes (.navTo completion)
  • root view (?)
  • i18n files
  • Models & data sources (completions, in combination with #3 this could be a killer feature)

OData explorer

This might even be it's own plugin.
Extending the Database Explorer here would be awesome, but isn't quite required.

Maybe we could even get path completions etc from this.

References to i18n keys

Index .properties files and provide References for each key so we can navigate to them, show the default translation etc.

Binding Language support

To support SAPs binding DSL we need to be able to parse all three types of bindings

  • {model>/some/path here/123} or {just/the/path}
  • { path: 'my/path', formatter: '.formatterFunction' }
  • {= ${my/Path}.isCool() === true }

But to do this, someone who understands GrammarKit is required.

This would enable features like go to formatter, go to type, model name completion etc.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.