[jira] [Created] (NETBEANS-6071) print fungerarinte i hop med Scnner

2021-09-28 Thread Lars Bogren (Jira)
Lars Bogren created NETBEANS-6071:
-

 Summary: print fungerarinte i hop med Scnner
 Key: NETBEANS-6071
 URL: https://issues.apache.org/jira/browse/NETBEANS-6071
 Project: NetBeans
  Issue Type: Bug
 Environment: import java.util.*;
 
public class Godis {
 public static void main(String[] args) {
 var scan = new Scanner(System.in);
 int gram = 0;
 double pris = 0;
 
 System.out.print("Hur många gram: "); 
 gram = scan.nextInt();
 
 System.out.print("Pris/gram: ");
 pris = scan.nextDouble(); 
 
 System.out.println("Det kostar: " + gram * pris);
 System.out.print (" Programmet klart. ");
 } 
}
Reporter: Lars Bogren


Print fungerar fortfarande inte ihop med Scanner

trodde att 12,5 skulle lösa detta 

jGrasp kan det fortfarande



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



[jira] [Assigned] (NETBEANS-6015) Java heap space - Out of Memory Error

2021-09-28 Thread Lars Bogren (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-6015?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Lars Bogren reassigned NETBEANS-6015:
-

Assignee: Lars Bogren

> Java heap space - Out of Memory Error
> -
>
> Key: NETBEANS-6015
> URL: https://issues.apache.org/jira/browse/NETBEANS-6015
> Project: NetBeans
>  Issue Type: Bug
>Affects Versions: 12.4
> Environment: Ubuntu 20.4
> Open JDK 11
>Reporter: Anisur Mullick
>Assignee: Lars Bogren
>Priority: Blocker
>  Labels: background-scanning
>
> 
>  2021-09-17T08:06:27
>  1631846187154
>  48
>  global
>  1000
>  22
>  
> /home/anisur/snap/netbeans/common/data/12.4/var/log/heapdump.hprof
>  
>  java.lang.OutOfMemoryError: Java heap space
>  
> 
> 
>  2021-09-17T08:17:35
>  1631846855694
>  79
>  org.netbeans.ui
>  700
>  35
>  UI_ENABLED_MODULES
>  UI_ENABLED_MODULES
>  org.netbeans.modules.uihandler.Bundle
>  org.netbeans.modules.testng.ant [2.27]
>  org.openide.filesystems.nb [9.22]
>  org.netbeans.modules.xml.wsdl.model/1 [1.45.0.1]
>  org.netbeans.modules.web.common [1.111]
>  org.netbeans.modules.nbjunit/1 [1.102]
>  org.netbeans.modules.welcome/1 [1.54]
>  org.netbeans.modules.languages.ini [1.37]
>  org.netbeans.modules.ant.hints/1 [1.6]
>  org.eclipse.mylyn.commons.core [3.17.0]
>  org.netbeans.modules.localtasks [1.37]
>  org.netbeans.modules.editor.mimelookup.impl/1 [1.44]
>  org.netbeans.modules.php.zend [1.44]
>  org.netbeans.modules.php.dbgp [1.54]
>  org.netbeans.modules.ant.grammar/1 [1.56]
>  org.netbeans.modules.extexecution.base/2 [1.18]
>  org.netbeans.modules.project.indexingbridge [1.29]
>  org.netbeans.modules.php.smarty [1.98]
>  org.netbeans.modules.java.editor.base [2.77.0.1]
>  org.netbeans.modules.refactoring.api [1.59.0.1]
>  org.netbeans.api.web.webmodule [1.50]
>  org.netbeans.modules.java.editor/1 [2.80.0.12.1.1.1]
>  org.netbeans.libs.osgi [1.34]
>  org.netbeans.modules.versioning.util [1.82.0.42.1]
>  org.netbeans.modules.i18n/1 [1.65]
>  org.netbeans.modules.xml.lexer [1.42]
>  org.eclipse.core.runtime.compatibility.auth [3.2.200]
>  org.netbeans.libs.svnClientAdapter/1 [1.52]
>  org.netbeans.modules.db.metadata.model/1 [1.23]
>  org.openide.modules [7.60]
>  org.netbeans.modules.ide.branding/1 [1.44]
>  org.netbeans.modules.project.ant.ui/1 [1.77]
>  org.netbeans.modules.testng [2.32]
>  org.netbeans.modules.javascript2.react [0.11]
>  org.netbeans.modules.groovy.editor/2 [1.75]
>  org.netbeans.modules.php.code.analysis [0.25]
>  org.netbeans.modules.form.kit [1.40]
>  org.netbeans.lib.uihandler [1.57]
>  org.netbeans.modules.updatecenters/1 [1.52]
>  org.eclipse.core.jobs [3.5.100]
>  org.netbeans.modules.markdown [1.0]
>  org.netbeans.modules.debugger.jpda.projectsui [1.15]
>  org.netbeans.modules.xml.catalog.ui [2.15.0.4]
>  org.eclipse.jgit [5.7.0]
>  org.netbeans.modules.defaults/1 [1.43]
>  org.apache.commons.logging [1.2]
>  org.netbeans.libs.ini4j/1 [1.46]
>  org.netbeans.modules.gradle.kit [1.8]
>  org.netbeans.modules.dlight.nativeexecution [1.51.0.1]
>  org.netbeans.modules.xml.axi [1.45]
>  org.netbeans.modules.java.disco [1.0]
>  org.netbeans.modules.editor.lib/3 [4.19.0.23.3.55]
>  org.netbeans.modules.java.platform.ui/1 [1.54]
>  org.netbeans.modules.utilities.project/1 [1.50]
>  org.netbeans.modules.hudson.subversion [1.41]
>  org.netbeans.modules.javascript2.source.query/0 [0.11]
>  org.netbeans.modules.maven.grammar/1 [1.59.0.1]
>  org.netbeans.modules.image/1 [1.60]
>  org.netbeans.spi.debugger.jpda.ui [3.15]
>  org.netbeans.api.annotations.common/1 [1.40]
>  org.netbeans.modules.derby [1.52]
>  org.netbeans.modules.html.indexing [1.2]
>  org.netbeans.modules.xml.text/2 [1.71.0.1]
>  org.netbeans.modules.dbapi [1.46.0.30]
>  org.netbeans.modules.php.twig/1 [1.37]
>  org.netbeans.modules.xml.tax/2 [1.56.0.281]
>  org.netbeans.libs.jna.platform/2 [2.7]
>  org.netbeans.libs.bytelist/1 [0.42.0.1]
>  org.netbeans.modules.dlight.nativeexecution.nb [1.12]
>  org.netbeans.modules.j2ee.persistenceapi/1 [1.48.0.1]
>  org.netbeans.api.progress.nb [1.60]
>  org.netbeans.modules.db.sql.visualeditor/1 [2.43.0.30]
>  org.eclipse.mylyn.tasks.core [3.17.0]
>  org.netbeans.modules.php.composer/0 [0.42]
>  org.netbeans.modules.j2ee.jpa.refactoring [1.43]
>  org.netbeans.modules.classfile/1 [1.64]
>  org.netbeans.modules.masterfs.linux [1.25]
>  org.netbeans.modules.lsp.client/0 [1.11.0.1.1]
>  org.netbeans.modules.keyring.impl [1.36]
>  org.netbeans.modules.java.project/1 [1.84]
>  org.netbeans.core.browser.webview/1 [1.27.0.1.1]
>  org.netbeans.modules.j2ee.api.ejbmodule [1.49]
>  org.netbeans.modules.maven.indexer/2 [2.52]
>  org.netbeans.modules.tasklist.kit [1.40]
>  org.netbeans.modules.java.source.nbjavac [1.12.0.1.3.25.5.1]
>  org.netbeans.modules.java.source.ant [1.43.0.1.5]
>  org.netbeans.modules.css.

[jira] [Created] (NETBEANS-5988) Print fungerar inte om man anväder Scanner

2021-09-08 Thread Lars Bogren (Jira)
Lars Bogren created NETBEANS-5988:
-

 Summary: Print fungerar inte om man anväder Scanner
 Key: NETBEANS-5988
 URL: https://issues.apache.org/jira/browse/NETBEANS-5988
 Project: NetBeans
  Issue Type: Bug
 Environment: netbeans
Reporter: Lars Bogren


import java.util.*;

public class Addition {
    public static void main(String[] args) { 
    // create a Sanner to obtain input from the commad window
    Scanner input = new Scanner(System.in);
    
    System.out.print("Enter first integer: "); //promt
    int number1 = input.nextInt(); //read first number from user
    
    System.out.print("Enter second integer: "); //promt
    int number2 = input.nextInt(); //read first number from user
    
    int sum = number1 + number2;    //add numbers, total in sum
    
    System.out.printf("Sum = %d%n", sum);   // display sum   
    
    }// end method main
}// end class Addition

 

Detta print sats fungerar inte utan texten kommer efter båda inmatningarna



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



[jira] [Resolved] (NETBEANS-5914) NetBeans 12.4 freezes on startup

2021-09-01 Thread Lars Bogren (Jira)


 [ 
https://issues.apache.org/jira/browse/NETBEANS-5914?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Lars Bogren resolved NETBEANS-5914.
---
Resolution: Fixed

När fixar ni print rutinen i samband med Scanner???

> NetBeans 12.4 freezes on startup
> 
>
> Key: NETBEANS-5914
> URL: https://issues.apache.org/jira/browse/NETBEANS-5914
> Project: NetBeans
>  Issue Type: Bug
>Affects Versions: 12.5
> Environment: NetBeans 12.4 on Zulu/OpenJDK 11 on Windows 10.
>Reporter: Eirik Bakke
>Assignee: Jaroslav Tulach
>Priority: Blocker
>  Labels: pull-request-available
> Fix For: 12.6
>
> Attachments: 12.5-beta2-threaddump-1629986898821.tdump, 210506 
> NetBeans Deadlock on Startup 2.txt, 210506 NetBeans Deadlock on Startup.txt, 
> 210516 Another NetBeans Deadlock.txt, 210526 NetBeans Deadlock again.txt
>
>  Time Spent: 3h 10m
>  Remaining Estimate: 0h
>
> On NetBeans 12.4, I was previously experiencing some intermittent freezes on 
> startup, at the time when projects were being loaded and such. I did some 
> thread dumps of the frozen IDE using VisualVM. I'm uploading these now in 
> case they are related to NETBEANS-5913.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



[jira] [Created] (NETBEANS-5936) print fuger inte

2021-08-20 Thread Lars Bogren (Jira)
Lars Bogren created NETBEANS-5936:
-

 Summary: print fuger inte 
 Key: NETBEANS-5936
 URL: https://issues.apache.org/jira/browse/NETBEANS-5936
 Project: NetBeans
  Issue Type: Bug
Affects Versions: 12.4
 Environment: import java.util.*;
 
public class Godis {
    public static void main(String[] args) {
   
   // int gram = 123;
    double pris = 0;
    //double hgpris = 0;
    
    System.out.print("Hur många gram? ");
    var scan = new Scanner(System.in);
  
    int gram = scan.nextInt();
    
    System.out.print("Pris per hegto? ");
    double hgpris = scan.nextDouble();
    
    pris = gram * hgpris/ 100;
    
    System.out.println("Det kostar " + pris + " kr");
    
    }
    
}
Reporter: Lars Bogren


import java.util.*;
 
public class Godis {
    public static void main(String[] args) {
   
   // int gram = 123;
    double pris = 0;
    //double hgpris = 0;
    
    System.out.print("Hur många gram? ");
    var scan = new Scanner(System.in);
  
    int gram = scan.nextInt();
    
    System.out.print("Pris per hegto? ");
    double hgpris = scan.nextDouble();
    
    pris = gram * hgpris/ 100;
    
    System.out.println("Det kostar " + pris + " kr");
    
    }
    
}

 

 

efter inmatning av värden skrivs texterna ut man vet inte vad man matar in

Kör programmet!

Programmet fungerar jGRASP



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



[jira] [Created] (NETBEANS-5923) Print fungerar inte med Scanner

2021-08-15 Thread Lars Bogren (Jira)
Lars Bogren created NETBEANS-5923:
-

 Summary: Print fungerar inte med Scanner
 Key: NETBEANS-5923
 URL: https://issues.apache.org/jira/browse/NETBEANS-5923
 Project: NetBeans
  Issue Type: Bug
Affects Versions: 12.4
 Environment: import java.util.*;

public class Hej2 {
 public static void main(String[] args)

{ String namn; String hälsning; System.out.print("Vad heter du? "); Scanner 
scan = new Scanner(System.in); namn = scan.nextLine(); hälsning = "Välkommen " 
+ namn; System.out.print(hälsning); System.exit(0); }

}

components: Komponent med id 'Scanner i kombination med print' finns inte.
Reporter: Lars Bogren


*Print fungerar inte om man använder Scanner*

*System.out.print("Vad heter du? ");*
 *Scanner scan = new Scanner(System.in);*

*print skriver inte ut något förrän man matar in tecken*

*Scanner i kombination med print Ni påstår att det inte finns någon kombination*

*men vad skriver man dator program för*

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists