lispercat / sailpoint-iiq-dev-accelerator

VSCode extension to accelerate and facilitate development by directly interacting with the target Sailpoint IIQ server
MIT License
31 stars 11 forks source link

Cross-Dependency Issue with Server and Parser #32

Closed parithon closed 1 year ago

parithon commented 2 years ago

As of version 1.0.39, there appears to be a cross-dependency issue with the ./server and ./parser code which prevents them from compiling out-of-the-box. Below is an example of the errors I received when I cloned the repository, ran npm install then npm run compile without making any other changes.

I plan on providing a pull request with a fix for these dependency issues.

❯ npm run compile 06:10:40PM

sailpoint-iiq-dev-accelerator@1.0.39 compile tsc -b

server/src/server.ts:18:25 - error TS2307: Cannot find module '../../parser/out/SPBSLexer' or its corresponding type declarations.

18 import {SPBSLexer} from '../../parser/out/SPBSLexer';


server/src/server.ts:19:26 - error TS2307: Cannot find module '../../parser/out/SPBSParser' or its corresponding type declarations.

19 import {SPBSParser} from '../../parser/out/SPBSParser';

server/src/server.ts:20:37 - error TS2307: Cannot find module '../../parser/out/SPBSParserVisitorImpl' or its corresponding type declarations.

20 import {SPBSParserVisitorImpl} from '../../parser/out/SPBSParserVisitorImpl';


server/src/server.ts:22:39 - error TS2307: Cannot find module '../../parser/out/ParserErrorListenerImpl' or its corresponding type declarations.

22 import {ParserErrorListenerImpl} from "../../parser/out/ParserErrorListenerImpl";

server/src/server.ts:23:38 - error TS2307: Cannot find module '../../parser/out/LexerErrorListenerImpl' or its corresponding type declarations.

23 import {LexerErrorListenerImpl} from "../../parser/out/LexerErrorListenerImpl";


server/src/server.ts:24:38 - error TS2307: Cannot find module '../../parser/out/SPBSParserListenerImpl' or its corresponding type declarations.

24 import {SPBSParserListenerImpl} from "../../parser/out/SPBSParserListenerImpl";

Found 6 errors.