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

How to use? #2

Open
SamuelMarks opened this issue Aug 19, 2017 · 1 comment
Open

How to use? #2

SamuelMarks opened this issue Aug 19, 2017 · 1 comment

Comments

@SamuelMarks
Copy link

I feel like there's a step missing in your development setup tutorial in README, e.g.: a Gradle, Maven, Ant or something step:

Information:javac 1.8.0_131 was used to compile java sources
Information:19/8/17, 4:02 PM - Compilation completed with 101 errors and 4 warnings in 4s 632ms
Error:java: java.lang.ClassCastException: com.sun.tools.javac.code.Symtab$4 cannot be cast to javax.lang.model.element.TypeElement
tstools/src/dk/webbies/tscreate/analysis/declarations/types/ClassType.java
Error:(3, 38) java: package dk.au.cs.casa.typescript.types does not exist
Error:(4, 38) java: package dk.au.cs.casa.typescript.types does not exist
Error:(152, 41) java: cannot find symbol
  symbol:   class Type
  location: class dk.webbies.tscreate.analysis.declarations.types.ClassType
tstools/src/dk/webbies/tscreate/declarationReader/DeclarationParser.java
Error:(7, 32) java: package dk.au.cs.casa.typescript does not exist
Error:(8, 1) java: package dk.au.cs.casa.typescript.types does not exist
Error:(32, 100) java: cannot find symbol
  symbol:   class SpecReader
  location: class dk.webbies.tscreate.declarationReader.DeclarationParser
Error:(85, 53) java: cannot find symbol
  symbol:   class SpecReader
  location: class dk.webbies.tscreate.declarationReader.DeclarationParser
Error:(85, 23) java: cannot find symbol
  symbol:   class Type
  location: class dk.webbies.tscreate.declarationReader.DeclarationParser
Error:(98, 19) java: cannot find symbol
  symbol:   class SpecReader
  location: class dk.webbies.tscreate.declarationReader.DeclarationParser
Error:(105, 19) java: cannot find symbol
  symbol:   class SpecReader
  location: class dk.webbies.tscreate.declarationReader.DeclarationParser
Error:(125, 50) java: package SpecReader does not exist
Error:(125, 87) java: cannot find symbol
  symbol:   class Type
  location: class dk.webbies.tscreate.declarationReader.DeclarationParser
Error:(437, 55) java: cannot find symbol
  symbol:   class Type
  location: class dk.webbies.tscreate.declarationReader.DeclarationParser
Error:(437, 23) java: cannot find symbol
  symbol:   class InterfaceType
  location: class dk.webbies.tscreate.declarationReader.DeclarationParser
Error:(441, 56) java: cannot find symbol
  symbol:   class Type
  location: class dk.webbies.tscreate.declarationReader.DeclarationParser
Error:(441, 68) java: cannot find symbol
  symbol:   class InterfaceType
  location: class dk.webbies.tscreate.declarationReader.DeclarationParser
Error:(441, 24) java: cannot find symbol
  symbol:   class InterfaceType
  location: class dk.webbies.tscreate.declarationReader.DeclarationParser
Error:(313, 29) java: cannot find symbol
  symbol:   class Type
  location: class dk.webbies.tscreate.declarationReader.DeclarationParser.NativeClassesMap
Error:(320, 37) java: cannot find symbol
  symbol:   class Type
  location: class dk.webbies.tscreate.declarationReader.DeclarationParser.NativeClassesMap
Error:(320, 71) java: cannot find symbol
  symbol:   class Type
  location: class dk.webbies.tscreate.declarationReader.DeclarationParser.NativeClassesMap
Error:(333, 36) java: cannot find symbol
  symbol:   class Type
  location: class dk.webbies.tscreate.declarationReader.DeclarationParser.NativeClassesMap
Error:(344, 20) java: cannot find symbol
  symbol:   class Type
  location: class dk.webbies.tscreate.declarationReader.DeclarationParser.NativeClassesMap
Error:(404, 16) java: cannot find symbol
  symbol:   class Type
  location: class dk.webbies.tscreate.declarationReader.DeclarationParser.NativeClassesMap
Error:(144, 56) java: cannot find symbol
  symbol:   class TypeVisitorWithArgument
  location: class dk.webbies.tscreate.declarationReader.DeclarationParser
Error:(145, 13) java: cannot find symbol
  symbol:   class Type
  location: class dk.webbies.tscreate.declarationReader.DeclarationParser.MarkNativesVisitor
Error:(146, 31) java: cannot find symbol
  symbol:   class Type
  location: class dk.webbies.tscreate.declarationReader.DeclarationParser.MarkNativesVisitor
Error:(147, 21) java: cannot find symbol
  symbol:   class Type
  location: class dk.webbies.tscreate.declarationReader.DeclarationParser.MarkNativesVisitor
Error:(150, 44) java: cannot find symbol
  symbol:   class Type
  location: class dk.webbies.tscreate.declarationReader.DeclarationParser.MarkNativesVisitor
Error:(150, 66) java: cannot find symbol
  symbol:   class Type
  location: class dk.webbies.tscreate.declarationReader.DeclarationParser.MarkNativesVisitor
Error:(157, 27) java: cannot find symbol
  symbol:   class AnonymousType
  location: class dk.webbies.tscreate.declarationReader.DeclarationParser.MarkNativesVisitor
Error:(178, 27) java: cannot find symbol
  symbol:   class GenericType
  location: class dk.webbies.tscreate.declarationReader.DeclarationParser.MarkNativesVisitor
Error:(188, 27) java: cannot find symbol
  symbol:   class InterfaceType
  location: class dk.webbies.tscreate.declarationReader.DeclarationParser.MarkNativesVisitor
Error:(197, 37) java: cannot find symbol
  symbol:   class Type
  location: class dk.webbies.tscreate.declarationReader.DeclarationParser.MarkNativesVisitor
Error:(271, 27) java: cannot find symbol
  symbol:   class ReferenceType
  location: class dk.webbies.tscreate.declarationReader.DeclarationParser.MarkNativesVisitor
Error:(277, 27) java: cannot find symbol
  symbol:   class SimpleType
  location: class dk.webbies.tscreate.declarationReader.DeclarationParser.MarkNativesVisitor
Error:(282, 27) java: cannot find symbol
  symbol:   class TupleType
  location: class dk.webbies.tscreate.declarationReader.DeclarationParser.MarkNativesVisitor
Error:(287, 27) java: cannot find symbol
  symbol:   class UnionType
  location: class dk.webbies.tscreate.declarationReader.DeclarationParser.MarkNativesVisitor
Error:(292, 27) java: cannot find symbol
  symbol:   class UnresolvedType
  location: class dk.webbies.tscreate.declarationReader.DeclarationParser.MarkNativesVisitor
Error:(297, 27) java: cannot find symbol
  symbol:   class TypeParameterType
  location: class dk.webbies.tscreate.declarationReader.DeclarationParser.MarkNativesVisitor
Error:(302, 27) java: cannot find symbol
  symbol:   class SymbolType
  location: class dk.webbies.tscreate.declarationReader.DeclarationParser.MarkNativesVisitor
Error:(307, 27) java: cannot find symbol
  symbol:   class ClassType
  location: class dk.webbies.tscreate.declarationReader.DeclarationParser.MarkNativesVisitor
Error:(234, 25) java: cannot find symbol
  symbol:   class InterfaceType
  location: class dk.webbies.tscreate.declarationReader.DeclarationParser.MarkNativesVisitor.SyntheticInterface
Error:(236, 43) java: cannot find symbol
  symbol:   class InterfaceType
  location: class dk.webbies.tscreate.declarationReader.DeclarationParser.MarkNativesVisitor.SyntheticInterface
Error:(240, 25) java: cannot find symbol
  symbol:   class Signature
  location: class dk.webbies.tscreate.declarationReader.DeclarationParser.MarkNativesVisitor.SyntheticInterface
Error:(249, 25) java: cannot find symbol
  symbol:   class Signature
  location: class dk.webbies.tscreate.declarationReader.DeclarationParser.MarkNativesVisitor.SyntheticInterface
Error:(258, 37) java: cannot find symbol
  symbol:   class Type
  location: class dk.webbies.tscreate.declarationReader.DeclarationParser.MarkNativesVisitor.SyntheticInterface
tstools/src/dk/webbies/tscreate/jsnap/Snap.java
Error:(3, 38) java: package dk.au.cs.casa.typescript.types does not exist
Error:(111, 21) java: cannot find symbol
  symbol:   class Signature
  location: class dk.webbies.tscreate.jsnap.Snap.Function
Error:(112, 21) java: cannot find symbol
  symbol:   class Signature
  location: class dk.webbies.tscreate.jsnap.Snap.Function
tstools/src/dk/webbies/tscreate/analysis/TypeFactory.java
Error:(6, 38) java: package dk.au.cs.casa.typescript.types does not exist
tstools/src/dk/webbies/tscreate/main/UsefulnessTest.java
Error:(15, 32) java: package dk.au.cs.casa.typescript does not exist
Error:(16, 38) java: package dk.au.cs.casa.typescript.types does not exist
Error:(17, 38) java: package dk.au.cs.casa.typescript.types does not exist
tstools/src/dk/webbies/tscreate/main/patch/PatchFileFactory.java
Error:(3, 38) java: package dk.au.cs.casa.typescript.types does not exist
Error:(4, 38) java: package dk.au.cs.casa.typescript.types does not exist
Error:(5, 38) java: package dk.au.cs.casa.typescript.types does not exist
Error:(131, 154) java: cannot find symbol
  symbol:   class Type
  location: class dk.webbies.tscreate.main.patch.PatchFileFactory
Error:(142, 23) java: cannot find symbol
  symbol:   class Type
  location: class dk.webbies.tscreate.main.patch.PatchFileFactory.ToPatchStatementVisitor
Error:(144, 117) java: cannot find symbol
  symbol:   class Type
  location: class dk.webbies.tscreate.main.patch.PatchFileFactory.ToPatchStatementVisitor
Error:(83, 22) java: cannot find symbol
  symbol:   class Type
  location: class dk.webbies.tscreate.main.patch.PatchFileFactory.BenchmarkInformation
Error:(86, 195) java: cannot find symbol
  symbol:   class Type
  location: class dk.webbies.tscreate.main.patch.PatchFileFactory.BenchmarkInformation
tstools/src/dk/webbies/tscreate/main/patch/PatchStatement.java
Error:(4, 38) java: package dk.au.cs.casa.typescript.types does not exist
Error:(134, 19) java: cannot find symbol
  symbol:   class Type
  location: interface dk.webbies.tscreate.main.patch.PatchStatement
tstools/src/dk/webbies/tscreate/evaluation/descriptions/Description.java
Error:(3, 38) java: package dk.au.cs.casa.typescript.types does not exist
Error:(119, 40) java: cannot find symbol
  symbol:   class SimpleType
  location: interface dk.webbies.tscreate.evaluation.descriptions.Description
Error:(123, 40) java: cannot find symbol
  symbol:   class SimpleType
  location: interface dk.webbies.tscreate.evaluation.descriptions.Description
Error:(123, 91) java: package dk.au.cs.casa.typescript.types does not exist
tstools/src/dk/webbies/tscreate/evaluation/descriptions/WrongSimpleTypeDescription.java
Error:(3, 38) java: package dk.au.cs.casa.typescript.types does not exist
Error:(4, 38) java: package dk.au.cs.casa.typescript.types does not exist
Error:(10, 19) java: cannot find symbol
  symbol:   class SimpleType
  location: class dk.webbies.tscreate.evaluation.descriptions.WrongSimpleTypeDescription
Error:(11, 19) java: cannot find symbol
  symbol:   class Type
  location: class dk.webbies.tscreate.evaluation.descriptions.WrongSimpleTypeDescription
Error:(13, 39) java: cannot find symbol
  symbol:   class SimpleType
  location: class dk.webbies.tscreate.evaluation.descriptions.WrongSimpleTypeDescription
Error:(13, 60) java: cannot find symbol
  symbol:   class Type
  location: class dk.webbies.tscreate.evaluation.descriptions.WrongSimpleTypeDescription
Error:(18, 12) java: cannot find symbol
  symbol:   class SimpleType
  location: class dk.webbies.tscreate.evaluation.descriptions.WrongSimpleTypeDescription
Error:(22, 12) java: cannot find symbol
  symbol:   class Type
  location: class dk.webbies.tscreate.evaluation.descriptions.WrongSimpleTypeDescription
tstools/src/dk/webbies/tscreate/analysis/declarations/DeclarationPrinter.java
Error:(4, 38) java: package dk.au.cs.casa.typescript.types does not exist
Error:(5, 38) java: package dk.au.cs.casa.typescript.types does not exist
tstools/src/dk/webbies/tscreate/analysis/methods/old/analysis/UnionConstraintVisitor.java
Error:(3, 38) java: package dk.au.cs.casa.typescript.types does not exist
tstools/src/dk/webbies/tscreate/analysis/methods/old/analysis/OldTypeAnalysis.java
Error:(3, 38) java: package dk.au.cs.casa.typescript.types does not exist
tstools/src/dk/webbies/tscreate/analysis/NativeTypeFactory.java
Error:(4, 1) java: package dk.au.cs.casa.typescript.types does not exist
Error:(18, 23) java: cannot find symbol
  symbol:   class Signature
  location: class dk.webbies.tscreate.analysis.NativeTypeFactory
