Giter VIP home page Giter VIP logo

Comments (13)

jdneo avatar jdneo commented on June 6, 2024

Could you share your project?

from vscode-java-pack.

amkma avatar amkma commented on June 6, 2024

https://youtu.be/xkhzlS0jVgM

https://youtu.be/3jPgFilR0_0

from vscode-java-pack.

amkma avatar amkma commented on June 6, 2024

can anyone help??

from vscode-java-pack.

testforstephen avatar testforstephen commented on June 6, 2024

Can you try to open the Terminal view manually using the menu "View -> Terminal"?

image

from vscode-java-pack.

amkma avatar amkma commented on June 6, 2024
-.Clipchamp.mp4

still didn't work.

from vscode-java-pack.

amkma avatar amkma commented on June 6, 2024

i make a java project and when i run it, the terminal doesn't appear nor anything but when i go to the "run and debug" icon and make a .json file it says that the code is running and when i spam run java the .java file that I'm running appear more than once in the running list but the code never get executed all in all.

regarding the following problem i want to mention some things

the (lib) folder in the project folder doesn't contain anything
2.the code that I'm trying to run is very simple (sout)
3.i have installed an IDE which is IntelliJ IDEA and everything runs smoothly in it so i suppose the problem is not in the JDK
4.i imported a profile from a friend that has everything working and it didn't solve it
i tried to run a python code on visual studio code and it worked, a simple code which is print as well
Extension version: 0.26.0
VS Code version: Code 1.88.0 (5c3e652f63e798a5ac2f31ffd0d863669328dc4c, 2024-04-03T13:26:18.741Z)
OS version: Windows_NT x64 10.0.22631

from vscode-java-pack.

testforstephen avatar testforstephen commented on June 6, 2024

No idea what's wrong. Opening terminal behavior is controlled by VS Code, not by Java extension. Java extension is only responsible for generating the command line and provide it to VS Code, it's VS Code that opens a terminal and runs the given command line. You can change the user setting "java.debug.settings.console": "internalConsole", this will use the DEBUG CONSOLE to print the output, but the DEBUG CONSOLE has limitation and doesn't support user input.

from vscode-java-pack.

amkma avatar amkma commented on June 6, 2024

thanks, also update
i tried to run a java code on a windows 10 virtual box but surprisingly, it still didn't work, i don't know what that information will add, i think it is the way of installation but i install it like everybody.

from vscode-java-pack.

aeschli avatar aeschli commented on June 6, 2024

When you launch a program from the Run And Debug View, the output of the program goes to the Debug Console view, not the terminal.
Can you verify this?
See https://code.visualstudio.com/docs/java/java-tutorial#_running-and-debugging-your-program

from vscode-java-pack.

amkma avatar amkma commented on June 6, 2024

it doesn't work not anything work not with debug console nor with terminal...
However, when i open a terminal then type the following:
javac App.java
java App

the code does get executed
but still when i press run java nothing works

from vscode-java-pack.

amkma avatar amkma commented on June 6, 2024

I found the cause,
It is the language of the computer...
Apparently, java pack doesn't function normally when the windows language is in ARABIC (i said java not vs code because it functions normally on python as i said above), i tried it in a virtual box that has an English version of windows 10 set up and the run java worked normally, so you would suggest that all i have to do is just to set the windows language to English, but no that would not solve it because the windows language is in English the problem is that the windows was set up in Arabic then converted to English so the only brutal solution is to factory reset the laptop which i won't be able to do it so if anyone could help after detecting the problem i would appreciate, an update or something that i do would be helpful...

from vscode-java-pack.

testforstephen avatar testforstephen commented on June 6, 2024

Apparently, java pack doesn't function normally when the windows language is in ARABIC

In your previous description, you saided the terminal is not popped up when launching Java app. I don't understand how it's related to the language of your Windows. Could you check the Java logs via "Java: Open All Log Files"?

from vscode-java-pack.

amkma avatar amkma commented on June 6, 2024

it's the numerical system
visual studio code doesn't function properly when the numbers that windows use to operate are eastern Arabic numerals which are the following:
١٢٣٤٥٦٧٨٩٠
but functions normally when it's the western Arabic numerals.
anyways i changed it from region from control panel then open visual studio code then change it back to eastern Arabic numerals and it works.

so, if there would be an update for the extension that runs java that will support the eastern numerals or make vs code works properly on eastern that would be very helpful.

from vscode-java-pack.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.