Questions tagged [intellij-idea]

IntelliJ IDEA stands out as an outstanding IDE developed by JetBrains. While its core strength lies in Java development, it encompasses a wide range of programming languages such as JavaScript, Groovy, HTML, CSS, RSS, R, Haskell, PHP, Ruby, Python, Scala, Swift, Clojure, Kotlin, Hybris, Gradle, and many others. Any queries related to usage or challenges faced on both the Community and Ultimate Editions can be addressed using this specific tag. However, if you encounter an issue with something unrelated while utilizing IntelliJ, kindly refrain from employing this particular tag.

Moving from one open window to the currently active window

After logging in, a new window opens to input credentials. Once the credentials are entered, the login window closes. I was successful in switching from the original window to the login window, but I encountered an issue when trying to switch back to the a ...

"Undefined Step definitions in Cucumber for Java: How to Fix the

I've included the login steps in the Login class. However, when I execute the scenario from the Login.feature file, I continue to encounter undefined steps error. Login class package stepDefinitions; import io.cucumber.java.en.And; import io.cucumbe ...

What is the correct way to call upon Bootstrap's CSS that was obtained through a Gradle dependency?

I'm having trouble referencing the Bootstrap library from the 'External Libraries' section in my project. In my build.gradle file, I included: compile group: 'org.webjars', name: 'bootstrap', version: '3.3.7' ...

Is it possible to execute "green arrow" unit tests directly with Mocha in IntelliJ IDEA, even when Karma and Mocha are both installed?

My unit tests are set up using Karma and Mocha. The reason I use Karma is because some of the functionality being tested requires a web browser, even if it's just a fake headless one. However, most of my code can be run in either a browser or Node.js. ...

The karma test appears as "passed" in IntelliJ, even though there are remaining errors present, leading to a failure in the CI/CD process

Currently working on an Angular project, my goal is to ensure all tests turn green. Surprisingly, they all passed on my end, but the CI/CD process (Teamcity) failed. Upon checking the log in my IntelliJ IDE, it was revealed that certain tests actually repo ...

Webstorm seems to be having trouble identifying Next.js

When I create a Next.js app using the command npx create-next-app my-app --use-npm Everything is successfully installed, but when using WebStorm, I noticed that it does not auto import the <Link> component from Next.js. I have to manually import it ...

Chrome Automation Tool for Selenium

Currently encountering an issue with the Chrome driver in Automation Testing. Whenever I run the code, it prompts the following messages and subsequently closes my page. SLF4J: No SLF4J providers were found. SLF4J: Defaulting to no-operation (NOP) logger i ...

The speed of Intellij's code completion when using the dot symbol is notably sluggish in comparison to its

Recently, while working with Python in Intellij version 2020, I came across an interesting observation regarding code completion. I couldn't help but notice that regular text prompts code completions almost immediately, whereas when I press ., there ...

Exploring WSL2 with Node.js and JetBrains IDE: A guide to launching your project

Can anyone offer suggestions on how to manage project files when using WSL2 with Node.js? My primary IDE is either WebStorm or IntelliJ IDEA. ...

Configuring URL settings in Intellij for TestNG using JDK

Recently, I have been working with Intellij and TestNG to test a webpage. I am able to open the webpage using code, but now I want to pass it through TestNG whenever I run my test. I know this can be done, as I have seen it before, but I just can't re ...

Issues with TypeScript: Difficulty locating names in HTML templates

I recently upgraded my Angular 7 code to Angular 9 by following the steps outlined in the Angular Upgrade guide. However, upon completion of the migration process, I started encountering numerous "Cannot find name" errors within the HTML templates of my co ...

Customize the npm install process in IntelliJ IDEA to suit your needs

Is it possible to modify the default npm install script suggested by IntelliJ? Specifically, I am referring to the notification that pops up when there is a change in package.json or when you right click on package.json from the context menu. I am interes ...

Exploring the process of supplying arguments to the npm debug configuration within Intellij

Currently, I am attempting to run a GraphQL application locally. Within the script section of the package.json file, there is a specific line that reads as follows: "component": "NODE_ENV=development NODE_TLS_REJECT_UNAUTHORIZED=0 GRPC_VERBO ...

Leveraging the power of both IntelliJ and AngularCLI 6 to effortlessly import libraries using their package names

My Angular CLI 6 project consists of two components: A library containing services and components A project that utilizes this library When integrating the library into the frontend project, I typically use: import { SomeLibModule } from "some-lib"; H ...

