by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Kris De Volder
    @kdvolder
    But perhaps the most interesting to you might be the code that actually modifies the pom. This is here:
    If you have more specific questions. Feel free to ask and I'll try to help as best as I can.
    Yan Zhang
    @Eskibear

    and since there is multi-root support in VSCode now, just opening or adding the folder of the created app seems the best choice from my point of view

    Seems API is ready now for stable versions. We might be able to adopt the best practice to add project as a workspace folder.
    ref:
    https://code.visualstudio.com/updates/v1_21#_add-remove-and-change-workspace-folders

    Yitao Dong
    @Matthew_Dyt_twitter
    Thanks @kdvolder, we would look into that. :)
    Yan Zhang
    @Eskibear

    @kdvolder Here is a bug for the "edit starters" feature in STS. For unselected starters, it now simply removes the dependency nodes from pom.xml. (I also copy the behavior to vscode extension)

    Details

    First I generate a project selecting "web" as a dependency, and then trigger "Edit starters" to remove it. Now the project fails to build.

    I notice that when I generate a project without selecting any starters, it auto adds following maven dependency.

    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter</artifactId>
    </dependency>

    Ref

    Microsoft/vscode-spring-initializr#59

    Kris De Volder
    @kdvolder
    @Eskibear Ah yeah... that makes sense. The initializer doesn't add 'spring-boot-starter' dependency if you select any dependency. This is because it is implied (its a dependency of all the other starters).
    But if we remove the last or one and only dependency then we should add it or the project will be broken.
    Thanks for reporting. I'll create a ticket for fixing it in our code.
    Kris De Volder
    @kdvolder
    Ticket: spring-projects/sts4#52
    msortur
    @msortur
    I have private spring initializer instance , i need to point spring-boot-initializer plugin to this . when i read https://github.com/Microsoft/vscode-spring-initializr, there is propery "spring.initializr.serviceUrl": "https://start.spring.io/“. Do you know which file in vscode i need to update ?
    msortur
    @msortur
    I got the file where we can configure .vscode/extensions/vscjava.vscode-spring-initializr-0.4.0/package.json
    Kris De Volder
    @kdvolder
    @msortur Glad you found the package.json file for initializr. However, it sounds like you are actually editing that file?
    msortur
    @msortur
    That is right, as i need to point it to private instance of spring initializr
    Kris De Volder
    @kdvolder
    That is actually not a good idea this basically a part of the installe package, not something you should be modifying. I
    That preference can be set by chaning your user or workspace settings. The place you are modifying merely supplies a default value.
    THat change will be overwritten if a new version of the package gets installed.
    Your user or workspace settings on the other hand will not.
    msortur
    @msortur
    What is the recommended approach
    Kris De Volder
    @kdvolder
    So instead what you do is:
    Press CLTR-SHIFT-P
    Then type 'settings'.
    Then open 'user settings'.
    Then in the search box type 'init' or 'spring' or some part of the key.
    You will find that key and its documentation. And you can edit its value.
    msortur
    @msortur
    Thanks , appreciate it .
    Kris De Volder
    @kdvolder
    You can also swith the 'GUI' to just opening the 'settings.json' file and edit that directly.
    NP. Glad I could help :-)
    msortur
    @msortur
    Thanks , can you document this ?
    I can do it if you point me right place
    Kris De Volder
    @kdvolder
    Perhaps the README of the vscode intializer plugin is the right place to document this. So... here:
    msortur
    @msortur
    Perfect , will do
    Hmm... looks like the readme already has some documentation about it. I guess it just wasn't clear to you? If you have an idea to make more understandable, by all means try a PR.
    Kris De Volder
    @kdvolder
    BTW: I'm not a developer on this project myself. Just to make that clear. Though I think if you submit a PR to improve the readme they would be amenable to that.
    Yan Zhang
    @Eskibear
    @msortur It looks like the readme is not clear enough. We'll consider to add more details in it, and a PR is also welcome if you are willing to contribute.
    Phil
    @junu0723
    Hello, I'm trying to make spring boot project but it' just stucked in "Specify Spring Boot Version". It recommends nothing and doesn't go to next step. I think it may happen because of the proxy settings... Can you help me solve the problem?
    Yitao Dong
    @Matthew_Dyt_twitter
    Hi Phill, can you provide the following info for us to help. (Machine OS, VS Code Version, Spring Initializr version, your current proxy settings if available)
    Phil
    @junu0723
    Windows 10, VS Code 1.29.1, Spring Initializr 0.4.2
    I'm sorry that I can't provide accurate proxy setting information... but I just recognize that my chrome proxy address and others(Java, eclipse, etc) proxy addresses are different.
    Yan Zhang
    @Eskibear
    Currently it uses http.get API to retrieve info like bootVersion, available starters, etc. You may take a look at related proxy issues, see if you can work it around.
    Phil
    @junu0723
    My problem is exactly same with Microsoft/vscode-spring-initializr#84. I can make spring boot project using web page.
    It seems proxy setting of my visual studio code is wrong, but I think not. Because Maven: Generate from Maven archetype works well at my VS code...
    :(
    Yan Zhang
    @Eskibear
    For Maven: Generate from Maven archetype, we actually packaged a cached archetype list with the extension. You can try Maven: Update Maven Archetype Catalog, which retrieves info from maven central repo via the same http.get API and updates the cache.
    Yan Zhang
    @Eskibear
    In VS Code settings, I find config entries like "http.systemProxy", "http.proxy", etc. See if you can figure it out. And please let me know how we can provide better experience for users behind proxy.
    bonaluo
    @bonaluo
    can sts initialize provide default configuration file format such as .properties or .yml ; can sts initialize provide default options in configuration file
    .properties or .yml is an option not default .properties and developers can use deufalt option in configuration file such as 'spring.output.ansi.enable=always'
    Ahmad Reza Enshaee
    @HajAhmad
    Hey everybody, the "Edit Starters" option is not available for Gradle file, am I missing something? or the plugin just simply doesn't support it? thanks.
    Manoj Kumar Reddy Pollagari
    @thejonamreddy
    Hi All, Spring Initializer struck at activating extension. No response after that