UnitTestBot / UTBotJava

Automated unit test generation and precise code analysis for Java
Apache License 2.0
132 stars 38 forks source link

UTBot cannot start for simple JavaScript project: 'Language ECMAScript 6 is disabled` #1497

Closed tyuldashev closed 1 year ago

tyuldashev commented 1 year ago

Description

To Reproduce

Steps to reproduce the behavior:

  1. Create new 'HTML5 Boilerplate' project in IDEA
  2. Try to generate tests for plugins.js for example, by using hotkey or Generate.. context menu

Expected behavior Dialog for test generation appear. In case there are some configuration error then some IDE notification about problem with possible solutions is shown.

Actual behavior Nothing happen. idea.log contains following error: INFO - STDOUT - | UtBot - LanguageAssistant | Language ECMAScript 6 is disabled

In case I change setting File | Settings | Languages & Frameworks | JavaScript | Language version from ECMAScript 6+ to ECMAScript 5.1 then again no Generation dialog and following error could be found in the log:

INFO - STDOUT - | UtBot - LanguageAssistant | Language JavaScript is not supported

Additional context

Also I would expect that logging format is more similar to IDEA's one:

denis-fokin commented 1 year ago

It is resolved as part of 4cb44d2dbedeac9206a7d20f24f661cccb8b8dc8