Encountering a Compilation Issue in Angular 4

After executing npm install bootstrap@next in my new Angular project, I encountered a compilation error. As a beginner with Angular, I'm seeking assistance on this issue. Compilation Error: ./node_modules/ansi-html/index.js Module build failed: ...

Is it even conceivable that java.lang.ClassNotFoundException occurred?

I recently included a library with the following dependencies: <dependency> <groupId>org.codehaus.jackson</groupId> <artifactId>jackson-core-asl</artifactId> <version>1.9.13&l ...

What is the process for establishing a class within PageObject framework?

As a beginner in Selenium, I am using IntelliJ along with Selenium WebDriver and Junit. My current challenge lies in setting up the TestBase class within the PageObject framework. Below is an excerpt of my TestBase class: import org.junit.After; import or ...

I'm facing an issue where I am unable to commit the Angular folder in my project using IntelliJ or SourceTree with

I am currently working on a web app project that includes a folder with a PHP API REST and another folder with Angular files. Strangely, when I try to commit my files to BitBucket, everything gets committed except the files under the Angular folder. Simil ...

What steps should I take to prevent the appearance of the "Attribute v-b-modal is not permitted here" alert in Intellij IDEA?

Currently, in my Vue.js project I am learning how to use Modals from BootstrapVue. The specific file where I have implemented this is Items.vue, which contains the following snippet: <div v-b-modal="'modal-' + query.id"> // this is lin ...

The error message in Intellij states that the gulp tool cannot be found in your

Currently working on a project in IntelliJ that relies on Gulp. Encountering an error after debugging, the error message reads: | Error Error executing script RunApp: java.lang.RuntimeException: Problem executing execUiBuild. standard out: 'Inst ...

Guide to configuring npm package updates in Intellij on Windows 10

My setup includes Windows 10, IntelliJ 2020.1, and Node 12. When I execute "npm install" from the terminal inside IntelliJ, everything works fine. However, after making changes to my package.json file and clicking "Run 'npm install" in the popup at th ...

Experience the simplicity of running basic Javascript Scratch code within IntelliJ IDEA Ultimate

Is there a straightforward way to run and debug a basic JavaScript code in IntelliJ Idea Ultimate without the need for additional setup like creating an HTML file or npm project? I'm looking to avoid boilerplate tasks and wondering if there's an ...

How come my Python script encounters UnicodeDecodeError in IntelliJ but runs without any issues when executed in the command line?

My program has a simple task of loading a .json file that includes a unique character. While the program runs smoothly in Terminal, I encounter an error in IntelliJ: UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 2 ...

Troubleshooting a Node/Express Application in IntelliJ Ultimate 2017.1

I've been troubleshooting my express application and I've set up my IDE according to the Intellij help documentation. However, when I try to run the application, it doesn't stop at the breakpoints as expected. Here are the details of my con ...

Struggling to overcome the symbol error for JSONArray while using Java in IntelliJ?

My Pom file in IntelliJ (Maven) includes the following code: <dependency> <groupId>com.googlecode.json-simple</groupId> <artifactId>json-simple</artifactId> <version>1.1</version> ...

Tips for incorporating Vue.js tag attributes in IDEA

I am using IDEA 2016.2.5 and I'm trying to incorporate Vue.js into my project. However, Vue has some tag attributes that IDEA is not recognizing and keeps highlighting as errors. I have installed the Vue Plugin and tried setting the HTML custom unkno ...

The latest version of IntelliJ Idea Ultimate, 2023.2.5, does not offer compatibility with the updated control flow features in Angular

I recently made the switch to Angular 17 in my project and noticed that Idea is not recognizing the new syntax in HTML templates. <mat-menu #menu="matMenu"> @for (menuItem of getData().menu.items; track menuItem) { & ...

"Stay up-to-date with the newest versions of Intellij Idea and WebStorm, including the latest N

It seems like my Node Packages are always falling behind, and I'm tired of spending so much time updating them. That's why I decided to explore all the possibilities with my go-to JetBrains IDEs & other tools to effectively monitor and update th ...

Execute a test with custom settings in IntelliJ IDEA

I am currently working on a project that involves using Clojure for the server-side and React for the client-side. In this project, there are two separate run/build configurations: one based on REPL for the server-side code, and another based on Jest for ...

Compilation failure due to Typescript initialization issue

