Skip to content

Commit

Permalink
fix for pekko module name not equals directory
Browse files Browse the repository at this point in the history
  • Loading branch information
jxnu-liguobin committed Aug 8, 2023
1 parent 699dfcc commit 59ec724
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -276,13 +276,16 @@ object SbtDependencyAnalyzerContributor {
val buildModule = SbtDependencyUtils.getBuildModule(module)
if (buildModule.isEmpty) return Collections.emptyList()
val promiseList = ListBuffer[Promise[DependencyScopeNode]]()
implicit val ec = ExecutionContext.fromExecutorService(Executors.newFixedThreadPool(8))
implicit val ec =
ExecutionContext.fromExecutorService(Executors.newFixedThreadPool(2 * Runtime.getRuntime.availableProcessors()))
val moduleId = moduleData.getId.split(" ")(0)
val moduleName = moduleData.getModuleName
val result = Future {
DependencyScopeEnum.values.toList.foreach { scope =>
val promise = Promise[DependencyScopeNode]()
promiseList.append(promise)
comms.command(
scopedKey(module.getName, scope, ParserTypeEnum.DOT.cmd),
scopedKey(moduleId, scope, ParserTypeEnum.DOT.cmd),
new StringBuilder(),
SbtShellCommunication.listenerAggregator {
case SbtShellCommunication.TaskStart =>
Expand All @@ -292,7 +295,7 @@ object SbtDependencyAnalyzerContributor {
.buildDependencyTree(
ModuleContext(
moduleData.getLinkedExternalProjectPath + fileName(scope, ParserTypeEnum.DOT),
module.getName,
moduleName,
scope,
DependencyUtil.scalaMajorVersion(module)
),
Expand Down

0 comments on commit 59ec724

Please sign in to comment.