GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Script pack usings don't appear in :usings · Issue #992 · scriptcs/scriptcs

Script pack usings don't appear in :usings #992

New issue
Copy link
New issue
Copy link
Closed
Closed
Script pack usings don't appear in :usings#992
Copy link
Assignees
filipw
Labels
bug
Milestone
v0.15

Description

@adamralph
adamralph
opened on Mar 24, 2015
Issue body actions
mkdir bug-repro
cd bug-repro
scriptcs -install ScriptCs.Nancy
scriptcs
var n = Require<NancyPack>();
class TestModule: NancyModule { } // prove that the Nancy namespace is available
:usings
[
  "System",
  "System.Collections.Generic",
  "System.Linq",
  "System.Text",
  "System.Threading.Tasks",
  "System.IO",
  "System.Net.Http"
]

Activity

  1. adamralph
    added
    bug
    on Mar 24, 2015
  2. filipw commented on Mar 24, 2015

    @filipw
    filipw
    on Mar 24, 2015
    Member
    More actions

    this is tricky because REPL commands operate against REPL while the script packs are unwrapped at the engine level. So the Executor never knows anything about the script pack namespaces.

    There is no perfect way to handle this:

    • force engine to expose namespaces (ugly and troublesome)
    • notify executor back about namespaces (so a two way communication between executor and engine, also ugly)
    • lift script pack evaluation up to the executor level (not sure how much repercussions this will have but a significant change)
  3. filipw commented on Mar 24, 2015

    @filipw
    filipw
    on Mar 24, 2015
    Member
    More actions

    oh scratch that I have an idea

  4. filipw commented on Mar 24, 2015

    @filipw
    filipw
    on Mar 24, 2015
    Member
    More actions

    I forgot the script pack session is there :)

  5. adamralph
    assigned
    filipw
    on Mar 24, 2015
  6. adamralph
    added this to the v0.15 milestone on Mar 24, 2015
  7. adamralph
    closed this as completedon Mar 24, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @filipw
    filipw

Labels

bug

Type

No type

Projects

No projects

    Milestone

    • v0.15

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402503 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.