Encountering a TypeScript error in my IntelliJ-Idea 2017.1.1 IDE I have enabled JavaScript, NodeJS, and TypeScript Compiler. I have exhausted all solutions but the issue persists, perhaps I am missing something. Error: Initialization error (typescript ...

Automatic suggestions for my personalized npm module (written in ES6/Babel) in Webstorm

When I utilize the material-ui package in Webstorm, I am able to experience helpful auto-completion using the ctrl+space shortcut: https://i.stack.imgur.com/Pivuw.png I speculated that this feature may be attributed to the inclusion of an index.es.js fil ...

Attempting to extract individual strings from a lengthy compilation of headlines

Looking for a solution to organize the output from a news api in Python, which currently appears as a long list of headlines and websites? Here is a sample output: {'status': 'ok', 'totalResults': 38, 'articles': [{ ...

Error: Attempting to access the property 'push' of an undefined variable has resulted in an unhandled TypeError

if (Math.random() <= .1) { let orgAdmin = User.find({email: '<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="1234454665324721380c0d">[email protected]</a>'}); or ...

Troubleshooting an Angular application in Intellij using Chrome on a Windows operating system

I've been searching for a long time for a way to debug an Angular app in IntelliJ using Chrome on Windows. So far, I have not been successful in attaching a debugger to Chrome. I have tried launching Chrome with --remote-debugging-port=9222 and numer ...

Navigating through the errors and issues of an npm application can seem

Currently, I am utilizing run/debug configurations to launch my npm application successfully. Here is a screenshot for reference: https://i.stack.imgur.com/8buWA.png Despite running the application in debug mode, I have encountered an issue where the appl ...

Ways to troubleshoot when IntelliJ can't locate the Node interpreter even though the node file is present within the folder

I'm having trouble with Intellij not recognizing my Node.js installation. Even though the node file is visible in my file manager, it's not showing up locally within Intellij. I'm using Fedora 29 and can run Node.js in my terminal, so I know ...

Utilizing JFlex for efficient brace matching

Currently, I am in the process of developing an IntelliJ plugin. One of the key features that I am working on is a brace matcher. After completing the JetBrains plugin tutorial, I was able to get the brace matcher functioning using this regular expression ...

Why does IntelliJ IDEA 2016 show an error for using the [ngSwitch] attribute in this Angular2 template?

Every time I run precommit inspections, I receive a barrage of warnings even though everything seems to be functioning properly. The warnings include: Warning:(8, 58) Attribute [ngSwitch] is not allowed here Warning:(9, 42) Attribute [attr.for] is not all ...

Check out the computed typescript types

In my work with TypeScript types, I find myself frequently using Omit, Pick, and similar tools based on other types. While it generally gets the job done, I often struggle with readability when dealing with complex type manipulations. I am interested in f ...

IntelliJ is unable to detect npm plugins at the moment

My IntelliJ is not recognizing my karma plugins: WARN [plugin]: Cannot locate plugin "karma-ng-extjs-scenario". Did you forget to install it? npm install karma-ng-extjs-scenario --save-dev WARN [plugin]: Plugin "karma-jasmine" is missing. Did you fo ...

What is the meaning behind the phrase "JSON specification solely permits a single top-level entity"?

In my coding editor, specifically IntelliJ, I came across a test.json file that has an interesting problem. The second json record is triggering an error message stating "Json standard only allows one top-level value". However, upon closer inspection, th ...

Thucydides' chronicles lack any factual information

Thucydides Reports concerning lack of data In an attempt to generate a Thucydides report, I have been examining the Demo Project. Unfortunately, my report consistently displays no data. However, there does appear to be some information related to requirem ...

Instead of relying on Vue TypeScript, we are leveraging IntelliJ with TypeScript 5.0.3 to compile our Vue project

My current version of IntelliJ IDEA is 2023.1 (Ultimate Edition) Build #IU-231.8109.175, released on March 28, 2023. I am facing an issue where my project fails to compile using "Vue TypeScript", resulting in some type mismatches being overlooked. In the ...

Currently, I am in the process of developing a fabric mod, but I am encountering some difficulties with the ClientOnInitialize

When I leave the onInitialize method empty, the public class TutorialModClient appears grey in IntelliJ. All required entries are present in my fabric.mod.json: the json entries are "entrypoints": { "main": [ "n ...

Run and debug multiple scripts simultaneously in WebStorm

Can I use the "Run/Debug Configurations" feature in WebStorm to run multiple npm scripts with a single command? For instance, creating a script that will execute both npm run script-one && npm run script-two. Is it feasible to achieve this? ...

IntelliJ is having trouble detecting Selenium ChromeDriver

When attempting to perform tests using Selenium on IntelliJ, I keep encountering the same error message: java.lang.IllegalStateException: The path to the driver executable The path to the driver executable must be set by the webdriver.chrome.driver system ...

IntelliJ IDEA is unable to include the Selenium sources.jar file

Recently, I began my journey of learning Selenium. Once I set up the project, I attempted to include some jar files. https://i.stack.imgur.com/x8cXm.png All the necessary jars were successfully added. However, ...sources.jar appears to be an Empty Proj ...

Various modules in the project need to have distinct GitHub origins, particularly in the case of Spring-Angular

My goal is to create a well-structured project with separate frontend and backend modules. Here is the initial project structure: https://i.stack.imgur.com/EghPA.png I have attempted this in various configurations before, but every time I try, git recogn ...

Tips for accessing or adding source code in IntelliJ 12

After creating a new project in IntelliJ version 12, which is a Maven module, I made sure to select the autoscroll options from the IDE. However, when I hover over WebDriver using Ctrl Q, it keeps prompting me to download or attach the source code. Despite ...

Automatically refresh your web application in Intellij IDEA

Currently, I am in the process of developing a web application using AngularJS and Spring boot with IntelliJ IDEA 15 and Tomcat. One issue that I have encountered is that every time I make changes to my static content, I need to restart the application to ...

Error encountered in Intellij for Typescript interface: SyntaxError - Unexpected identifier

I am currently testing a basic interface with the following code: interface TestInterface { id: number; text: string; } const testInterfaceImplementation: TestInterface = { id: 1, text: 'sample text' }; console.log(testInterface ...

Unable to Incorporate WSL Interpreter into Intellij Idea 2018

Struggling to add the WSL node interpreter to my Intellij Idea(2018.2.2) as it can't detect NodeJs(version 12.14.1) installed on WSL2. I have Node installed with NVM on UBUNTU 20.04.1 LTS through Windows Store. Despite trying different methods like r ...

Setting up a Lerna monorepo with TypeScript: A Comprehensive Guide

I have a central repository with the following details in config.json: "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "es2015": "dist/es2015/index.js", "types": "dist/es2015/index.d.ts", "typings": "dist/es2015/index.d.ts", The repository co ...

What is the method for enabling imports from .ts files without file extensions?

While trying to open a Svelte project with TypeScript, I encountered an issue where all imports from .ts files were showing "Cannot resolve symbol" errors. https://i.stack.imgur.com/FCVxX.png The errors disappear when the .ts extension is added to the im ...

"Modifying Code Aesthetics in WebStorm/IDEA: A Step-by-

Here is the code style I am currently using in my JavaScript project: var obj = { a: 1 , b: 2 , c: 3 } var arr = [ 'a1' , 'a2' , 'a3' ] const w = 1 , w2 = 2 , w3 = 3 The team claims they are following npm's co ...

The best way to access the value of a fulfilled Promise while debugging

I've been using this loopback application in my IntelliJ IDE. I set a breakpoint at the promise in calculator.controller.ts, where the code looks like this: @get('/multiply/{intA}/{intB}') async multiply( @param.path.integer('in ...

Oops! Looks like there was a problem loading the page in Firefox. The server didn't give any stacktrace information

During the execution of my script, I encountered an error that caused it to stop at the certification exception point (see attached image). Even though I manually added the certification exception, the script continued to stop at that point with a console ...

IntelliJ's Code Completion functionality for WebDriverIO is an essential tool for

Struggling all day to enable code-completion in Intellij while working on a project that utilizes cucumber with webdriverio. When hovering over any method, the message "Unresolved function or method for ..." appears. Attempting to add webdriverio as a cus ...

Setting up Geb 2.0 in IntelliJ: A Step-by-Step Guide for Run/Debug Configurations

I've been exploring Geb 2.0 at http://gebish.org/ and I recently downloaded the Gradle sample from https://github.com/geb/geb-example-gradle. Everything is running smoothly on my machine with various browsers like Chrome, Firefox, and ChromeHeadless. ...

Using the standard.js configuration for code linting within Intellij IDEA

I have been trying to implement standard.js for linting in my Intellij editor. Despite following the installation instructions for the node module and manually enabling linting as per Webstorm's guidance since it didn't enable automatically, I am ...

Troubleshooting Protractor in Intellij: A step-by-step guide

While using OSX, I successfully configured an Intellij 15 run/debug task as explained in this post below: How to debug angular protractor tests in WebStorm Although the task runs fine, unfortunately, the debug feature does not work and throws the followi ...

Tips for beautifying JSON in IntelliJ or Android Studio

When coding, I frequently find myself using a text editor to paste various notes and JSON responses, which I format using a plugin in Sublime. I recently discovered the 'scratch file' feature in IntelliJ / Android Studio, which is exactly what I ...

Idea fails to detect imports

I have been attempting to use Angular2 in IntelliJ IDEA IDE. Although my code is valid (I have tried compiling and executing it), the IDE keeps showing me this error: https://i.stack.imgur.com/w6wIj.jpg Is there a way to configure IntelliJ IDEA to hide t ...

Using WebStorm with React + MUI can be quite challenging

My experience using WebStorm 2022 with React, JavaScript, and MUI has been plagued by excruciatingly slow performance, making it nearly impossible to work efficiently. Autocomplete functionality takes an agonizingly long time to load, and my CPU usage sky ...

My component reference seems to have gone missing in angular2

Trying to load my Angular 2 app, I encountered this error: https://i.stack.imgur.com/FmgZE.png Despite having all the necessary files in place. https://i.stack.imgur.com/kj9cP.png Any suggestions on how to resolve this issue? Here is a snippet from ap ...

What are the steps to activate the hot-swapping feature for HTML and JavaScript files in IntelliJ's Community edition?

Just starting out with IntelliJ to work on an AngularJS project with spring-boot as the backend server. Every time I make changes to my HTML or JavaScript code, I find myself needing to restart the app server. Is there a configuration setting or plugin ava ...

Disable JavaScript import optimization for a specific file in IntelliJIDEA

I recently came across a tutorial on Angular 2 Google maps that I was following: The tutorial included the following import statement: import { } from 'googlemaps'; However, I encountered a problem where IntelliJ recognized this as an empty im ...

Integrating Angular Seed project with IntelliJ is a straightforward process that involves a

When attempting to add the Angular Seed project to IntelliJ, it consistently generates numerous separate modules. I simply desire a clear overview of the directory layout and don't want to deal with these module complexities. They just seem like unnec ...

WebStorm and IntelliJ IDEA are unable to detect any custom NPM scripts within the NPM run/debug configuration

In both WebStorm 2016.3.2 and IntelliJ IDEA 2016.3.2, I am facing an issue with custom NPM scripts not appearing in the NPM run/debug configuration despite selecting the correct package.json file. The script section from my package.json file includes vari ...

What is the method for adjusting the spacing between binding tags within HTML code formatting specifically for TypeScript elements in IntelliJ?

My Angular binding currently defaults to <h1>{{typeScriptVar}}</h1>, but I would like it to be set as <h1>{{ typeScriptVar }}</h1> when I use the format code shortcut in InteliJ. Can anyone assist me with this issue? I have resear ...

Javascript Developer Platform glitches

Describing this issue is proving difficult, and I have been unable to find any solutions online. My knowledge of Javascript and its technologies is still quite new. I am currently working on a web application using NodeJS, Express, and Jade that was assig ...

Encountering a fatal error while trying to load a skin from a .json file in LibGdx

Recently I encountered an issue while using Intellij. Previously, everything was running smoothly, and the APK deployed on my Android device without any problems. However, now it seems to get stuck on a black screen and then returns to the home screen with ...

Pattern to find a particular, multi-line item within JSON array

Dealing with JSON lists can sometimes be tricky. Here is an example of what a JSON list might look like: [ { "accessType": "*", "principalType": "ROLE", "principalId": "$unauthenticated", "permission": "DENY" }, { ...

Intellij2016 is issuing warnings for the sass use of the :host selector in Angular2 code

One interesting feature of Angular 2 is the special selector it uses to reference its own component: :host display: block height: 100% !important width: 100% text-align: center position: relative However, Intellij does not provide a way to supp ...

Having difficulty accessing the VR Path Registry

Software Version: geckodriver-v0.20.0-win64 Operating System: Windows 10 Home Single Web Browser: Firefox: 59.0.2 (64-bits) Selenium Software: selenium-java-3.11.0 IDE: intelliJ Idea : 2018.1 Community Edition Greetings! I have recently started using We ...