Error:(28, 39) java: cannot find symbol
  symbol:   class Signature
  location: class dk.webbies.tscreate.analysis.NativeTypeFactory
Error:(67, 17) java: cannot find symbol
  symbol:   class Type
  location: class dk.webbies.tscreate.analysis.NativeTypeFactory
Error:(68, 32) java: cannot find symbol
  symbol:   class Type
  location: class dk.webbies.tscreate.analysis.NativeTypeFactory
Error:(83, 22) java: cannot find symbol
  symbol:   class GenericType
  location: class dk.webbies.tscreate.analysis.NativeTypeFactory
Error:(84, 22) java: cannot find symbol
  symbol:   class InterfaceType
  location: class dk.webbies.tscreate.analysis.NativeTypeFactory
tstools/src/dk/webbies/tscreate/analysis/methods/old/analysis/unionFind/HeapValueNode.java
Error:(5, 38) java: package dk.au.cs.casa.typescript.types does not exist
tstools/src/dk/webbies/tscreate/cleanup/DeclarationTypeToTSTypes.java
Error:(3, 1) java: package dk.au.cs.casa.typescript.types does not exist
Error:(18, 73) java: cannot find symbol
  symbol: class Type
Error:(20, 40) java: cannot find symbol
  symbol:   class Type
  location: class dk.webbies.tscreate.cleanup.DeclarationTypeToTSTypes
Error:(21, 34) java: cannot find symbol
  symbol:   class Type
  location: class dk.webbies.tscreate.cleanup.DeclarationTypeToTSTypes
Error:(22, 29) java: cannot find symbol
  symbol:   class Type
  location: class dk.webbies.tscreate.cleanup.DeclarationTypeToTSTypes
Error:(28, 12) java: cannot find symbol
  symbol:   class Type
  location: class dk.webbies.tscreate.cleanup.DeclarationTypeToTSTypes
Error:(191, 32) java: cannot find symbol
  symbol:   class Type
  location: class dk.webbies.tscreate.cleanup.DeclarationTypeToTSTypes
Error:(200, 12) java: cannot find symbol
  symbol:   class Type
  location: class dk.webbies.tscreate.cleanup.DeclarationTypeToTSTypes
Error:(210, 12) java: cannot find symbol
  symbol:   class Type
  location: class dk.webbies.tscreate.cleanup.DeclarationTypeToTSTypes
Error:(224, 12) java: cannot find symbol
  symbol:   class Type
  location: class dk.webbies.tscreate.cleanup.DeclarationTypeToTSTypes
Error:(234, 12) java: cannot find symbol
  symbol:   class Type
  location: class dk.webbies.tscreate.cleanup.DeclarationTypeToTSTypes
Error:(244, 12) java: cannot find symbol
  symbol:   class Type
  location: class dk.webbies.tscreate.cleanup.DeclarationTypeToTSTypes
tstools/src/dk/webbies/tscreate/cleanup/RedundantInterfaceCleaner.java
Error:(7, 38) java: package dk.au.cs.casa.typescript.types does not exist
tstools/src/dk/webbies/tscreate/jsnap/SeleniumDriver.java
Warning:(10, 28) java: org.apache.http.impl.DefaultHttpServerConnection in org.apache.http.impl has been deprecated
Warning:(11, 30) java: org.apache.http.params.BasicHttpParams in org.apache.http.params has been deprecated
tstools/src/dk/webbies/tscreate/main/Main.java
Warning:(421, 28) java: stop() in java.lang.Thread has been deprecated
Warning:(459, 28) java: stop() in java.lang.Thread has been deprecated

PS: Also, even after an npm i no node_modules/ts-type-reader folder is created; so that part of the README also doesn't reflect something possible.

@webbiesdk
Copy link
Collaborator

It was a typo in the package.json file (i just pushed a correction).

The library in question changed name at one point from ts-type-reader to ts-spec-reader, and I had apparently updated the name in the package.json file and nowhere else.

I think it should work now.

I never got to set up an ant script or maven or anything like that, since I only really used this tool from within the IDE myself.

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